calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
pez 2021-05-04T06:16:33.484800Z

Update on Getting Started REPL problems for some Windows users: @borkdude has figured out a plan for us working around it, so we should probably soon have it working. And Oracle has acknowledged the bug, so there is hope at that end of things as well: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8266473

πŸŽ‰ 2
Jakub HolΓ½ 2021-05-04T09:43:16.487400Z

Hello! I wonder if there is a more effective way connecting to babashka nrepl then I currently have: 1. start the nrepl: bb --nrepl-server 1667 2. Calva: Ctrl-Alt-C Ctrl-Alt-C (connect to running repl) 3. Enter to select the Generic 4. Type the port, 1667 At least is there e.g. a way to get Calva to remember the last port I used (if there is not nrepl file or similar)? Thank you!!!

pez 2021-05-04T09:49:15.489200Z

Hello! You might get away with placing an .nrepl-port file in the directory where you start babashka with the content 1667.

πŸ‘ 1
pez 2021-05-04T09:49:56.490Z

Also, you can avoid typing 1667 once by skipping it on the bb command line. It is the default.

Tomas Brejla 2021-05-04T12:37:04.498200Z

Hi. Recently I happen to be the one person who sometimes experience strange issues πŸ™‚. Few days ago I managed to be running a code+calva session, where there was this "Initializing clojure-lsp" message in bottom status line of the editor, but it never actually finished. I didn't really mind as I was able to work on that specific project for literally days without restarting (and with that "Initializing" message still being shown). Of course things like code-completion etc behaved in a bit limited way, but I didn't really mind. I restarted the editor today and it worked just fine, Initialization succesfully finished in a while. The project is a combination of lein project.clj backend & shadow-cljs frontend. If I remember correctly, I was trying to look for ".lsp" folder in that "initialization forever" scenario and it simply wasn't there at all. I was hoping to find some logs there, but the folder didn't exist. Today, after the succesful initialization, I can see that the folder is now present (and has todays creation time/date). If it ever happens again (I am pretty sure it wont πŸ˜„) , are there any specific logs to check?

ericdallo 2021-05-04T12:42:14.499300Z

You can check clojure-lsp.out log, that usually is logged in /tmp folder

πŸ‘ 1
ericdallo 2021-05-04T12:43:27.499500Z

There is a :log-path setting that you can point to any folder you want (like /tmp/clojure-lsp.out): https://clojure-lsp.github.io/clojure-lsp/settings/

ericdallo 2021-05-04T12:45:53.499800Z

@brandon.ringe It'd be nice if Calva had some log window on vscode for that log (not sure the correct name for that), for that work, I think Calva would need to pass on initialization options the path for the log via the log-path and use its content on a vscode window(not sure about this step)

pez 2021-05-04T13:51:52.000100Z

There is a log in the Output pane: Clojure Language Client containing stuff like

[Trace - 3:13:05 PM] Sending notification 'workspace/didChangeWatchedFiles'.
[Trace - 3:13:08 PM] Sending notification 'textDocument/didChange'.
[Trace - 3:13:08 PM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 3:13:08 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Is that what you refer to @ericdallo?

ericdallo 2021-05-04T13:53:29.000300Z

Hum, not realy, this looks a Calva LSP log, not the clojure-lsp one, where we could find exceptions, info/warn/error logs

ericdallo 2021-05-04T13:54:06.000500Z

Maybe rename that one to Clojure Language client and have a new one Clojure Language server

pez 2021-05-04T13:54:07.000700Z

I have observed the behaviour too, actually. Didn’t think about it much then because it was in a Calva debug session and I thought I might have provoked it by my frequent restarts of the session (yeah, that’s how non-Clojure-coding works πŸ˜„ ).

kstehn 2021-05-04T14:01:36.001Z

πŸ˜… same for me i tried my take on to start multiple lsp for each open project and thought i destroyed something so after a few hours of trying to understand and debugging i gave up

bringe 2021-05-04T19:25:16.007500Z

@ericdallo That's an interesting idea. I created this issue and tagged you in it: https://github.com/BetterThanTomorrow/calva/issues/1166

1