Fork me on GitHub
#vim
<
2019-11-30
>
sheluchin14:11:41

vim-salve doesn't explicitly mention shadow-cljs anywhere, but does it support it implicitly?

tpope21:11:46

i tried to support it and gave up

tpope22:11:28

i mean i'd welcome a contribution. i believe i got stuck trying to get the correct classpath

sheluchin23:11:41

@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

tpope23:11:57

it supports vanilla deps.edn. haven’t tested the hybrid

sheluchin14:12:09

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.

tpope22:12:11

i wouldn't use $CLASSPATH for anything more than like troubleshooting

tpope22:12:53

I don't think 'path' will help with running tests but it might help for navigation features like :A

tpope22:12:20

does (require 'my.test) also fail in the repl? if so, how do you run your tests normally?

sheluchin12:12:57

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.

uochan23:11:24

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

👍 36