mdx-js / mdx-analyzer

MDX extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx
MIT License
312 stars 17 forks source link

VSCode extensions: tsserver crashes with SIGABRT in React Native project #428

Open andreialecu opened 3 months ago

andreialecu commented 3 months ago

Initial checklist

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

andreialecu commented 3 months ago

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)

remcohaszing commented 3 months ago

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.

github-actions[bot] commented 2 months ago

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:

Thanks, — bb