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

Broken on Mac because of \r instead of \n #188

Closed
adius opened this issue Feb 16, 2015 · 12 comments
Closed

Broken on Mac because of \r instead of \n #188

adius opened this issue Feb 16, 2015 · 12 comments

Comments

@adius
Copy link

adius commented Feb 16, 2015

You're using the carriage return character (used on windows) and not the newline character for line breaks. => It's broken on mac and linux.

$ nwbuild -r ./app

env: node\r: No such file or directory
@konsumer
Copy link

+1

@felicienfrancois
Copy link

Seems to be a reccuring issue: #75, #108, #109

You can fix it by removing all \r in node-webkit-builder files. You can do it with most code editors, including vim with the following command :set ff=unix.

If you've time to, you can make a pull request.

@felicienfrancois
Copy link

Also note that windows uses \r\n and not \r alone. So \r should be removed and not replaced.

\r alone was used by old Mac OS (before it comes to a FreeBSD fork)

@konsumer
Copy link

I tried to make a PR, but it didn't register just \n changes. WIll need to investigate when I have a minute.

@adam-lynch
Copy link
Contributor

Would love a PR to fix this. Maybe a build step to normalize line-endings would be the best solution. Maybe https://github.com/ryanve/eol would help, I don't know.

@konsumer
Copy link

This would fix it once, as just doing it in your editor, but it still won't register in git. see this for a fix. I will try to make a PR for it, now.

@konsumer
Copy link

actually, it looks like you already have that. hmm.

@konsumer
Copy link

And ./bin/nwbuild works, so maybe just npm publish?

@adam-lynch
Copy link
Contributor

@konsumer 99.9999% sure I did that ("Dealing with line endings") before to fix this and it did nothing.


And ./bin/nwbuild works, so maybe just npm publish?

I'm not following you.

@konsumer
Copy link

Yep, that is my comment above. Just made build script to fix line-endings & publish to npm. I think maybe npm doesn't fix line-endings like git does.

@konsumer konsumer mentioned this issue Feb 17, 2015
@konsumer
Copy link

What I am saying is that my actual checkout is fine (I can run ./bin/nwbuild, which is what your package.json links to in bin) so it's something other than .gitattributes file, which you already made. To fix this, regardless of whether it's an issue with how npm packages files, I made a nice build script for you :) It also bumps the patch semver & pushes to npm, so you have a nice stable way to send files up to npm that you can be sure has the correct line-endings.

@adam-lynch
Copy link
Contributor

Fixed in 1.0.9.

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 a pull request may close this issue.

4 participants