Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@zaycker
Copy link

@zaycker zaycker commented Mar 4, 2025

fixes #2700

In case the eslint version is 8, whitespace.js file tries to execute whitespace-async.js file.
whitespace-async.js file starts with shebang header #!/usr/bin/env node which doesn't work under Windows.
It cannot be executed right away without definition of interpreter.
In case we try to execute it with execSync or any other fork tool it opens up a dialog for choosing a program to open the .js file.
It requires explicit definition of node interpreter at the place of execution.
windowsHide option prevents opening of cmd window during execution and it is ignored under non-Windows systems.

there is another PR which is outdated. made a fresh one

@zaycker zaycker changed the title fix whitespace module execSync under Windows with no shebang #2700 fix whitespace module execSync under Windows with no shebang Mar 4, 2025
@ljharb
Copy link
Collaborator

ljharb commented Mar 4, 2025

This is a duplicate of #2706. Please don't file duplicate PRs - if one is outdated, you can comment on that PR with your branch and maintainers can pull it in.

@ljharb ljharb marked this pull request as draft March 4, 2025 07:22
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

Successfully merging this pull request may close these issues.

Unexpected end of JSON input

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.