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)

Commits related to this issue

Most upvoted comments

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 ๐Ÿ˜„

image

image

@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!

Still happens in 0.3.14 in rare cases with missing end. Could not boil it down to a minimal example though ๐Ÿ˜•

yeah, This still happens when crystal tool format throws 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.14 in rare cases with missing end. Could not boil it down to a minimal example though ๐Ÿ˜•