vim-salve doesn't explicitly mention shadow-cljs anywhere, but does it support it implicitly?
Ok, I can't seem to get everything working, but it's somewhat close. I can't get vim-fireplace to require my test files - it complains that they aren't on the classpath - so :RunTests
doesn't work.
I see that setting CLASSPATH
is an available fallback for vim-classpath, but when I set that variable in my shell, some tools warn against it.
Would using vim-projectionist to prepend source paths to path
be a viable workaround, you think?
Thanks for the help.
i wouldn't use $CLASSPATH for anything more than like troubleshooting
I don't think 'path'
will help with running tests but it might help for navigation features like :A
does (require 'my.test)
also fail in the repl? if so, how do you run your tests normally?
I'm new to Clojure - this is actually the first set of tests I'm writing. It looks like calling load-file
is a common way to execute tests while developing as long as there's a call to run-tests
in the file. I left a comment with a bit more info here: https://github.com/tpope/vim-fireplace/issues/369#issuecomment-561620687
Example src/test/sheluchin/poker/core_test.cljs
:
(ns sheluchin.poker.core-test
(:require
[cljs.test :refer-macros [deftest is run-tests]]))
(deftest test-numbers
(is (= 1 1)))
(run-tests)
Loading it prints the results to the REPL.i tried to support it and gave up
i mean i'd welcome a contribution. i believe i got stuck trying to get the correct classpath
I started vim-iced advent calendar 2019 that will introduce the usage and tips for vim-iced!
The first day is Getting started
.
https://qiita.com/advent-calendar/2019/vim-iced
@tpope what about when using deps.edn to manage dependencies? In that case, shadow-cljs commands gets launched via the Clojure CLI and setting :paths
in deps.edn adds directories to the classpath, which can be retrieved with shadow-cljs classpath
.
https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn
it supports vanilla deps.edn. haven’t tested the hybrid