Skip to content
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

Fixed yogi not working on Windows issue. #16

Closed
wants to merge 2 commits into from

Conversation

benjamind
Copy link

Cannot execute batch files with child_process.spawn due to issue in ChildProcess implementation on Windows. See nodejs/node-v0.x-archive#2318 for more discussion.

Easiest workaround this issue is provided by win-spawn package https://npmjs.org/package/win-spawn which fixes this problem by starting the process via a shell.

Cannot execute batch files with child_process.spawn due to issue in ChildProcess implementation on Windows. See nodejs/node-v0.x-archive#2318 for more discussion.

Easiest workaround this issue is provided by win-spawn package https://npmjs.org/package/win-spawn which fixes this problem by starting the process via a shell.
@davglass
Copy link
Member

Make sure that this is used in any other place that it needs to be
instead of just in the build commands.

Thanks!

@benjamind
Copy link
Author

Ok i'll modify and resubmit.

@benjamind
Copy link
Author

On further inspection of the source tree and dependencies I'm not entirely sure we'll be completely fixed up with these changes. It appears some of the dependencies also use child_process.spawn, however from looking at them they mostly appear to run full fledged Win32 applications using this method and therefore avoid the bug.

I'll investigate further as I test out Yogi. I suspect there might need to be changes to Shifter too as there's a line in builder.js that appears to run shifter using spawn, but I'm not sure if this ChildProcess bug applies to node installed executables so will address it as it comes up.

@benjamind
Copy link
Author

I have now successfully built a module with yogi, checked the documentation via 'yogi serve' and submitted a CDN request using yogi. However, it looks like there's a problem in grover since I cannot do 'yogi test' under Windows. The tests in the web interface provided by 'serve' work fine, but they cannot be run on the cli. Will look into this further and possibly submit an issue to the grover project if necessary.

@davglass davglass closed this in 839ffa1 Nov 26, 2012
@davglass
Copy link
Member

Pushed in yogi@0.0.45

@benjamind
Copy link
Author

Good stuff, confirmed all working now (including grover tests) on 0.0.45. Thanks Dav!

@davglass
Copy link
Member

🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants