-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add support for WSL in vscode #17
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17 +/- ##
==========================================
+ Coverage 86.95% 88.40% +1.44%
==========================================
Files 6 6
Lines 138 138
==========================================
+ Hits 120 122 +2
+ Misses 18 16 -2
Continue to review full report at Codecov.
|
Hi @s-h-a-d-o-w , Thanks for adding this to the project! I think it's fine because VSCode code is using it too. Could you please add a unit test to make sure this works in our code base so that we can have enough confidence to approve it? Thank you very much. |
Done. Apologies for missing that! I hope they are alright because... I'm not a fan of these redundancies myself. But looking at the already existing tests and skimming the mockery docs (as well as attempting to remove some of those redundancies), this seemed to me like a conscious decision by the original author and so I ended up following suit. |
Thanks for adding the unit test! I think this PR is good and I'd like to approve this PR after the CI turns green. |
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.
LGTM
Hey! Thank you for this fix. Thanks a lot! |
@juliomrc could you please give an approval to this PR to help us confirm this code is ok? @simonepri I think this PR will be good to go, and I will merge it if you do not against it and after it get another approval. |
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.
LGTM.
@huan thanks for the quick action. |
@juliomrc Unfortunately, I have no permission to publish to NPM, and this repo has not been configured in any DevOps pipeline. We need to wait for @@simonepri for publishing it. |
Closes #17 Co-Authored-By: Andreas Opferkuch <[email protected]>
Sorry everybody for being so late to the party! I took a look at the PR, and I'm okay with implementing a workaround for this issue, but I'm not sure I like how we implemented it in this PR as it can cause us to ignore more than just the I took the liberty to change the code to strip the message from the error stream instead, so that we can ignore only that particular error message. Please take a look, and confirm this will work as intended: I'll release a new version as soon this is confirmed. |
Closes #17 Co-Authored-By: Andreas Opferkuch <[email protected]>
I released a new 0.6.0 version, let me know if this solves the issue. |
This fix works as intended and the edge case integration with lint-staged no longer produces a problem. |
That's fair but... on the one hand, I wonder whether That said...
... and thanks to you for making WSL users happy! I wasn't sure whether it would happen since the last release here was a long time ago (I guess there simply haven't been any issues - which is awesome), so I'm really grateful. 🙂 |
Whenever
ps
is run in a WSL window in vscode, it prints an error (a "false positive" in a way), causing topidtree
fail.This work around here is also used in vscode itself.
I don't know whether you want to introduce something like this. As tiny of a change and as simple as it may be, I would understand it if you were to argue that you don't want to start including workarounds for such specific scenarios.
But in case the vscode team either doesn't want to or is unable to address this at the source (this problem has existed for years), this would obviously enable
pidtree
to be used for tooling in that environment as well. (I recently contributed an improvement to the concurrency behavior of lint-staged that usespidtree
and that I ironically haven't been able to benefit from because I happen to use WSL...)