-
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
Fixed problems with formatting the code with errors #84 #99
Fixed problems with formatting the code with errors #84 #99
Conversation
Hello, it seems no-one has looked at this PR for a while, so I will try to install your fork of the vs code plugin. Will update my comment with instructions if I can get it working. |
Oh also I was looking at your change (and the existing code), and I feel like it might be a bad idea to rely on stdout/stderr and a regex. It would be much nicer if |
Hi @RX14 @bew @bmulvihill! Could someone on the team merge this in? This is a pretty huge issue with the plugin since it completely wipes out the code if there is a syntax error. It may not be perfect since it uses a regex, but it seems to be much better than it is now I would also be happy to be added to this repo to help get this through. Thanks you so much! |
Hey @paulcsmith, I wasn't aware of this issue, can you confirm that the bug is gone with this PR ? I don't use vscode myself, so if you say it's ok, I can merge it, but I'm not sure how to release a new version to vscode's marketplace, so i'm not sure a merge is enough in this case.. |
@bew thanks for the lightning fast response. I've tested it and it does indeed fix the issue :D For anyone curious, I used the instructions here: https://stackoverflow.com/a/54409592 To publish it you'll need the vsce npm package: https://code.visualstudio.com/api/working-with-extensions/publishing-extension @faustinoaq may need to give you access, or maybe this just need to have a version bump to 0.4.x and be under a new org/team/whatever vscode gallery calls them |
Thank you! |
Ah I was about to do it^^ Anyone knows how to contact @faustinoaq ? So he can make a proper release for vscode' marketplace |
@speles Thanks so much for fixing this! Feel free to claim the $50 bounty I posted! https://www.bountysource.com/issues/69775273-whole-buffer-replaced-with-syntax-error Once you do that I can confirm and you'll get your cash money! |
New v0.4.0 published on Github also in Visual Studio Marketplace Thank you so much @speles! 🎉 😄 |
@speles Just another friendly reminder to claim the bounty https://www.bountysource.com/issues/69775273-whole-buffer-replaced-with-syntax-error :D |
Only changing of the regular expression is enough to fix the bug #84.
Though, separation of the data from stdout and stderr helps to avoid potential issues with "malicious" strings in the source (for example, inclusion of the string "Syntax error in test.cr:5:1: ooops" in the source will create phantom error on line 5 after the formatting).