This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-07
Channels
- # beginners (49)
- # boot (48)
- # cider (5)
- # cljs-dev (6)
- # clojure (165)
- # clojure-android (1)
- # clojure-austin (1)
- # clojure-india (2)
- # clojure-italy (23)
- # clojure-nl (2)
- # clojure-poland (4)
- # clojure-russia (63)
- # clojure-spec (5)
- # clojure-uk (121)
- # clojurescript (187)
- # core-async (1)
- # core-logic (4)
- # cursive (17)
- # datascript (1)
- # datomic (12)
- # emacs (2)
- # funcool (3)
- # hoplon (2)
- # jobs (7)
- # juxt (6)
- # lambdaisland (1)
- # luminus (2)
- # lumo (20)
- # midje (8)
- # off-topic (11)
- # om (38)
- # onyx (42)
- # pedestal (6)
- # planck (23)
- # protorepl (29)
- # ring (3)
- # rum (23)
- # spacemacs (6)
- # untangled (70)
- # vim (1)
@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?
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?
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.
My instinct is that in-ns
is not allowed in ClojureScript but I’m not sure.
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?
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
Sorry I can’t help (and sorry for the misleading advice — I guess I’ve learned something about cljs and about ProtoREPL from this!).