Fork me on GitHub
#calva
<
2024-04-20
>
craftybones13:04:04

Is there some bug around folding? I noticed that when I open an editor, the fold option in the gutter exists, but the second I fold one of the fns, the folds vanish? I am on 2.0.444

1
craftybones13:04:07

Oh wow, doesn’t really even have to do with clicking. It just vanished after a second or so of having opened the editor

craftybones13:04:23

Choosing to fold from the command palette also has no effect thereafter.

craftybones13:04:22

Darnit. It dies quicker than I can get a screenshot of

craftybones13:04:01

Here’s a fold free gutter

craftybones13:04:12

Notice there’s nothing where the usual fold icon should be

pez14:04:41

Looks like this issue: https://github.com/BetterThanTomorrow/calva/issues/2486 Workaround in the issue description. From one of the comments it looks like it stopped working also with nightly builds. Another workaround is to use the previous stable clojure-lsp release.

craftybones03:04:10

Thanks @U0ETXRFEW. There seems to be something about the nightly for sure. Backspacing an empty list on the first line throws an error

craftybones03:04:47

Just insert a () . remove the opening parentheses, and this pops up

pez06:04:57

That doesn’t look lsp related, though.

craftybones06:04:55

Right. I am not sure what it is, didn’t look at it until this morning

pez09:04:15

The folding issue should be fixed next clojure-lsp release. Though it will keep working differently than with the indentation setting. The other issue I don’t know what it is, but I can reproduce it. Afaict it only affects that particular situation.