question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension host crashes on `unhandledRejection`

See original GitHub issue

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 your web-tree-sitter dependency. The related issue is https://github.com/tree-sitter/tree-sitter/issues/571#issue-577509898.

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 https://github.com/rust-analyzer/rust-analyzer/issues/3515#issuecomment-596207493 to the unrelated rust-analyzer repo.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sogaiucommented, Aug 4, 2021

May be it’s this one?

https://github.com/EvgeniyPeshkov/syntax-highlighter

I recognize the author from this discussion.

1reaction
jeff-hykincommented, Aug 4, 2021

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 commands/start will most likely still work and autoinstall the node-gyp dependencies of that repo. The compile command might be different, but I’m sure they’d have an npm script for it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bountysource
Extension host crashes on `unhandledRejection `
Read more >
Live Sass Compiler causing Extension Host crash after latest ...
I am trying to use sass styling and Live Sass Compiler extension, I recently installed it and now keep getting a extension host...
Read more >
Node.js v19.3.0 Documentation
js handle objects with undocumented APIs. Using any functions or properties on the object is likely to crash your application and should be...
Read more >
Error Messages | Cypress Documentation
If the browser running Cypress tests crashes, currently, Cypress will abort ... or its unhandledrejection handler, Cypress will detect it and fail the...
Read more >
Electron Releases - GitHub Pages
Fixed query string parsing in PDF Viewer #10008; Fixed crash that occurred ... getExtensions to add/remove/get Chrome extensions in an Electron app #9918 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found