-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support escript shebangs #131
Comments
Hi, Sorry for the delay. I am not used to using escript, can you give me detail about it ? here is my sample : #!/usr/bin/env escript usage() -> fac(0) -> 1; |
The issue is quite weird it seems. I took your sample and wrote it to a file
Switching the language to something else and then back to Erlang, the error disappears. |
Hi, In the mentioned example the first line is not part of the language at any means and ignored by escript (used by Linux shell). Since I've got no error on the first line I guess it's solved in the meantime. The second line is exclusively for Emacs as it was the de-facto editor in the good old days, other editors treat is as a simple comment without no meaning. The third line is used by escript if present but it's a simple comment even for Emacs. Extension |
When writing an escript, the file will start with a shebang, e.g.
#!/usr/bin/env escript
.It would we very nice if the shebang didn't cause the plugin to fail completely.
The text was updated successfully, but these errors were encountered: