-
Notifications
You must be signed in to change notification settings - Fork 55
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
Whole buffer replaced with syntax error #84
Comments
Oh, I can confirm this bug, Thank you for report it 👍 |
Still happens in |
yeah, This still happens when |
I also experienced this and was worried if it was on the formatter side or in the extension. Also, when using a custom crystal build the first line in the buffer ends up being: |
Hi @bcardiff Thank you for your comment. Yeah, current Node.js backend has some pitfalls, currently I'm using experimental Scry server while working on a new backend for this extension, I need to sync my work with github, though 😅 I'm using this branch https://github.com/crystal-lang-tools/scry/tree/fa/work-in-progress Also here is my currently working source code of scry: SHA256: f8556f4b2816ecbb6c1e31c24b3740a91d055d3f9426b80310509c52de5bedb7 There is a
My
|
Formatting feature inside Scry should work like a charm, 'cause it doesn't uses command line, so no warning messages or other formatting errors can be included in formatted code. |
This one keeps biting me. It's rather unnerving. |
@faustinoaq Is there any progress in the scry server that can be published? Otherwise, it would be great to consider fixing this issue in the latest version since it's a papercut that many people with the constant-saving-file-behavior ✋will suffer. I know little or nothing about developing vscode extensions. I'm not sure after a checkout which node/ts should be installed and how to run the working copy version of the extension. If you can point me on these topics I might be able to hack around. Thanks! |
I just placed a $50 bounty to help out with this issue. Would love to have it fixed if we can :D https://www.bountysource.com/issues/69775273-whole-buffer-replaced-with-syntax-error |
LOL the first time this happened, my heart dropped. I was so happy ctrl+z worked, I think I would have cried :D. But yeah, this bug actually played a vital role in me creating backups. Which in the end, is a positive thing. Happy little bugs |
@faustinoaq Thoughts on #99? Can we get this in? |
In the meantime, I've published a fork with the fix from #99: https://marketplace.visualstudio.com/items?itemName=jgillich.crystal-lang-fixed |
Fixed problems with formatting the code with errors #84
Hi @jgillich @baelter @rowland @paulcsmith @girng @bcardiff vscode-crystal-lang is updated now. I can confirm, this error doesn't happen anymore, feel free to test it and report new issues 😄 |
Awesome work! Will this fix make it into the main fork of the Crystal plugin? |
@RockManJoe64 this fix is available in 0.4.0 released under https://marketplace.visualstudio.com/items?itemName=faustinoaq.crystal-lang |
In this installation:
The entire buffer is replaced with any syntax error.
E.g.
The text was updated successfully, but these errors were encountered: