VSCode extensions: tsserver crashes with SIGABRT in React Native project
Initial checklist
- [X] I read the support docs
- [X] I read the contributing guide
- [X] I agree to follow the code of conduct
- [X] I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
v1.8.3
Link to runnable example
No response
Steps to reproduce
Just opening a React Native project seems to crash TSServer.
Expected behavior
No crash.
Actual behavior
Recently started getting TSServer crashes the moment a react native project was loaded in VSCode.
I ran an Extension Bisect and the problem is the MDX Language Support extension.
Some additional information:
2024-04-03 12:43:43.521 [error] TSServer exited. Code: null. Signal: SIGABRT 2024-04-03 12:43:43.521 [info] TSServer log file: /Users/.../Library/Application Support/Code - Insiders/logs/20240326T151710/window3/exthost/vscode.typescript-language-features/tsserver-log-kR3wf9/tsserver.log
Unfortunately the TSServer log doesn't contain anything relevant, it just abruptly cuts off:
Info 15569[12:43:42.919] event: {"seq":0,"type":"event","event":"largeFileReferenced","body":{"file":"/Users/.../ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-hermes.build/Objects-normal/arm64/MessageTypes.o","fileSize":5108688,"maxFileSize":4194304}} Info 15570[12:43:42.941] Skipped loading contents of large file /Users/.../ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-hermes.build/Objects-normal/x86_64/Connection.o for info /Users/.../ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-hermes.build/Objects-normal/x86_64/Connection.o: fileSize: 8022680 Info 15571[12:43:42.942] event: {"seq":0,"type":"event","event":"largeFileReferenced","body":{"file":"/Users/.../ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-hermes.build/Objects-normal/x86_64/Connection.o","fileSize":8022680,"maxFileSize":4194304}}
Runtime
No response
Package manager
No response
OS
macOS
Build and bundle tools
No response
Interestingly, if I disable the extension and reload the project (and avoid the crash), I don't see any logged messages like Skipped loading contents of large file ... (aka: the last few messages in the log when it crashes, see initial post)
Could you provide a git repo to reproduce the problem? It doesn’t even have to run or build. It just needs to show this problem when opened in VSCode.
Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing more info. It’s not clear yet whether this is an issue. Here are a couple tips:
- Spend time framing the issue! The more time you put into it, the more we will
- Often, maintainers respond with why for several back and forths; rubber duck debugging might help avoid that
- Folks posting issues sometimes fall for xy problems: asking for a certain solution instead of raising the root problem
Thanks, — bb