-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Not supported to run in the VSCode extension #624
Comments
I haven't been able to reproduce this. I cloned your repo, ran I've never used the VSCode ESLint extension but I tried installing it and I'm not even sure how to get it to run or see if it's working/erroring. I checked out |
Thanks, I was able to reproduce it! Debugging it, it actually doesn't seem to be a tsx issue. As you can see from the error stack, it's coming from esbuild when it tries to spawn: TypeError: Cannot read properties of undefined (reading 'size')
at normalizeSpawnArguments (node:child_process:726:34)
at Object.spawn (node:child_process:792:13)
at ensureServiceIsRunning (/github/privatenumber/tsx/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1993:29) In esbuild, this is the line: It looks like a pretty simple
If VSCode bundles its own version of Node with it, I wonder if it's a modified fork? |
The bug is confirmed to be caused by VSCode, likely related to the Some part of the code from VSCode isn't open source; I searched the entire GitHub codebase. |
Raise an issue upstream: microsoft/vscode#224426 |
Wow very nice work @sxzz 🔥 Will wait for it to be resolved upstream. How did you manage to see into |
|
Ah amazing! Thanks for the tip @sxzz |
Acknowledgements
Minimal reproduction URL
https://github.com/sxzz/tsx-vscode-ext
Problem & expected behavior (under 200 words)
Run
pnpm lint
; it works. However, in the VSCode environment, the ESLint extension shows an error.The full error stack:
version
VSCode:
1.91.1
Node:
20.9.0
My repo, https://github.com/sxzz/eslint-config, uses https://github.com/antfu/eslint-ts-patch powered by tsx and encounters the same error in VSCode.
I can also confirm that this issue also occurs in Vue Language Tools.
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
The text was updated successfully, but these errors were encountered: