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

Commandline tool doesn't run on Linux #6

Closed
poelstra opened this issue Jun 2, 2014 · 2 comments
Closed

Commandline tool doesn't run on Linux #6

poelstra opened this issue Jun 2, 2014 · 2 comments

Comments

@poelstra
Copy link
Contributor

poelstra commented Jun 2, 2014

When I run the commandline tool on Linux, I get:

martin@laptop:~/src/typedoctest$ typedoc --out doc/ --module commonjs test.ts
: No such file or directory
martin@laptop:~/src/typedoctest$ 

The error message is not so helpful, but it seems this is caused by the script having Windows line endings, which confuses the Linux shell that tries to parse the "#!/usr/bin/env node" line.

See also e.g. npm/npm#4607 who struggled with the same problem. Don't know what the best solution would be in this case, as you probably have the file checked out on Windows with automatic LF <-> CRLF translation?

The file isn't auto-generated, is it? In that case, it might help marking it as binary for git, and 'manually' convert the line-endings to LF (just on that file).

I converted it in my ~/npm/bin folder for testing, and that indeed seems to work.

@sebastian-lenz
Copy link
Member

You are right, thanks for pointing out the solution. I've converted the line endings in the entire project and tested it on a Mac. The binary seems to work right now, version 0.0.4 contains the updated files. Can you confirm it for the linux platform?

@poelstra
Copy link
Contributor Author

poelstra commented Jun 5, 2014

Thanks, works like a charm now!

@poelstra poelstra closed this as completed Jun 5, 2014
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

No branches or pull requests

2 participants