Skip to content

Option to get classpath offline #6

Open

Description

@kul

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.

Activity

  1. kul commented on Mar 10, 2014

    @kul
    Author

    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.

  2. tpope commented on Mar 10, 2014

    @tpope
    Owner

    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.

  3. tpope commented on Mar 10, 2014

    @tpope
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions