Fork me on GitHub
#calva
<
2022-02-02
>
zeitstein12:02:52

Any ideas on what happened here and how to fix it @pez @ericdallo? Just happened out of the blue and keeps happening on re-opening the project. Tried deleting all calva-related files in project folder. It actually occurs across all of my projects, so not project-related. I saw a couple of issues on github, but they were closed without seemingly being resolved.

ericdallo12:02:07

I'm not aware of any server crash, could you check clojure-lsp logs following https://clojure-lsp.io/troubleshooting/#server-log?

zeitstein12:02:29

The server fails to initialize. What should I check in the log?

ericdallo12:02:05

We don't have much info yet, but it seems the server crashes during the initialization, so the logs may help understand

ericdallo12:02:27

Try following the link I posted to point log-path to a path and tail that file

zeitstein12:02:23

I have a log from Calva/VS Code. Where to find clojure-lsp.out on Windows?

ericdallo12:02:06

I don't know, but if you set the config log-path you can point to any place you like

zeitstein12:02:14

I'm trying to do that, but I get no log out.

ericdallo12:02:07

so maybe the server is indeed not initializing at all, which is odd

ericdallo12:02:23

could you try to run the clojure-lsp binary manually on your terminal? which clojure-lsp --version ?

ericdallo12:02:30

not sure where calva downloads it though

ericdallo12:02:16

meanwhile you can try installing clojure-lsp manually for Windows following https://clojure-lsp.io/installation/#windows

zeitstein12:02:10

Found where Calva downloads it, when I run it I get no output.

zeitstein12:02:52

There's a clojure-lsp-version file in this folder, which says 2022.02.01-20.02.32

ericdallo12:02:14

So it seems indeed it's crashing which latest version :thinking_face:

ericdallo12:02:18

Could you confirm if the same happens if you install clojure-lsp via scoop or download it from the https://github.com/clojure-lsp/clojure-lsp/releases/tag/2022.02.01-20.02.32?

ericdallo12:02:38

it seems to be a graalvm issue, maybe try downloading the clojure-lsp file from the releases and check if it works

zeitstein12:02:32

To confirm: downloaded clojure-lsp-native-windows-amd64 , extracted, than ran.

ericdallo12:02:35

c/c @U9A1RLFNV Please open a issue on clojure-lsp with that info, meanwhile you can use previous release downloaded manually or the clojure-lsp one from the releases and make calva point to that, there is a Calva setting for that

zeitstein13:02:25

This is the latest version that works:

zeitstein13:02:09

And thanks for your quick help! gratitude

👍 1
pez13:02:06

You are a hero, @ericdallo! gratitude

😂 1
ericdallo13:02:17

Yeah, I'm afraid the crash it's related with graalvm bump, but I'd like more people with Windows confirm this behavior, so please consider opening the issue so we can track that

Lukas Domagala13:02:00

I’ll start up my windows machine and check if i get the same thing

🙏 1
ericdallo13:02:13

BTW @U04V15CAJ are you using graal 22.0.0.2 in any project? I'd like to know if graal 22.0.0.2 is working for windows on other binaries or is only with clojure-lsp

Lukas Domagala13:02:16

its broken for me too

gratitude 2
borkdude13:02:02

I'm using it but I haven't released anything with it. all tests are passing

ericdallo13:02:22

Yeah, we will need to debug further to check why it's crashing so

lread15:02:35

I'm using graalvm 22.0.0.2 jdk11 for native tests of rewrite-clj on macOS, Windows, and Linux. All tests are passing.

ericdallo15:02:47

Thank you @UE21H2HHD, I suspect it's something related with clojure-lsp so, need to debug on a windows VM later

👍 1
Thierry11:02:54

Having this problem too

ericdallo12:02:49

Thanks, I'll work today in a fix

ericdallo13:02:26

So I confirmed the issue is indeed compiling clojure-lsp with graalvm 22.0.0.2 on Windows, I'll revert windows to use previous one for now

🙌 2
ericdallo13:02:47

I have no idea how I'll debug/understand why it happens later 😅

borkdude13:02:13

do you have tests for Windows CI?

ericdallo13:02:49

no :( the clojure-lsp bb integration tests don't play well with windows binary and I never spent the time to understand why

borkdude13:02:04

maybe start there ;)

ericdallo13:02:58

Yeah, last time I spent too much time and didn't find the issue, will create a issue for if someone is interested on checking that

ericdallo13:02:51

Fixed, the latest same release should be fixed, I uploaded the windows binary compiled with previous graalvm version and it should be working now

gratitude 3
ericdallo13:02:02

thanks for the help everyone!

🙌 1
zeitstein14:02:33

Thanks for responding quickly!

🙂 1
pez13:02:07

I'm now officially a streamer! Haha, maybe not, but @danielamber2 and I just live streamed a session where I am doing that scary thing that's called Live Coding 👻. I completely forgot to tell you people about it, though. Nervous about the whole thing and focusing on being prepared... Next time we will post the live stream link with some notice and I hope you will find it interesting to join live. Thanks to the five people in the audience we did have! Anyway, here's the full recording: https://www.youtube.com/watch?v=tRPKSXullYs

calva 7
👀 1
🎉 1
porksausages20:02:17

anybody had any luck using paredit on macOS? seems like it tries to use built in macOS key commands so i can't really use it. was just going to turn it off entirely but saw on github that pez didn't even really intend for that to be an option so i was wondering if there were any quick config changes to make it usable?

pez20:02:56

What I have done is disabled the MacOS shortcuts. But the Calva shortcuts are just defaults, you can assign them to whatever you like. For me, I have much more use for efficient Paredit shortcuts than mission control stuff.

porksausages20:02:53

that makes sense i guess. just out of curiosity, do you not use desktops/workspaces and switch between them or is there some other way of doing that which i don't know of?

pez20:02:52

Personally I don't use that. I think there might be trackpad/magic mouse gestures for it. And you can also change the default shortcuts, for those, I think.

👌 1
seancorfield20:02:51

@UH1SWK753 I've changed my macOS keys for switching desktops to ctrl-opt-cmd-, and ctrl-opt-cmd-. so I can use the more natural keys for paredit 🙂

seancorfield20:02:11

I have nearly all the macOS shortcut keys either disabled or changed to other stuff, partly so I can get my macOS and Windows experiences more similar since I switch between the two a lot.

wevrem20:02:31

I use my mouse’s middle button to trigger mission control, then I can have the shortcuts work in VSCode. Also, when my mouse sometimes decides it wants a vacation, I use the trackpad gesture.

seancorfield20:02:51

I can't remember the last time I used Mission Control... never found it very useful 😕

wevrem20:02:43

That’s interesting. I use it all the time. I’m referring to the “make all the windows appear smaller so you can pick one”. I tend to have all my windows fullscreen, and all on the same desktop, so that action is handy and quick. The latest update to MacOS is trouble, though. None of my windows stay put on wake.

seancorfield20:02:35

Ah, I have all my full-screen apps on different desktops. That's probably why.

wevrem20:02:14

I’ve seen your desktops, @U04V70XH6, when you did the Provo meetup last year, and you have many (dozens?!) of windows, mostly terminals. How you keep track of it I can’t imagine. But it makes me smile.

seancorfield21:02:18

Haha... yeah, Terminal is my weakness 🙂 I have 30 Terminal windows open right now and four of those have two or more tabs open in them.

seancorfield21:02:36

I have a hot corner (bottom left) to show application windows. Apparently, I have F3 mapped to Mission Control (shows how rarely I use it that I had to go look in Preferences to see what I had done with it).

wevrem21:02:44

Do you use Terminal or something else? I was recently looking at iTerm 2.

seancorfield21:02:25

Terminal. I'm old school I guess. This Mac still runs 10.12(!) -- partly because the HD is failing and neither Disk Repair nor the macOS upgrades will run on it.

seancorfield21:02:54

This will be my last ever Mac (after being an Apple customer since around '92!).

wevrem21:02:08

what are you going to do next? windows all the way?

seancorfield21:02:08

My laptops have been Windows since 2012. I currently have a Surface Laptop 3 and do my dev there with VS Code / WSL2.

seancorfield21:02:39

I even switched my iPhone out last year for my first ever Android (and wish I'd switched years ago).

seancorfield21:02:21

(and that had been my 4th iPhone I think)

pez08:02:03

Mission Control, multiple desktops and such confuse me. I use one desktop, Magnet to easily tile and maximize windows, and Alt-tab to switch between windows.

Lukas Domagala12:02:18

I have all mission control stuff disabled too. I even have karabiner-elements installed to switch all hotkeys to be windows like 😈