Closed jacobemcken closed 9 years ago
I have tested again using the latest Weasel release (I also upgraded ClojureScript, Piggieback, cljsbuild), and it is still an issue.
I've also tested using Cider (instead of lein repl
) and when chancing the namespace using C-c M-n referencing the other namespaces via their aliases actually works... one time :smile:
Then the REPL automatically switch back to cljs.user
in the prompt.
I've updated the Gist with the files used to reproduce the problem.
Hmm I think I found out what I was doing wrong...
I should use in-ns
to change namespace instead of ns
. Now the namespace aliases works.
Closing, seems to work fine with in-ns
(if you're using CIDER you can simply C-c M-n
as well).
Building on the example from
weasel-example
I've connected to my project from alein repl
using:I have added the files I use in this Gist.
Now I can deref the atom which I have defined in my project namespace
rfgs.core
just fine:But when I try to access a namespace I have required using its alias like the following I get an error:
Using full namespace works:
Starting the REPL like the following (copy-paste from Chestnut) lets me use aliases:
But only until the first time I change namespace...
Is this a bug?... or can you provide information on how the environment needs to be setup to overcome this annoyance? I cant figure out if this is actually related to some of the other issues :smile: