-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
danger local fails to run in WSL #537
Comments
So, I don't know too much about this also - I've been running Danger on windows boxes from close to day one via appveyor - that said, this does seem to be raising inside get-stdin which is a library we use. Any chance you can clone it and run its tests? I think this should do it: git clone https://github.com/sindresorhus/get-stdin.git
cd get-stdin
npm install
npm test Some of this stack overflow issues imply that it's a NodeJS + Windows issue too, https://stackoverflow.com/questions/35820422/unknown-stdin-file-type-error-in-windows Ergh, yeah, not too sure here |
Running that says 4 tests passed, no errors as far as I can tell. |
Additionally, I want to point out the distinction that this is the WSL, i'm not running danger or any of the related tooling in a windows environment; it is being run in the Linux environment. I think this is a WSL issue that will hopefully be resolved in a future update. I felt responsible to document this as not working for the time being. I have been able to run |
Closing this as it seems like this particular issue has been resolved in a recent update. |
Still happening for me. |
I've been trying to migrate to using Danger-JS for some of my projects, however i'm having a hard time running danger in my environment. I am running danger inside of the Windows Subsystem for Linux (WSL), and the compatibility layer there seems to be what is tripping me up in understanding what is going on. The behavior I'm seeing is identical to what is described here: microsoft/WSL#1774
The existing work-around seems to be setting a timeout on the
end()
call to anystdin
, which I've tried to add for the instance it gets used incommands/utils/runDangerSubprocess.ts
, but was unable to properly verify if that had any impact -- I ranyarn link
in my checkout of danger thenyarn link danger
in my project directory, since my understanding is that doing that would allow me to have yarn execute the modified version of danger-js, and not the one it installed into mynode_modules/
; however that didn't seem to make a difference. Since I am not familiar with Typescript, or working with Node I wasn't sure what would be the correct fix or course of action here. I figured the least I could do was document this incompatibility incase others run into it.OS Info:
Danger Version:
3.2.0
Yarn Version:
1.5.1
Node Version:
v8.0.0
andv8.10.0
The text was updated successfully, but these errors were encountered: