beginners

Yuri Melo 2025-12-07T14:24:05.414399Z

Hello Clojurians, how are you? After installing calva extension on VS Code and write some clojurec code I've been facing with an issue: I can't delete code neither backspace key or delete key on my keyboard. @pez Would it be some calva extension setup who I forgot to do? In this video, you can look at who I selected a line of code and tried to delete it, but I couldn't.

Ludger Solbach 2025-12-08T15:56:00.894019Z

I've also experienced that. Cutting the code works and after saving, delete works again, too. These are workarounds, at least.

pez 2025-12-08T16:04:07.018599Z

It works after saving. That’s a clue as well, even if I can’t make any sense at all of it right now. Please continue to add observations. I may at some point be able to see some pattern. 😃

pez 2025-12-08T16:04:36.221139Z

Also. Anyone who rus across this, please: > See if alt+backspace works. (Not as a fix, but as a diagnostics it can tell us something.) also check the developer tools console (you can access from the Help menu) and let us know what you find.

Ludger Solbach 2025-12-08T16:33:51.086089Z

From memory: alt + backspace doesn't work. Only mark + cut.

hrtmt brng 2025-12-09T05:52:12.885599Z

The problem is CTRL+Backspace. Once I press it, nothing works any more.

pez 2025-12-07T14:48:39.745649Z

That’s awful! See if alt+backspace works. (Not as a fix, but as a diagnostics it can tell us something.) also check the developer tools console (you can access from the Help menu) and let us know what you find.

2025-12-07T16:44:31.900729Z

I've hit this a few times too. It won't let me delete even blank lines. Usually, if I save the file and move the cursor around, it lets me delete again. No idea why

pez 2025-12-07T17:09:19.630539Z

I usually suspect that Calva’s structural editor has gone into a spin when this happens, but lately we haven’t been able to confirm that. It can also be something non-Calva-related that locks up, and sometimes is. Really tricky thing to debug without a clean repro.

2025-12-07T17:36:57.032899Z

I can imagine!

hrtmt brng 2025-12-08T04:48:38.227229Z

I have the same problem since one week.

pez 2025-12-09T08:05:02.399849Z

What’s bound to "ctrl+backspace" on your machine, @hbrng.computer? Calva should bind it by default for deleting to the start of the list. If that breaks things we have a strong clue. What system are you on? Can you reproduce it with a file you can share? If you install VS Code Insiders (assuming you don’t have it installed) and only install Calva, can you reproduce it then?

hrtmt brng 2025-12-09T11:14:32.829449Z

Yes, I have this key binding. Steps to reproduce: 1. Create new file 2. Change Language -> Clojure 3. (a) 4. Mark the expression -> backspace -> works correctly 5. Undo 6. Place cursor after ). 7. CTRL+backspace -> nothing happens 8. Mark the expression -> backspace -> nothing happens

🙏 1
pez 2025-12-09T11:16:34.607609Z

Thanks! I can repro with that! 🙏

👍 1
👍🏼 1
pez 2025-12-09T11:16:48.557909Z

Please file an issue with the repro.

pez 2025-12-09T11:20:19.889489Z

For me alt´backspace works when in this hung condition. And it also seems to get things working again. I think I understand why alt+backspace works, but I do not understand why it would unhang things. Hopefully that gets clearer when I look closer at the issue with this repro.

hrtmt brng 2025-12-09T11:21:02.136369Z

https://github.com/BetterThanTomorrow/calva/issues/2973

🙏 1
pez 2025-12-09T11:24:22.249769Z

Awesome. Many thanks!