Skip to content
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

--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 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 added a commit that referenced this issue Sep 4, 2015
@snoyberg
Copy link
Contributor

@snoyberg snoyberg commented Sep 4, 2015

Mind giving this a shot on latest master?

@snoyberg
Copy link
Contributor

@snoyberg snoyberg commented Sep 6, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.