-
Notifications
You must be signed in to change notification settings - Fork 39
fix(windows): revert writing all possible cases of PATH variables #22
Conversation
@zkat I'm really wondering what's holding the merge. We've been waiting for this bug to get fixed for some time now. |
There's been a bit of discussion as to what this was originally meant to fix, and whether there's a better way to address it, as well as why this patch broke things in the first place: https://npm.community/t/3-path-variables-are-assigned-to-child-process-launched-by-npm/1042 I think the way forward right now is to make sure all the questions are resolved, so we don't go back to breaking things but in a different way (which I believe is what this patch would do as-is, right now). |
The PR that introduced the bug was #17 supposedly to fix the issue #16. As I explained in this comment there is no reason to declare 3 different |
Hi there, I submitted the original PR. Well this is embarrassing! Surprisingly I can't seem to reproduce my own issue either now (I've tested node v8-10, npm v5.8-current). I'm still not sure what was going wrong that day, but I saw two path variables - Another thing I can remember is that in "System properties > Advanced > Environment Variables" dialog, the "User variables > PATH" was different from "System variables > Path". I can't reproduce this either now (both are |
@laggingreflex @zkat Now this clarifies things. From my investigation, I can assure you that there is no need to do anything as Conclusion: The problematic code can be safely removed to restore functionality on Windows. The existing code does the necessary handling. Note: In order to avoid any confusion with other |
Found this bug in the wild. |
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 like this is the best way forward. Thanks all for taking the time to look into it so we could be more careful/intentional about this change this time around. Hopefully this makes like generally easier for win32 users ^_^
Fixes #20