-
-
Notifications
You must be signed in to change notification settings - Fork 19
replpad refuses to re-read files once they're saved #7
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
Comments
I'm about to close this since no one else ever reported this issue or added comments to this one. Is this working better for you now? |
Nope :). Brand new machine -- same issue.
I'll try to look at it one day. |
really friggin weird is all I can say |
FWIW I'm seeing exactly the same behavior. The first save of any monitored file is detected, but no further changes are. For me it seems to be related to vim. I can replpad v0.11.8 |
Interesting find, does it work with other editors? I installed mine via Overall seems to be a vim issue though since somehow it doesn't trigger the file change event that replpad depends on. |
Doesn't matter what editor - vim, sublime, atom, emacs -- all the same result. |
I don't imagine vim is particularly unusual in how it writes files, but I From a quick glance at your dependencies I'm not sure how you're doing the Cheers, Ben
|
The watcher stuff is here. I'm open to have that swapped out with a dependency however. The key is though that it needs to be able to pick up newly created files as well and not fire too often, i.e. twice per save (which some of them do). |
Watchr seems to behave well in those regards (I use it to trigger cache I'll see if I can find some time to swap it in, and if it fixes my problem
|
Would love a PR @benrhughes. Feel free to reach out if you have any questions and/or even submit a semi working PR that we can improve on. |
OK, after a bit of investigation, this seems to be a problem with fs.watch, not your watch code specifically. This bare-bones code appears to have the same issue:
It appears to still be a problem in 0.11.xx too. I did some testing and it seems that watchr has the same issue (presumably because it uses fs.watch) - I didn't notice before because I'm using it to detect new files, not updates. |
According to nodejs/node-v0.x-archive#3172, this is a vim issue (or at least partially a vim issue). Setting the vim option |
Thanks for digging into this. So seems like this can't be fixed in replpad then? Also peculiar why I don't have that problem (and I assume it works for lots of others since I haven't heard about this bug from many). |
In sublime if you set: |
Yeah including this in the docs would be nice indeed. |
I tried setting all the various |
I just came across replpad today, installed it, and was experiencing the same issue that @toddself originally reported: replpad would pipe over whatever it found the very first time I saved a file (actually it would pipe it over twice), but would not react to anything after that. Adding |
OS: Mac 10.8.4
iTerm2
replpad v0.11.1
node v0.10.18 | Calvin | 8 cpus | darwin platform | v8 v3.14.5.9 | uv v0.10.15
Editors tried: Sublime Text 3 and vim
Issue:
Launching
replpad .
enumerates the.js
files in the directory. Opening and saving one of them causes replpad to correctly re-read the file.Making more changes and saving it does not ever cause replpad to re-save.
The text was updated successfully, but these errors were encountered: