-
Notifications
You must be signed in to change notification settings - Fork 141
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
lfec keeps non-files in file list args #109
Comments
I wonder if we should really silently remove files like this. It might cause confusion as errors will not show up. |
Hrm, I'm not sure what you mean ... It's possible that people could have .erl, .ex, or .jxa files in one project. In general I'm pretty against removing files from someone's project ... Side note: this patch was provided when I noticed that |
I think one reason you were getting that problem is that you were mixing flags and files. The lfe and lfec commands follow bash/sh conventions here rather that erl conventions. This means that all the flags and their arguments must come first, and as soon it detects an arg which is not a flag then it treats everything after that as files. So if you write That is why I was wondering whether we need to remove files from the list of files to compile. I didn't mean actually delete the actual files, not even I am that strict. :-) Lfe behaves in the same way but arguments after the flags are the script name and then arguments. |
Oh, right. I discovered the ordering after that. Thanks :-) On Sun, Jan 25, 2015 at 10:56 AM, Robert Virding notifications@github.com
|
When running
lfec
with the output dir argument, I got these odd errors:When I debugged this in
lfec
, it turned out that when the file list is provided, the-o
and<outputdir>
are included in it.I was going to mess with the pattern matching in the
parse-opts
function, but then it occurred to me that even with that, someone (or more likely someone's script) might still pass a file that didn't exist. As such, it seemed that a general filter might be a better approach (2 bids, one stone).I'll submit the PR for this shortly.
The text was updated successfully, but these errors were encountered: