Comments (5)
No @avassem85 . You did not! Lies! Lies! Lies!
from stryker-cli.
After some googling I discovered that this has to do with a mismatch in linebreak characters used by windows/dos-style \r\n
and unix-style \n
.
I found the following work around at StackOverflow.
Note that this solution uses Homebrew to install the dos2unix
package.
brew install dos2unix
find ~/.node/lib/node_modules/stryker-cli/ -name "*.js" | xargs sudo dos2unix
find ~/.node/lib/node_modules/stryker-cli/bin/stryker-cli | xargs sudo dos2unix
After executing this, everything seemed to work fine.
> stryker init
Stryker is currently not installed.
? Do you want to automatically install Stryker?
from stryker-cli.
@nicojs @simondel @avassem85 I think users may avoid the stryker-cli when encountering this behaviour, so I think we should see if we can solve this issue in general, instead of having to use the above workaround.
from stryker-cli.
TL;DR;
We're missing a .gitattributes
file. We do, however, have a .gitatrributes
file
Long version
Git is more than a distribute source control utility. It's also a line ending management tool (i don't like that part, but it is). When installing git on windows, you get the questions on what to do with line endings. I (the person who did the release) chose the option "checkout windows style, check in unix style". This means that my local bin/stryker-cli
file is different from yours. Mine has CR+LF line endings.
For me, everything works locally. So i did a release from my pc. However, npm is not a line ending management tool. It does not honor my git settings and it created a release with the CR+LF line endings.
My global settings for windows style line endings can be overruled per repo using the .gitattributes file. After we've created that file, problems should be solved forever, as everyone is forced to use unix style lf
line endings.
from stryker-cli.
I have just verified. Problem is solved by PR #24.
from stryker-cli.
Related Issues (14)
- Add command line interface init for stryker usage HOT 1
- ASCII art is shown too frequently
- Find stryker from anywhere in project folder HOT 3
- ASCII art does not show yellow in PowerShell HOT 1
- Command is not passed to stryker if it has to be installed
- Change the repo description (remove Work in progress!) HOT 7
- Stryker is currently not installed loop HOT 1
- Allow yarn as an install option HOT 1
- Remove this cli in favor of npx HOT 4
- 'Stryker run' fails with html reporter enabled when Stryker is installed with 'stryker init' on a new Angular project HOT 2
- Unable to use through corporate firewall
- Stryker-cli parses missing install error incorrectly
- CLI is not yet available as a binary HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stryker-cli.