This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-03
Channels
- # aleph (1)
- # announcements (9)
- # babashka (3)
- # beginners (200)
- # calva (22)
- # cider (74)
- # clojure (97)
- # clojure-dev (43)
- # clojure-europe (15)
- # clojure-italy (4)
- # clojure-nl (4)
- # clojure-sanfrancisco (2)
- # clojure-uk (103)
- # clojuredesign-podcast (2)
- # clojurescript (45)
- # core-async (5)
- # cursive (13)
- # datomic (42)
- # emacs (20)
- # fulcro (6)
- # graalvm (37)
- # jackdaw (10)
- # leiningen (7)
- # mid-cities-meetup (3)
- # off-topic (2)
- # pathom (1)
- # pedestal (3)
- # re-frame (6)
- # reagent (38)
- # reitit (5)
- # shadow-cljs (117)
- # spacemacs (1)
- # sql (1)
- # tools-deps (17)
- # vim (14)
- # xtdb (18)
Wow, I wonder what the difference is for me? When I type node lib.js
it exits 0 in 155 milliseconds.
But I have something that works, so Iโm happy anyway.
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
What is dev mode?
Things have stopped working again. Now when I try to connect the cljs nrepl I get an Assert failed: (keyword? repl-env)
(This was after adding borkdude/sci
as a dependency.)
I removed lib.js
and recreated it (`npm run build`), and still node lib.js
terminates immediately.
(Context reminder, I am a Clojure developer totally new to the ClojureScript world with only rare brief exposure to npm
et. al.)
Ok, how do I build it then?
The latter is what my npm run build
script does.
ok. then rm lib.js
, go to emacs cider-jack-in-cljs
and then when it says its done compiling node lib.js
Ok, working on that!
cider-jack-in-cljs
failed with that AssertionError
. ๐
it should present a list of avialable builds. make sure to type :lib
rather than just lib
if it doesn't
Hmm, I am on CIDER <tel:202002271414|20200227.1414>
It blows up before prompting me for a list of available builds.
Happy to.
I can just comment out the use-package
in my init.el
?
Use a prefix Arg to jack in and you can edit the command and just take out the middleware
OK, I had disabled clj-refactor and it was still injecting refactor-nrepl. Trying with arg.
Same deal; as soon as I choose node as the repl type it crashes with that assertion error.
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!
All right! Now when I run node lib.js
it stays running.
Strangely, I still get a warning about clj-refactor and refactor-nrepl being out of sync despite editing that out of the command.
But youโre right the things I was trying for are working. Thanks so much for your help!
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
M-:
asks for an input expression on the bottom of the screen . Like: Eval: <...user-input...>
perfect! out of curiosity, how did you find that?
only problem is that i snot a global binding
so, if I'm editing, say, an XML file that is source of a process, I cannot trigger cider eval
oh, I think I can M-x
that command though
that should suffice
yeah, that's good enough for now ๐
at some point I should use the extra buttons of my keyboard
And the user manual is so beautiful now! ๐
And it has a search box!
(Iโm not saying you should have found it this way, just thanking @U051BLM8F for how far things have come.)
is that correct this -> c:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe" -encodedCommand YwBsAG8Aag....
?
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
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!!!
sounds interesting. would be great if you can share all what you have successfully done with a post or some guide.
@fabrao there is a #clj-on-windows channel that discusses options for Clojure CLI tools and deps.edn on Windows