Fork me on GitHub
#cider
<
2020-03-03
>
dpsutton00:03:30

works just fine for me. cider-jack-in-cljs and on a terminal node lib.js

deep-symmetry00:03:35

Wow, I wonder what the difference is for me? When I type node lib.js it exits 0 in 155 milliseconds.

deep-symmetry00:03:39

But I have something that works, so I’m happy anyway.

dpsutton00:03:59

rm lib.js and make sure its a fresh compilation output. when in dev mode shadow makes sure it stays open. just as if you jacked into core.match. its a library but repls are forever

deep-symmetry00:03:11

What is dev mode?

deep-symmetry00:03:00

Things have stopped working again. Now when I try to connect the cljs nrepl I get an Assert failed: (keyword? repl-env)

deep-symmetry00:03:16

(This was after adding borkdude/sci as a dependency.)

deep-symmetry00:03:42

I removed lib.js and recreated it (`npm run build`), and still node lib.js terminates immediately.

deep-symmetry00:03:27

(Context reminder, I am a Clojure developer totally new to the ClojureScript world with only rare brief exposure to npm et. al.)

dpsutton01:03:27

Don’t npm run build

deep-symmetry01:03:44

Ok, how do I build it then?

dpsutton01:03:03

cider-jack-in-cljs

dpsutton01:03:19

for dev building. for release shadow-cljs release :lib

deep-symmetry01:03:44

The latter is what my npm run build script does.

dpsutton01:03:21

ok. then rm lib.js, go to emacs cider-jack-in-cljs and then when it says its done compiling node lib.js

deep-symmetry01:03:05

Ok, working on that!

deep-symmetry01:03:56

cider-jack-in-cljs failed with that AssertionError. 😞

dpsutton01:03:24

are you up to date? there was some polishing done on the shadow stuff

dpsutton01:03:45

it should present a list of avialable builds. make sure to type :lib rather than just lib if it doesn't

dpsutton01:03:48

and upgrade soon

deep-symmetry01:03:39

Hmm, I am on CIDER <tel:202002271414|20200227.1414>

deep-symmetry01:03:41

It blows up before prompting me for a list of available builds.

dpsutton01:03:35

Are you using clj-refactor?

dpsutton01:03:51

Can you try without that?

dpsutton01:03:00

What startup command is it using

deep-symmetry01:03:16

I can just comment out the use-package in my init.el?

dpsutton01:03:22

Use a prefix Arg to jack in and you can edit the command and just take out the middleware

deep-symmetry01:03:09

OK, I had disabled clj-refactor and it was still injecting refactor-nrepl. Trying with arg.

deep-symmetry01:03:38

Same deal; as soon as I choose node as the repl type it crashes with that assertion error.

deep-symmetry01:03:36

Anyway, this has used up all the time I was hoping to spend developing tonight, so I guess I will try to just limp along with no REPL connection. It feels so paralyzing though!

dpsutton01:03:16

Ah! Choose shadow

dpsutton01:03:38

Then choose lib

deep-symmetry01:03:24

All right! Now when I run node lib.js it stays running.

dpsutton01:03:17

Perfect. And you should have a cljs repl running then

dpsutton01:03:40

If you eval in the repl buffer. Also go to definition, all the good stuff

deep-symmetry01:03:50

Strangely, I still get a warning about clj-refactor and refactor-nrepl being out of sync despite editing that out of the command.

dpsutton01:03:19

I forget how that works but i remember it being sticky like that

deep-symmetry01:03:47

But you’re right the things I was trying for are working. Thanks so much for your help!

dpsutton01:03:39

Feel free to ping me with questions

emmanueloga05:03:41

sup! I wonder if there's a way to ask cider to eval an expresion on the repl w/o opening, like M-: for elisp

emmanueloga05:03:37

M-: asks for an input expression on the bottom of the screen . Like: Eval: <...user-input...>

emmanueloga05:03:58

perfect! out of curiosity, how did you find that?

emmanueloga05:03:03

only problem is that i snot a global binding

emmanueloga05:03:21

so, if I'm editing, say, an XML file that is source of a process, I cannot trigger cider eval

emmanueloga05:03:32

oh, I think I can M-x that command though

emmanueloga05:03:34

that should suffice

emmanueloga05:03:05

yeah, that's good enough for now πŸ™‚

emmanueloga06:03:33

at some point I should use the extra buttons of my keyboard

bozhidar06:03:02

This command is in the user manual and the eval menu, btw. πŸ™‚

deep-symmetry14:03:17

And the user manual is so beautiful now! πŸ™‚

deep-symmetry14:03:53

And it has a search box!

deep-symmetry14:03:42

(I’m not saying you should have found it this way, just thanking @ for how far things have come.)

fabrao17:03:57

hello all, is Cider works with deps.edn?

fabrao17:03:15

is that correct this -> c:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe" -encodedCommand YwBsAG8Aag.... ?

fabrao17:03:27

why encodedCommand?

fabrao17:03:17

what is the default clj -A:.... commands

dpsutton17:03:52

oh. deps.edn doesn't officially support windows. i think someone has taken time to work on windows but i can't help you at all there

magra21:03:19

I have a fulcro/pathom server + db in a cheap little FreeBSD Jail somewhere far away and a furcro app for a few users. I can be jacked into my development environment with shadow-cljs + deps.edn and at the same time have a second sesman session via ssh -L with a jump host to the production server with a live repl into production from the same code. And all of that just works!!! You guys are wonderful!!! Thank you for all your work!!!

papachan22:03:59

sounds interesting. would be great if you can share all what you have successfully done with a post or some guide.

dpsutton22:03:54

that's awesome and terrifying.

jr0cket22:03:25

@fabrao there is a #clj-on-windows channel that discusses options for Clojure CLI tools and deps.edn on Windows