venantius / vim-eastwood

A Vim plugin for Clojure's Eastwood linter
84 stars 7 forks source link

Can not find eastwood checker in Currently enabled checker? #9

Closed findmyway closed 8 years ago

findmyway commented 8 years ago

Hi, I have a problem installing the vim-eastwood plugin.

The :SyntasticInfo shows that

Syntastic version: 3.7.0-237 (Vim 800, Darwin)
Info for filetype: clojure
Global mode: active
Filetype clojure is active
The current file will be checked automatically
Available checker: eastwood
Currently enabled checkers: -

My .lein/profiles.clj is as follows:

{:user  {:plugins  [[lein-pprint  "1.1.1"]
                    [lein-midje  "3.1.3"]
                    [lein-license  "0.1.6"]
                    [lein-environ "1.1.0"]
                    [jonase/eastwood  "0.2.3"]]
         :dependencies  [[cljfmt "0.5.1"]]}}

and in my project.clj, I also includes the following line:

:profiles {:dev {:dependencies [[jonase/eastwood  "0.2.3" :exclusions  [org.clojure/clojure]]]}}

also, when I run lein repl under my project, the eastwood can run normally:

user=> (require '[eastwood.lint :as e])
nil
user=> (e/eastwood {:source-paths ["src"] :test-paths ["test"]})
== Eastwood 0.2.3 Clojure 1.8.0 JVM 1.8.0_101
Directories scanned for source files:
  src test
== Linting blog-clj.schedules ==
== Linting blog-clj.upload-download ==

Do I miss something during installing the vim-eastwood plugin?

Many thanks!

bpetri commented 8 years ago

Might be that you forgot to tell syntastic to use eastwood?! Try adding the following line to your .vimrc:

let g:syntastic_clojure_checkers = ['eastwood']
findmyway commented 8 years ago

Oh, yes!

Thanks.