Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

--file-watch triggers rebuild when I open a file with my editor #912

Closed
ezyang opened this issue Sep 3, 2015 · 2 comments
Closed

--file-watch triggers rebuild when I open a file with my editor #912

ezyang opened this issue Sep 3, 2015 · 2 comments

Comments

@ezyang
Copy link

ezyang commented Sep 3, 2015

Steps to reproduce:

  1. stack build --file-watch some project; wait till it quiesces.
  2. Run vim -u /dev/null on a file in the project

Expected result: Stack does not rebuild.

Actual result: Stack rebuilds.

More observations: vim -n -u /dev/null does not cause a rebuild, so Vim's swapfile support seems to be related? However, when I looked at the inotify traces I didn't see anything too different.

Since inotify is probably related, here's the kernel version:

[ezyang@hs01 ghc-quick3]$ uname -a
Linux hs01.scs.stanford.edu 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 GNU/Linux
@snoyberg
Copy link
Contributor

snoyberg commented Sep 4, 2015

Mind giving this a shot on latest master?

@snoyberg
Copy link
Contributor

snoyberg commented Sep 6, 2015

I'm going to close this as fixed, please let me know if you still see a problem.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants