Fork me on GitHub
#calva
<
2023-10-17
>
Craig McDaniel15:10:49

Sometimes my backspace and delete keys just stop working. Imagine trying to get work done without those. And I’m a terrible typer.

Craig McDaniel15:10:39

I’m guessing it has something to do with Calva-fmt/CLOJURE-LSP trying to do something on those keys.

Craig McDaniel15:10:04

but I have no idea how to track down what is going on

Craig McDaniel15:10:01

Yeah, and it’s only in my clojure buffers. No issues in any other file type.

dpsutton15:10:33

Are you trying to delete delimiters like parens or brackets?

Bob B15:10:35

might want to look for commonalities to when those keys don't have the desired effect... for example, some editors with just the right paredit settings will prevent deleting parens that would make them unbalanced

Craig McDaniel15:10:02

not just parens

Craig McDaniel15:10:08

anywhere in the file

dpsutton15:10:39

How did you get to the file? Did you navigate to source? Perhaps it’s a read only buffer

Craig McDaniel15:10:17

no, I can highlight text and type over it, which is how I am getting around not being able to delete

pez15:10:56

There are more people running into this: https://github.com/BetterThanTomorrow/calva/issues/2299 We haven’t been able to track it down yet. See if bypassing the structural editor helps, @U03D6G7KGUB. By pressing alt+backspace instead of backspace when you are experiencing that bug. If it does, then that is a clue.

Karol Wójcik07:10:44

Shift + backspace works.

Karol Wójcik07:10:08

At least for macOS

pez07:10:43

Yeah, it does the same thing as alt+backspace, so should also test the same thing.

Karol Wójcik07:10:41

alt+backspace removes whole line for me :D but anyway I’m happy shift+backspace works

pez07:10:57

I’m happy for that too! 😃

Karol Wójcik09:10:52

Unfortunately sometimes structural editing still hangs the whole editor