This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-30
Channels
- # announcements (4)
- # babashka (3)
- # beginners (5)
- # calva (20)
- # cider (12)
- # clj-kondo (7)
- # cljs-dev (2)
- # clojure (76)
- # clojure-uk (4)
- # clojuredesign-podcast (8)
- # clojurescript (18)
- # clojutre (1)
- # cursive (9)
- # data-science (27)
- # datomic (2)
- # fulcro (32)
- # graalvm (4)
- # jackdaw (5)
- # jobs (2)
- # joker (5)
- # lumo (20)
- # off-topic (18)
- # pathom (3)
- # shadow-cljs (18)
- # sql (5)
- # tools-deps (1)
- # vim (11)
vim-salve doesn't explicitly mention shadow-cljs anywhere, but does it support it implicitly?
i mean i'd welcome a contribution. i believe i got stuck trying to get the correct classpath
@UKFUXQMU3 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
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 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 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