This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # adventofcode (1)
- # announcements (13)
- # babashka (7)
- # beginners (77)
- # calva (31)
- # cider (18)
- # clj-commons (16)
- # cljfx (5)
- # clojars (4)
- # clojure (33)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (15)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (1)
- # core-logic (7)
- # cursive (16)
- # data-science (4)
- # datalevin (6)
- # emacs (20)
- # events (5)
- # fulcro (15)
- # holy-lambda (1)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (30)
- # luminus (3)
- # malli (3)
- # membrane-term (19)
- # missionary (62)
- # off-topic (37)
- # pathom (24)
- # polylith (5)
- # portal (9)
- # practicalli (2)
- # re-frame (16)
- # reagent (5)
- # remote-jobs (1)
- # reveal (21)
- # rewrite-clj (8)
- # shadow-cljs (13)
- # spacemacs (23)
- # sql (12)
- # timbre (2)
- # tools-deps (1)
- # xtdb (4)
Hi guys. Is there a way to configure my project in such a manner that Calva will handle compiling my less files? Currently I am running an extra command which compiles them on save, but after a few recompilations I am unable to evaluate anything in the REPL or the cljs files
There is no way to get Calva to handle that. Why would recompiling less files interfere with the REPL? That sounds strange…
It causes the page to refresh multiple times, because multiple files get updated. I am not sure how Calva works, but maybe if it has a state it gets corrupted? For example if a refresh is triggered before the previous one has finished
I think you need to stop the automatic refreshing. Or, when the REPL stops working like that. Try to reload the page and see if it starts working again. However, every time the page refreshes you will lose app state, which doesn’t seem optimal at all.
You could also try to reconnect Calva’s repl when you experience the problem. Thinking if Calva’s automatic reconnect might not keep up with the refreshes…
Now it happened without the less files. I got the following error while trying to connect to the current running repl:
and it also seems like that any changes to the files doesn't get reloaded. Only restarting vscode solves the problem
There’s an output channel named “Calva Connection Log” which might contain clues when you get that error connecting.
After killing and restarting in the connection log I get "socket closed". To my knowledge I am not running WSL.
I use the "ctrl + c " combination in the terminal, which terminates (kills) the current nRepl server
So, when you have jacked-in and it gives you that “Error while connecting CLJS REPL”. What do you see in the Connection Log? (NB: This is not the Calva Output/REPL, but a channel in the Output panel.)
Let me describe it better:
1. I notice that I can't evaluate anything in the repl, it gets stuck on the evaluation
2. I terminate the repl
3. Then I try to jack-in
I see the
Error while connecting cljs REPL: TypeError: Cannot read property 'search' of undefined error
4. In the Calva connection log I see "Socket closed" (see attachment)
Note: The connection log has information from the first startup, which in time wasn't able to evaluate in the repl. The only new line added is "Socket closed"
No. Its the result from attempting to start-up a new REPL or connect to an existing one. After restarting vscode and start-up a new REPL I can no longer see the "socket closed" message.
Hmmm. I don’t know where things go wrong. … There is an nREPL message log since recently. Maybe it has some clues for us. Start it with the command Calva Diagnistics: toggle nREPL something something
@U01B65G1Z63 Here’s a bit more info on that: https://calva.io/nrepl_and_cider-nrepl/#viewing-the-communication-between-calva-and-nrepl
I just went through a log. What I notice is that I am only sending to the repl but not receiving. I have attached a part of the log
Hey, the log has sort of come in handy already! 😃 It seems like something is going wrong in the server and putting it in some state in which it either isn’t processing input or just isn’t responding for some reason.
If you could share a repo with a small project in which you can reproduce the issue, that would be helpful for us to troubleshoot.
I suppose it could also be that the message isn’t even making it to the server in the first place, as I think we log that right before writing the message.
I am having this issue on the company project I am currently working at. Sadly I can't share it. I will try to cleanup the project and if the issue is reproducible I will give you the source code
Yeah, just some other sample project where it’s reproducible would work, if you can make such a thing.
I got a fun one Two tests:
When I use the calva test runner on them
(deftest name-with+in-it (is true)) (deftest name-with-plus-in-it (is true))
The one called
; Evaluating file: fun_test.clj #'app.fun-test/name-with-plus-in-it ; Running test: name-with+in-it… ; No tests found. 😱, ns: 0, vars: 0 clj꞉app.fun-test꞉> ; Evaluating file: fun_test.clj #'app.fun-test/name-with-plus-in-it ; Running test: name-with-plus-in-it… ; 1 tests finished, all passing 👍, ns: 1, vars: 1 clj꞉app.fun-test꞉>
name-with+in-itfor some reason isn’t getting run.
Well, it’s a good find. Please file an issue. Not sure if it is upstream in cider-nrepl or just in Calva, but we can start with Calva.