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
Running Chimp in cucumber mode on windows produces an error #432
Comments
Also getting the same error on my end on Windows. Is there currently a workaround fix for this issue? |
Have tried version 0.34 as suggested by @samhatoum and is currently working on Windows wth version 4.4.7 of NodeJS |
Any idea when this issue will be fixed? Tried the latest version, does not work on Windows 10. Reverting to 0.34 does work. |
@MacDennis76 which version of node? Have you tried with Node 6.5.0? |
On Windows 7 I'm getting the same error if I update to any version of chimp past 0.38, and any version of node past 5.12.0. |
Same issue here, encountered on multiple machines with Windows 10. Have tried on node v5.11.0 and v6.5.0 with the latest version of chimp. Everything works correctly with chimp v0.34. |
I am having the same Issue. Any idea when this would be fixed ? Works fine with 0.34 but I am missing new features of the latest version. |
This could be the absolute path that we pass to cucumber for the JavaScript transpilation. Line 34 in 91f9daa
|
you can test this by overriding the compiler option in a config file, or by passing chimp |
Specifying the absolute path in my custom configuration doesn't help. I'm successfully able to |
awesome, thank you @james-mcelwain |
Here is the fix: TheBrainFamily/cucumber-js@7fdbc5c. For some reason it is not in the current release anymore. |
@sanjo Awesome! Any chance you could get this merged to close this? We're trying to get a proof of concept for some automated testing stuff using Chimp and this has been a big annoyance for us. Thanks! |
Any update on the new build with the fix ? |
Fixed in 0.41.0 |
@pkoppula15 and @james-mcelwain please let me know if this works for you |
Thanks @samhatoum , I'll give a shot and let you know. |
It works now. Thanks @samhatoum . |
Yes, confirmed working with node 4.5.0. Node 6.6.0 does not work with Chimp on my workstation but it's my guess that the reason is selenium standalone and their NodeJS support policy. |
Expected behaviour
Chimp starts up without issue.
I think this might be a re-manifestation of an old problem where some cucumber stuff was splitting on ':' for absolute paths
Actual behaviour
module.js:442
throw err;
^
Error: Cannot find module 'C'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Array.forEach (native)
at Object.initializer (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\cli\support_code_loader.js:22:25)
at Object.Library (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\support_code\library.js:120:25)
at Object.getSupportCodeLibrary (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\cli\support_code_loader.js:10:58)
at Object.getSupportCodeLibrary (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\cli\configuration.js:126:32)
at Object.getSupportCodeLibrary (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\runtime.js:43:46)
Steps to reproduce the problem
I just did a fresh install of node + chimp and tried to run chimp --watch
Used version
Console / Log Output
$ ./node_modules/.bin/chimp --watch
[chimp] Watching features with tagged with @Focus,@dev,@watch
[chimp] Running...
module.js:442
throw err;
^
Error: Cannot find module 'C'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Array.forEach (native)
at Object.initializer (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\cli\support_code_loader.js:22:25)
at Object.Library (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\support_code\library.js:120:25)
at Object.getSupportCodeLibrary (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\cli\support_code_loader.js:10:58)
at Object.getSupportCodeLibrary (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\cli\configuration.js:126:32)
at Object.getSupportCodeLibrary (C:\Users\Kyle\webdriverio-test\node_modules\cucumber\lib\cucumber\runtime.js:43:46)
Join our Slack xolv.io/community #chimp channel, where you can find help and help others.
The text was updated successfully, but these errors were encountered: