@pishty That error indicates you’re using a ClojureScript REPL (cljs.user) and I suspect in-ns
is not supported in ClojureScript.
How did you start your REPL?
@seancorfield packages -> proto-repl -> start repl
Ah, that starts a REPL inside ProtoREPL itself, not associated with the code you’re editing or any particular Clojure project. I suspect that’s not what you want?
oh i see
not its not
i thought it would be associated with my code
I remember running into this when I first started using ProtoREPL and finding the behavior surprising… I tend to have a REPL already running and connect to that instead. Just a sec. I’ll stop that REPL and try that menu command (I never use the menus normally).
OK, so I was wrong...
I opened a file in my project, and did that menu command and a new REPL tab opened and it said Starting REPL with boot in /path/to/my/project
Did you have a Clojure file open inside a project when you did that?
i had a clojurescript file open
Ah, OK. So it started a cljs REPL then.
Then I can’t help you much, I’m afraid. I don’t work with ClojureScript.
ah ok man no probs, thank u for trying anyway
My instinct is that in-ns
is not allowed in ClojureScript but I’m not sure.
but i could use it in cider
Are you sure you were in a ClojureScript REPL with CIDER?
(as opposed to a Clojure REPL)
yes, because i use a chesnut template so i do (browser-repl) command from clojure to put me into clojurescript repl
‘k … and it happens that I have a project that has a script to start a cljs REPL so I just tried in-ns
there and it worked … so now I really am at a loss 🙂
something on my end am sure 🙂 still getting around proto-repl, are there any useful sites i can learn some proto tricks ?
Hmm, just a thought: how many project folders do you have in your tree view for ProtoREPL/Atom?
just one project folder
OK. I’ve noticed that if you have an arbitrary file open and multiple project folders in the tree view, it seems to want to start a REPL in the first project folder always, regardless… Not sure whether that’s just my setup or a general bug in ProtoREPL.
in-ns works when i am in clojure-repl but not when i start figwheel and jump into clojurescript
i think its my set up somehow
Sorry I can’t help (and sorry for the misleading advice — I guess I’ve learned something about cljs and about ProtoREPL from this!).
🙂 thats cool man will try again tomorrow