Fork me on GitHub
#spacemacs
<
2016-05-21
>
mathpunk02:05:37

@hkjels Here’s what I’ve got working:

mathpunk02:05:53

I open a cljs file. I jack into Clojure (NOT ClojureScript). (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl)

mathpunk02:05:01

And I’m connected to the application.

mathpunk02:05:15

Next up will be adding the snippet you mentioned, with the cider-cljs-lein-repl, and setting up a user.clj

mathpunk02:05:52

Somewhere I picked up, (setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))”)

mathpunk02:05:33

For tonight I’ll just be happy that I’m jacked into the browser, though, and figure out how to lessen the number of commands later : )

mahinshaw02:05:41

@mathpunk: Regarding the warning. It may be worth making sure you have updated all your packages. Glad to hear it’s working for you!

mathpunk02:05:17

@mahinshaw I’ve been @ing the wrong person wheeeee.

mathpunk02:05:46

@mahinshaw Hm. How do I force an update then? I’ve been just upgrading spacemacs when it becomes available

mahinshaw02:05:05

That should do it. The newer version of cider will actually modify lein deps for you. Are you calling cider-jack-in or cider-connect?

mahinshaw02:05:58

It may just be worth bumping the cider-nrepl version in your lein profile anyways so you are up to date

mathpunk02:05:37

Well, I was reading bhauman’s explanation. First time, I tried lein repl and starting figwheel inside it, and cljs-repl, then connecting. Second time, I jacked into a clojure repl, started figwheel, started cljs-repl.

mathpunk02:05:29

What do I need to have in my profile? this is a new machine, it’s got nothin’, and what I gathered from the newer CIDER docs, I don’t need things like alembic

mahinshaw02:05:28

You shouldn’t need anything if you call cider-jack-in, because it will inject the deps for you. If you call cider-connect (to connect to an nrepl session from the command line). you need to have the deps in your ~/.lein/profile.clj

mahinshaw02:05:24

I have this { :repl {:plugins [[cider/cider-nrepl "0.13.0-SNAPSHOT”] [refactor-nrepl "2.3.0-SNAPSHOT"]]}} in my profile.

mahinshaw02:05:25

it can be under :user or :repl

mathpunk02:05:57

Hm. How do I update cider to 13 from 12?

mathpunk03:05:52

found a likely candidate function in emacs...

mahinshaw03:05:32

That should be the emacs package. Which you should get when you update packages in spacemacs/emacs

mathpunk03:05:18

Well that’s odd.

mathpunk03:05:53

I updated packages and got the same results. Maybe the wrong package update?

mathpunk03:05:40

i.e., the wrong function

mahinshaw03:05:33

[Update Packages] on the spacemacs home page. Not [Update Spacemacs]

mathpunk03:05:13

THERE we go

mathpunk03:05:29

Also I restarted the whole editor, which may have helped

mathpunk03:05:40

I kinda think I did Spacemacs/Update Packages but, idk

mathpunk03:05:51

anyway! sweet

mathpunk03:05:23

Now I’m trying to jack into clojurescript

mathpunk03:05:53

I added (setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))”) based on something in cider docs

mathpunk03:05:25

Hm. That…. kinda looked like a Clojure repl?

mathpunk03:05:11

Lemme stop and make sure I get the whole concept:

mathpunk03:05:32

currently, I do not have figwheel running, and as expected, localhost:3449 doesn’t connect

mathpunk03:05:18

The idea is, set up Spacemacs to, when jacking in to ClojureScript, to instead start a Clojure repl, load some of sidecar, and start a cljs-repl, right?

mathpunk03:05:30

@mahinshaw ^Getting there...

mathpunk03:05:51

Gotta pause for the night though. Thanks so much for the assistance!

mahinshaw03:05:25

yeah no problem.