-
Notifications
You must be signed in to change notification settings - Fork 11
purs-tidy deletes code when a trailing parenthesis is missing #89
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
Comments
Sorry, it’s impossible for me to tell what’s going on in that video. If you have a syntax error, purs tidy should not try to format anything. Are you sure you are actually using 0.7 and don’t have some other local version installed? |
In my package.json it says 0.7.0, although there could be some local version overriding it. In the video, at the ~14s mark when I select "Format Document" in VSCode, roughly 2/3 of the text in the file is deleted. I'm not sure if it's |
I don't think anyone is going to be able to help you without some kind of repro. A YouTube video isn't a repro, unfortunately. |
Apologies for the YT video - I know it's not much help in terms of reproducing the bug, but as I came across it during work and thought it would be helpful to report something, I wrote this up. I've been doing my best to reproduce the issue but I can't get it to trigger again, even when duplicating the same parenthesis error. I'll close the issue, and if I spot it again in a way that is reproducible, I'll reopen. |
https://www.youtube.com/watch?v=iX2nVDKrhWA
In the example above, you can see that when I run format using
[email protected]
via VSCode, it deletes around 2/3 of the document. I believe this is due to a missing trailing parenthesis on one statement - when I closed the parenthesis,purs-tidy
ran correctly.I realize this may not be very helpful without the document in question, so please let me know if you'd like any additional info. Thanks!
The text was updated successfully, but these errors were encountered: