Skip to content

Exclude files from --file-watch and more debugging info #703

Closed

Description

@agrafix

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, ...

Activity

  1. snoyberg commented on Aug 5, 2015

    @snoyberg
    Contributor

    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?

  2. added this to the milestone on Aug 5, 2015
  3. agrafix commented on Aug 6, 2015

    @agrafix
    ContributorAuthor

    Sure, I'll look into this!

  4. snoyberg commented on Sep 6, 2015

    @snoyberg
    Contributor

    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.

  5. agrafix commented on Sep 8, 2015

    @agrafix
    ContributorAuthor

    Alright, great, thank you! I'm very busy this week, but I'll provide feedback next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions