calva

Jake Pearson 2025-04-28T14:06:31.767659Z

Howdy! I've noticed that sometimes the formatter stops working for clojure files in Calva, but I haven't found much more of a pattern than that. Is there an output tab or log file that might be writing out if there is an error?

pez 2025-04-28T14:10:34.718769Z

There may be something in the developer tools console (available from the Help menu). Are you using format-on-save? There’s an issue on that, that you may be able to add clues to: https://github.com/BetterThanTomorrow/calva/issues/2789

Jake Pearson 2025-04-28T14:11:05.877719Z

Thanks, I'll take a look and add anything I see.

Jake Pearson 2025-04-28T15:03:08.041099Z

I added a comment, it looks like essentially no logging happens when Format Document is called in the latest version 503 versus 498 where a bunch of messages come out on format.

Jake Pearson 2025-04-28T15:03:31.530459Z

Happy to try more if you have ideas. Is there a way to get LSP logs?

pez 2025-04-28T15:05:04.923139Z

Yes, not that LSP has anything to do with this. You reach its log via the clojure-lsp button in the status bar.

Jake Pearson 2025-04-28T15:06:41.342919Z

I took that idea from the issue. I'll look at the developer tools console now.

Jake Pearson 2025-04-28T15:15:20.030969Z

Deleted my unhelpful comment. Developer tools show 4 error logs on format with the latest (none in 498). Added a comment with details.

pez 2025-04-28T15:20:00.112229Z

Interesting. I obviously haven’t read the initial issue description properly. 😃 There is a lot of red herrings in the logging generally.

🙂 1
Jake Pearson 2025-04-28T15:30:55.121769Z

Also, not sure when it was added, but the quick fix to resolve macro is great. Thanks!

🤘 1
pez 2025-04-28T16:03:29.518989Z

clojure-lsp power