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

+ in .cljfmt.edn :indents breaks auto indenting #2263

Closed
zeitstein opened this issue Jul 22, 2023 · 6 comments
Closed

+ in .cljfmt.edn :indents breaks auto indenting #2263

zeitstein opened this issue Jul 22, 2023 · 6 comments

Comments

@zeitstein
Copy link

zeitstein commented Jul 22, 2023

To reproduce, let your .cljfmt.edn be

{:indents {+ [[:block 0]]}}

Now, pressing enter or backspace no longer produces correct indentation. More in attached video.

Screen.Recording.2023-07-22.at.19.23.41.mov

In my project I have a bunch of these rules, but + seems to be the only one causing the issue.

@zeitstein zeitstein changed the title Adding + to .cljfmt.edn :indents breaks auto indenting + in .cljfmt.edn :indents breaks auto indenting Jul 22, 2023
@PEZ
Copy link
Collaborator

PEZ commented Jul 22, 2023

Thanks for reporting! An interesting one. 😄

@PEZ
Copy link
Collaborator

PEZ commented Dec 17, 2023

I can't reproduce this. Can you still, @zeitstein?

@zeitstein
Copy link
Author

Yup. Latest Calva.

Screen.Recording.2023-12-17.at.18.07.06.mov

@PEZ
Copy link
Collaborator

PEZ commented Dec 17, 2023

Thanks! I can reproduce it now.

@PEZ PEZ mentioned this issue Dec 18, 2023
13 tasks
@PEZ
Copy link
Collaborator

PEZ commented Dec 18, 2023

Calva v2.0.403 should fix this. Please give it a spin!

@zeitstein
Copy link
Author

Fixed. Thank you!

@PEZ PEZ closed this as completed Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants