Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calva Format is not working after upgrade to v2.0.97 #640

Closed
andon opened this issue May 8, 2020 · 3 comments
Closed

Calva Format is not working after upgrade to v2.0.97 #640

andon opened this issue May 8, 2020 · 3 comments
Labels
bug Something isn't working formatting

Comments

@andon
Copy link

andon commented May 8, 2020

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:
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
@PEZ PEZ added bug Something isn't working formatting labels May 8, 2020
@PEZ
Copy link
Collaborator

PEZ commented May 8, 2020

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
Copy link
Collaborator

PEZ commented May 10, 2020

@andon
Copy link
Author

andon commented May 10, 2020

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

Thank you 🙇

@PEZ PEZ closed this as completed in 73fb795 May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatting
Projects
None yet
Development

No branches or pull requests

2 participants