Skip to content

Conversation

@Enders
Copy link
Contributor

@Enders Enders commented Dec 14, 2013

The previous logic didn't allow for a simple fix (patterns were converted all at once and then everything was concatened, thus squashing all the empty lists == missing files).

In this PR, I am proposing to solve the issue #1923 by going through the list of patterns and collect all the patterns that returned no files. If there was at least one, then the process_command for :compile will return an error with a similar error message as before, except that now it's a bit more descriptive (only the missing patterns are mentioned).

It wouldn't be very difficult to change the code to proceed with the compilation despite the missing files and just issue a warning, but it's probably more sane to just fail right away.

josevalim pushed a commit that referenced this pull request Dec 31, 2013
Elixirc: fail when one of the provided file pattern is missing
@josevalim josevalim merged commit 0aee080 into elixir-lang:master Dec 31, 2013
@josevalim
Copy link
Member

Merged, thank you! ❤️ 💚 💙 💛 💜

@Enders Enders deleted the elixirc_patterns branch January 1, 2014 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants