Skip to content
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

Is there a problem here? does this make sense? #3738

Closed
mikoloism opened this issue Apr 27, 2024 · 4 comments
Closed

Is there a problem here? does this make sense? #3738

mikoloism opened this issue Apr 27, 2024 · 4 comments

Comments

@mikoloism
Copy link

mikoloism commented Apr 27, 2024

I haven't installed the esbuild package (maybe tsup does it as a peer), but I haven't called or run any related commands?!
Why does it run automatically?

image

cross issues to evanw/esbuild and egoist/tsup and microsoft/vscode

@evanw
Copy link
Owner

evanw commented Apr 27, 2024

This is due to a decision that I made because esbuild is written in native code and uses a platform-specific binary executable that comes from a separate package (one package per OS+CPU combination). This setup that uses separate platform-specific packages is complex and can sometimes break in unusual situations such as when people mess with their package manager’s settings.

So when you install esbuild, esbuild’s install script runs esbuild with the --version flag once as a sanity check which prints the version number and then exits. This catches situations where something is wrong with the installation so that you know something is wrong at install time instead of at some point later when you try to use esbuild. It has caught real issues in the past, such as people using a faulty npm proxy that caches packages for the wrong architecture, or people running esbuild on an old version of macOS that the Go compiler no longer supports.

This behavior is intentional. Nothing looks wrong here to me.

@mikoloism
Copy link
Author

mikoloism commented Apr 27, 2024

shouldn't it stop running after runs esbuild with the --version flag?

In addition, sometimes it uses a lot of resources like CPU without doing anything!!

@evanw
Copy link
Owner

evanw commented Apr 27, 2024

Ah, I see. It was unclear from your initial post what was happening. If it's still running then your problem is likely unrelated to any code in this repo, and something else on your end is causing esbuild to run. You'll have to investigate this on your end. Just posting a picture that says code > node > esbuild does not convey anywhere nearly enough information for me to be able to diagnose your problem.

@mikoloism
Copy link
Author

mikoloism commented Apr 27, 2024

That's a good point, I don't know what's going on here for me to explain it either 😃

I just know that the esbuild process is running without my knowledge and exception
I don't even know which process of vscode is executing the node process that will eventually lead to the execution of esbuild!

Meanwhile, my device's resources are being consumed by esbuild for a long time to the point that I am unable to move the mouse cursor.

I know this is not only related to esbuild and there must be a problem that runs an automatic process of esbuild without needing to my permission!

Finally, thank you 🙏

@mikoloism mikoloism closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants