Fork me on GitHub
#reagent
<
2018-10-26
>
artur07:10:41

I started project with lein figwheel and connect my VSCode's Calva to figwheels nrepl port. How am I not able to use the project's namespace? It says the namespace is not found. Am I missing something?

artur07:10:10

(in-ns simple-kanban.core)

artur07:10:11

CompilerException java.lang.ClassNotFoundException: simple-kanban.core, compiling:(/private/var/folders/gp/nhrs6b4s74n_8gbshg908rdc0000gn/T/form-init1212639918908488247.clj:1:1)

nenadalm08:10:42

There isn't much info in the description. Does it work with lein repl without some editor? If not - maybe your folder name has dash in it instead of underscore?...

artur09:10:28

Folder is src/simple_kanban

artur09:10:40

Doesn't work with lein repl without editor

artur09:10:48

user=> (in-ns simple-kanban.actions) CompilerException java.lang.ClassNotFoundException: simple-kanban.actions, compiling:(/private/var/folders/gp/nhrs6b4s74n_8gbshg908rdc0000gn/T/form-init5571507548878988268.clj:1:1)

nenadalm10:10:24

you can create project on github. I could take a look then.

nenadalm14:10:34

lein repl was nonsense. I forgot you work with clojurescript (not clojure). You need to run lein figwheel app to get into repl. (in-ns 'simple-kanban.actions) works inside of that repl.

nenadalm14:10:03

So the problem is with vscode. You might try to use #vscode channel for questions on how to integrate cljs with vscode. (I use Emacs).

artur19:10:22

Great, thanks for your help!

artur19:10:40

Well, it turns out it works great with lein figwheel alone as well. I just forgot to use the ' character to set the used namespace, like so: (in-ns 'simple-kanban.actions)

artur19:10:48

Thanks for the tip!