-
Notifications
You must be signed in to change notification settings - Fork 25
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
Extension host crashes on unhandledRejection
#28
Comments
There's been a lot of mysterious crashes on windows coming from the compiled WASM parsers for specific languages. I recently published a new version where I updated to the latest versions of all deps, rebuilt the WASM files, and removed verilog, which seemed to be causing problems. Hopefully that has fixed it... |
Unfortunately, updating the dependencies doesn't guarantee that their wasm glue code no longer crashes the process on Promise.reject(0); |
Would be possible to use the verilog WASM for Linux? Or is there problems as in Windows? |
Having the same issue (ArchLinux with vscode v1.50.0-insider):
After several settings changes, keybindings changes, extension changes... It no longer crashed the extension manager... |
same issue
|
@georgewfraser Can all |
I'm fully aware but there is vast demand for Tree-sitter so a critical fix should be on the cards |
I have what is essentially a non-depecated version of this repo (I worked with @georgewfraser). I can give you (@sndst00m) access to the mirror so changes can be made in the meantime. Once/if George is back online we can merge the changes back into this repo since he really did most of the heavy lifting. |
I didn't quite get it all to work (see development console for errors), but FWIW, here's some work on
|
Sorry about that previous link @sndst00m @sogaiu, I had accidentally overwritten master with an old/very-broken WIP local branch and haven't checked that repo in a while. I fixed the branches, and master is now the stable version up to date with this repo. @sogaiu I updated the npm dependencies which fixed many of the initial issues. Then I tested building and installing. Since node-gyp is used, and it can be a pain to setup, I created an environment script that installs the C++ build tools and python version automatically so that everything works out of the box. Let me know if you're able to follow the setup instructions and run |
I'll take a look tomorrow at porting Bash. I find VSC's Bash support to be very lacking. |
@jeff-hykin Thanks for the detailed instructions. TLDR: tried some things and currently facing an error Details: I tried to follow the setup instructions to install nix, cloned your repository, and ran This did produce a I installed the I get the following error in the developer console:
I looked inside I tried removing This resulted in I now get different error(s) in the development console (seen after opening a |
@sogaiu thanks for the detailed feedback. Looks like I screwed up when I changed that tsconfig. I was getting a false positive when testing changed because I had already generated an I definitely generated several working build.vsix files, but the bad news is now I am essentially stuck at your same issue. I went back through all the commits I made, generating a build.vsix at each one, and so far all of them crash the entire extension host without leaving a message. I have no idea what changed. I rolled back some code-organization changes on Now that I think about it, when I was exploring previous commits it also reverts the project compile command, so I probably need to test older commits while using the newer command. I've got some other things to take care of though so it might be a while before I'm able to pick back up on this topic. |
One other thing to note, there seems to be another extension (I believe it's called syntax highlighter) that uses the tree sitter, but seems to be actively maintained. It might be worthwhile to switch to focusing on that repo. If you copy the commands, resources, and settings folder into a fork of that actively maintained repo the |
This is the extension you might be thinking of: https://marketplace.visualstudio.com/items?itemName=jeff-hykin.experimental-tree-sitter Oh you're the author! (Dev interview moment) |
May be it's this one? https://github.com/EvgeniyPeshkov/syntax-highlighter I recognize the author from this discussion. |
Yeah looks good to me. It even uses LSP to support existing Textmate themes. |
Could you post it in microsoft/vscode#50140 so that Microsoft staff can resolve the issue? |
Yup that's the one, I didn't realize he had kept maintaining it all this time. Looks like he's already using semantic highlighting which could be a much better replacement than trying to use the LSP! |
Thanks for the confirmation and identifying this extension! |
This issue is mostly FYI
vscode-tree-sitter
crashes the extension host process in case of any unhandled promise rejections. Unfortunately, you are not able to do much on the extension side. Most likely the culprit is yourweb-tree-sitter
dependency. The related issue is tree-sitter/tree-sitter#571 (comment).At the end of the day
vscode-tree-sitter
damages the extension host process when this happens and all other extensions altogether.The initial issue was reported in rust-lang/rust-analyzer#3515 (comment) to the unrelated
rust-analyzer
repo.The text was updated successfully, but these errors were encountered: