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.
I've also experienced that. Cutting the code works and after saving, delete works again, too. These are workarounds, at least.
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. 😃
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.
From memory: alt + backspace doesn't work. Only mark + cut.
The problem is CTRL+Backspace. Once I press it, nothing works any more.
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.
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
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.
I can imagine!
I have the same problem since one week.
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?
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
Thanks! I can repro with that! 🙏
Please file an issue with the repro.
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.
Awesome. Many thanks!