Fork me on GitHub
#cider
<
2019-09-16
>
Matthew Curry02:09:41

Hi all! Would like to know what’s the best way to start a cider repl with a tools.deps.alpha project (deps.edn), and have it load one of the project’s namespaces like a it does with a leiningen project?

bozhidar06:09:28

@mjcurry This comes straight from Lein - it sets some ns as the default ns and that gets reflected in CIDER. If there’s a way to set a default ns in tools.deps I guess this will work automatically as well. CIDER just starts the REPL with whatever *ns* is at the time. Technically we can have some configuration in CIDER about the default ns, but this wasn’t necessary so far.

Matthew Curry00:09:12

ah so that’s what lein is doing. thanks.

Matthew Curry00:09:08

Just tried it again, and it doesn’t appear that any of the project’s namespaces are loaded, or at least running cider-repl-handle-shortcut’s ns command doesn’t have any of them.

vinurs11:09:14

hello, i use shadow-cljs with cider, but in the cljs file, i can not use C-x C-e to execute the last expression, is that i have no project.clj in the project root dir, so the refactor-nrepl doesn’t enabled?

cjohansen11:09:01

I'm seeing this a lot in CIDER now: error in process filter: Sync nREPL request timed out (op eval code (require 'figwheel.main))

cjohansen11:09:16

using CIDER to jack-in-cljs with figwheel-main. is there a known reason for this?

cjohansen11:09:36

hmm, figured it out after trying to start the process from a shell. there was a compilation problem. where could I have seen this in CIDER?

plexus12:09:02

possibly in the *cider-repl ...* or *nrepl-server ..* buffers

cjohansen12:09:01

yeah, I probably should've checked the *nrepl-server ..* buffer. would be nice if what goes on there was more "in your face". I've been burned by seemingly silent failures that were reported there before

dpsutton14:09:11

@haiyuan.vinurs what behavior do you observe if you prevent clj-refactor from being included?

vinurs14:09:05

@dpsutton disable clj-refactor-mode in the buffer?

dpsutton14:09:38

prevent clj-refactor from being injected into the project

dpsutton14:09:58

if you want to know if clj-refactor is breaking your evaluation, prevent the jar being included and see if it fixes your evaluation