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
CLI: coffee --watch fails on file that does not exist #985
Comments
So, what would the best precise solution be? Ignore files whose names start with |
Looking more closely, I see that command.coffee throws an error whenever a nonexistent file is encountered; I believe this line is left over from way back before support for directories was added. The behavior should be to throw an error only if the nonexistent file was given directly as an argument to
to
That way, you'd still get an error if you ran |
That sounds perfect to me. |
Thanks for figuring this one out, Trevor. I've made the requested change at SHA: 83d424f. |
This issue appears in coffeescript 1.8.0 too.
Strange thing, that this is also takes into account non coffee files. like
Thanks |
Can we reopen this bug? It has been regressed recently. I've reproduced this in coffeescript 1.9.3 and 1.10.0, and @Michaelleachim saw it in 1.8.0. It's a very annoying bug for emacs developers, because operations within emacs which create temporary files and then delete them (like using magit to write a git commit message) crashes the coffeescript process. |
This has been annoying me as well. Is there a filter I can add to my watch dir command?
|
I can’t seem to reproduce this. I tried running
If someone can post steps to reproduce in current CoffeeScript, I’ll reopen. |
When using
coffee --watch
I have non-existent files in the directory (Emacs creates files like.#filename.coffee
). It would be better to simply ignore these. Sample traceback:The text was updated successfully, but these errors were encountered: