You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exclude files from --file-watch and more debugging info #703
I'm currently moving a project to stack, and it's been working out great so far! I like the --file-watch flag, but it seems to rebuild way to often. I think this is due to my emacs configuration which creates temporary files in the source tree. Would it be possible to read .hgignore or .gitignore files to exclude files from being watched? For debugging purposes, it would also be very useful if stack build --file-watch gave some information why it thinks a rebuild is useful, eg:
Rebuilding due to changes in files X.hs, Z.hs, ...
All of the filewatch code is in its own module at Stack.FileWatch, and should be relatively easy to modify without diving into the rest of the code. In particular, indicating which files changed should be a trivial change. Interested in trying your hand at a PR for this?
I've pushed a commit to master that significantly improves this experience. I'm going to close this issue, please ping if master doesn't do what you're looking for.
Activity
snoyberg commentedon Aug 5, 2015
All of the filewatch code is in its own module at
Stack.FileWatch, and should be relatively easy to modify without diving into the rest of the code. In particular, indicating which files changed should be a trivial change. Interested in trying your hand at a PR for this?agrafix commentedon Aug 6, 2015
Sure, I'll look into this!
snoyberg commentedon Sep 6, 2015
I've pushed a commit to master that significantly improves this experience. I'm going to close this issue, please ping if master doesn't do what you're looking for.
agrafix commentedon Sep 8, 2015
Alright, great, thank you! I'm very busy this week, but I'll provide feedback next week.