-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
false positives with install validator #1883
Comments
Thanks for the detailed report @cplshma!
To be clear this would only be the case on Windows - on other platforms, filenames are case sensitive. Anyway, I think the underlying issue here is that we use Node's I'll try and a test that fails on Windows and we can go from there - hopefully a simple fix. |
OK, thank you. I'm happy to check the fix when released. |
Hi, any news here yet? I have fallen into this trap again. BTW: Happens only when started via gitbash terminal in IntelliJ Idea -> even after changing the folder name to lower cases in the file system "Local Path" shows a wrong uppercase folder name. |
Something else reported on Slack:
|
Given the nature of these false positives, I think it would be worth trying https://github.com/sindresorhus/is-installed-globally instead which has a different approach where it checks for known global dirs. |
We've just released v8.5.0 which includes the fix for this. |
Describe the bug
On windows 10 in git bash I execute cucumber the first time after npm install. An error is raised saying the executed install of cucumber is different from my local install, which is not correct. The trace shows that the validator compares my paths case sensitive:
`Error:
You appear to be executing an install of cucumber (most likely a global install)
that is different from your local install (the one required in your support files).
For cucumber to work, you need to execute the same install that is required in your support files.
Please execute the locally installed version to run your tests.
\install_validator.js:28:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Cli.run (C:\Development\web\it\analyse\src\e2e-xray\node_modules@cucumber\cucumber\lib\cli\index.js
:132:9)
at async Object.run [as default] (C:\Development\web\it\analyse\src\e2e-xray\node_modules@cucumber\cucumber
lib\cli\run.js:25:18)
`
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Cucumber's install_validator recognises paths "C:\Development" and "C:\development" as as equal OS paths
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: