vscode-crystal-lang: Whole buffer replaced with syntax error
In this installation:
code --version
1.31.0
7c66f58312b48ed8ca4e387ebd9ffe9605332caa
x64
crystal-lang: 0.3.12
The entire buffer is replaced with any syntax error.
E.g.
my_method(
Syntax error in line 1: expecting token ')', not 'end'
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 15 (8 by maintainers)
In the meantime, Iโve published a fork with the fix from #99:
https://marketplace.visualstudio.com/items?itemName=jgillich.crystal-lang-fixed
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 ๐
@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!
yeah, This still happens when
crystal tool formatthrows another message like a bug report or similar. Iโm working on a new backend for this extension, with new features and less bugs. I hope to get it soon ๐I just placed a $50 bounty to help out with this issue. Would love to have it fixed if we can ๐
https://www.bountysource.com/issues/69775273-whole-buffer-replaced-with-syntax-error
Still happens in
0.3.14in rare cases with missingend. Could not boil it down to a minimal example though ๐