Calva: Calva Format is not working after upgrade to v2.0.97

Created on 8 May 2020  路  3Comments  路  Source: BetterThanTomorrow/calva

Both of the Calva Format: Format commands stopped working for me after calva was (auto-upgraded) to v.2.0.97

calva-format

When I call them on any top-level form, the show me the following errors:

  • Command 'Calva Format: Format and Align Current Form (recursively, experimental)' resulted in an error (Running the contributed command: 'calva-fmt.alignCurrentForm' failed.)
  • Command 'Calva Format: Format Current Form' resulted in an error (Running the contributed command: 'calva-fmt.formatCurrentForm' failed.)

As the error happens to me all the time, I don't think there is point to provide example clj project.

The following place might be a potential place where the error is happening:
https://github.com/BetterThanTomorrow/calva/compare/v2.0.96...v2.0.97#diff-5b2054c20efcd52a24589de0610093d6L38

If necessary I can provide my vs-code settings.

Version: 1.45.0 (user setup)
Commit: d69a79b73808559a91206d73d7717ff5f798f23c
Date: 2020-05-07T16:18:48.860Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363
bug formatting

All 3 comments

Thanks. I can reproduce it. The key here was:

When I call them on any _top-level_ form

Until fixed, move inside the form before hitting tab.

@PEZ It works. No errors, just formatting :)

Thank you 馃檱

Was this page helpful?
0 / 5 - 0 ratings

Related issues

frantic picture frantic  路  5Comments

lspector picture lspector  路  5Comments

FongHou picture FongHou  路  5Comments

PEZ picture PEZ  路  3Comments

frankadrian314159 picture frankadrian314159  路  4Comments