-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
[bugfix] Executing pnpm test
on workspace folder with a space on the name doesn't work ENOENT: no such file or directory
#893
Conversation
|
|
I see. I imagined it had to be something to do with windows, but I would have never guessed that issue! In that case, I'll do the space quoting when I have some time. Should I keep shell:true if the platform is not windows? It might be unnecessary. https://nodejs.org/api/child_process.html#spawning-bat-and-cmd-files-on-windows |
That seems fine to me! |
On windows it requires escaping, Based on https://www.robvanderwoude.com/escapechars.php#:~:text=In%20batch%20files%2C%20the%20percent,instead%20of%20being%20further%20interpreted. Before merging this requires checking that it is correct
5b127b4
to
722b939
Compare
Hi @Princesseuh , I haven't had much time. I would need some help to test this, since I don't have a windows machine. I think what I did is sane? at the very least better (assuming I followed the instructions correctly). If it is too complex, we could just disable the escape in non-windows and leave that as a TODO for when someone with a windows machine encounters that issue and has a bit of time to fix it This is unrelated, I think? but when I run |
Yeah, there's a failure on main on a content intellisense test, haven't had the time to investigate yet, but it's definitely unrelated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you! Apologies for the delay.
Changes
External Projecs
has a space. Executingpnpm test
it executespromisifySpawn
with shell:true. However, any arguments ofchild_process.spawn
is not escaped when shell===true.Testing
If the tests don't run successfully on the test matrix on all systems, this is clearly wrong.
Docs
bug fix only on a test script