Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to get classpath offline #6

Open
kul opened this issue Mar 10, 2014 · 3 comments
Open

Option to get classpath offline #6

kul opened this issue Mar 10, 2014 · 3 comments

Comments

@kul
Copy link

kul commented Mar 10, 2014

In case a maven repository is down it is impossible to open buffer without killing. It could be helpful to provide an option to user to set offline mode and use lein -o classpath in the plugin, which is significantly faster in general too.

@kul
Copy link
Author

kul commented Mar 10, 2014

Imho the default should be lein -o as i see more value of the plugin when a repl is already running then one time evaluation.

2 cents.

@tpope
Copy link
Owner

tpope commented Mar 10, 2014

As of the most recent commit, classpath.vim now remembers if it fails to retrieve the path and doesn't try again till project.clj changes. The way I see it, combining that with -o is basically a non-starter, because the first attempt is very likely to fail if you're not diligent about running a lein command immediately after editing project.clj.

@tpope
Copy link
Owner

tpope commented Mar 10, 2014

I'd accept a patch that passes -o to lein and maven if g:classpath_offline is set. I'd be more enthusiastic about a solution that defaults to -o but copes with the above problem more gracefully, such as by retrying without -o if the problem is indeed offline related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants