Fork me on GitHub
#cider
<
2016-04-09
>
plexus10:04:05

it seems CIDER has gotten smarter recently about Clojure vs ClojureScript repls, and it's breaking the workflow I use with Chestnut

plexus10:04:49

specifically it won't let me evaluate forms in a cljs file because it thinks my repl is a Clojure repl, but I've since switched it to a (browser-repl)

plexus10:04:51

maybe this whole workflow needs to be rethought...

plexus10:04:31

is there a way for cider-jack-in-clojurescript to use a Figwheel browser connected repl?

bozhidar17:04:07

@harold: no, there’s no such option, but we can definitely add one; feel free to file a ticket for this

bozhidar17:04:59

@sashton: file some ticket, so we can start a discussion regarding this

bozhidar17:04:47

@plexus: evaluating (browser-repl) should change the REPL’s type

bozhidar17:04:01

we dynamically update the type using our track-state middleware

bozhidar17:04:12

I’d suggest filing a ticket so we can investigate this further

bozhidar17:04:23

as for using jack-in-cljs - we should probably add support for this out-of-the-box, as so many people are asking about it (or at least document the setup somewhere)

bozhidar17:04:30

I’d file another ticket for this simple_smile

rmuslimov21:04:56

I’m actually get this working by slightly changing cider variable (setq cider-cljs-lein-repl "(do (require 'user) (user/start-cljs) (user/repl-cljs))”)` This function start-cljs, is implemented in dev/user.clj, and are trivial figwheel-sidecar wrapper

rmuslimov21:04:48

Is there exist any good way to pull project.clj information in cider? I can just move figwheel settings to project.clj, and add my changes to cider so it will support figwheel from the box after

x1n4u22:04:04

I got a problem with cider-jack-in

The lein executable (specified by `cider-lein-command' or `cider-boot-command') isn't on your `exec-path'
, my boot executable is under /usr/local/bin/boot. Specifing it under cider-boot-command doesn't work, can you guys help me, what more information do you need ? cider-version 0.12.0 and cider-nrepl 0.11.0
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_VERSION=2.5.5
BOOT_CLOJURE_VERSION=1.7.0
 

rmuslimov22:04:17

@x1n4u: are you mac user?

x1n4u22:04:56

no linux ubuntu

rmuslimov22:04:12

install and just call exec-path-from-shell-iniitialize it will use same PATH in emacs as in your shell

x1n4u23:04:40

@rmuslimov: thanks for the suggestion but it still can't find the executable

rmuslimov23:04:14

weird, can you call this:

rmuslimov23:04:20

(setenv “PATH" (concat "/usr/local/bin/boot:" (getenv "PATH")))

rmuslimov23:04:16

or this is a bit better (setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin/boot”))

x1n4u23:04:10

nope still. showed in the exec-path variable and /usr/local/bin/ is under them.

x1n4u23:04:31

Could it be, because i haven't leining installed ??? which would make no sense to e but it says The lein executable.

x1n4u23:04:10

Well now it's usng leining, for cider-jack-in which works, but it doesn't solve the problem that i want to use boot is ther a way to change that ?