Fork me on GitHub
#protorepl
<
2017-03-07
>
seancorfield00:03:05

@pishty That error indicates you’re using a ClojureScript REPL (cljs.user) and I suspect in-ns is not supported in ClojureScript.

seancorfield00:03:25

How did you start your REPL?

Pishty01:03:54

@seancorfield packages -> proto-repl -> start repl

seancorfield01:03:56

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?

Pishty01:03:28

not its not

Pishty01:03:47

i thought it would be associated with my code

seancorfield01:03:14

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).

seancorfield01:03:41

OK, so I was wrong...

seancorfield01:03:25

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

seancorfield01:03:49

Did you have a Clojure file open inside a project when you did that?

Pishty01:03:36

i had a clojurescript file open

seancorfield01:03:55

Ah, OK. So it started a cljs REPL then.

seancorfield01:03:18

Then I can’t help you much, I’m afraid. I don’t work with ClojureScript.

Pishty01:03:41

ah ok man no probs, thank u for trying anyway

seancorfield01:03:03

My instinct is that in-ns is not allowed in ClojureScript but I’m not sure.

Pishty01:03:24

but i could use it in cider

seancorfield01:03:47

Are you sure you were in a ClojureScript REPL with CIDER?

seancorfield01:03:55

(as opposed to a Clojure REPL)

Pishty01:03:34

yes, because i use a chesnut template so i do (browser-repl) command from clojure to put me into clojurescript repl

seancorfield01:03:11

‘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 🙂

Pishty01:03:50

something on my end am sure 🙂 still getting around proto-repl, are there any useful sites i can learn some proto tricks ?

seancorfield01:03:53

Hmm, just a thought: how many project folders do you have in your tree view for ProtoREPL/Atom?

Pishty01:03:17

just one project folder

seancorfield01:03:23

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.

Pishty01:03:00

in-ns works when i am in clojure-repl but not when i start figwheel and jump into clojurescript

Pishty01:03:12

i think its my set up somehow

seancorfield01:03:33

Sorry I can’t help (and sorry for the misleading advice — I guess I’ve learned something about cljs and about ProtoREPL from this!).

Pishty01:03:57

🙂 thats cool man will try again tomorrow