-
Notifications
You must be signed in to change notification settings - Fork 65
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
Failed to run "peggy" on windows, "-S.exe" is missing, what's this? #514
Comments
I haven't tried installing with yarn or on windows. Can you help us narrow this down by trying:
I don't have easy access to a Windows dev environment at the moment, so trying out some options will help a lot. Thanks! |
What version of yarn are you using? When I try
|
Thx for reply, i use yarn 1.22. I forked pigeon(one of golang's peg tool), then rewrote it to generate haxe code. And seems yarn is not much better than npm since 2024(and 1.x is not maintained), maybe i should switch back to npm, or use pnpm to instead. |
I am experiencing this issue, and I think it has nothing to do with yarn itself. I hadn't noticed it before because I normally use WSL, but when I had to test the system in the Windows host, I found this issue. Using an earlier version of peggy, such as 3.0.2 or 2.0.1 on Windows, or using the latest version on WSL (Ubuntu), both cases by running with yarn, does not cause any problems. |
@lhsantos does it work with |
For |
|
Note: I'm assuming that whatever yarn version you have isn't installing the same wrapper .bat file that npm does, and trying to see if that's actually true. |
Just |
Ah, sorry, actually |
Handle node runtime flags manually, executing a sub-instance of node to actually run `peggy`. Fixes peggyjs#514.
I tested the PR on my machine and it seems to work across
But then it got a bit weird. |
I thought it was supposed to have been working on NPM for quite a while. On yarn, there is this bug: that isn't marked fixed yet. |
IIRC it broke with But I looked closer at the old image and it looks like despite So I guess some environment caching nonsense was at play? |
I continue to thing that this is a yarn bug. With a modern npm or pnpm, the correct command wrapper should be written. Another way to solve this would be to document this case with "Yarn is broken. Do not use it to install peggy until bug 6305 is fixed." |
Yet another approach would be to land #555 but add a new bug to remove that code if yarn's 6305 is fixed. That seems like the best short-term approach. |
Handle node runtime flags manually, executing a sub-instance of node to actually run `peggy`. Fixes peggyjs#514.
I searched peggy.cmd on my computer, i found it use "-S.exe" to load peggy whether "-S" exists or not:
env:
Is this situation a bug? it can works if i removed -S of ELSE case.
The text was updated successfully, but these errors were encountered: