-
Notifications
You must be signed in to change notification settings - Fork 111
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
Fix #470 #471
Fix #470 #471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for the PR!
The docstring of entr
doesn't claim to support directories, though obviously the code has been prepared to do so. It looks like none of the tests check this case, though.
I'm good with this change, though a directory test would make it even better. CC @mlhetland, since he's kind of the de facto expert on entr
.
src/Revise.jl
Outdated
if is_file_dir | ||
ret = watch_folder(file, 1)[2] | ||
else | ||
ret = watch_File(file, 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ret = watch_File(file, 1) | |
ret = watch_file(file, 1) |
Heh, more a fan than an expert, but thanks :-) Seems like a good idea to me. (The original |
I updated the docstrings, and I'm happy to add a test too. Is there any way to run a subset of tests in the suite, rather than of all of them (as in Pkg.test)? |
Sorry for the delay, I have been very distracted lately. Yes, you can run a subset of tests:
|
Just to tidy things up and let everyone interested know:
|
Line 822 of Revise.jl calls
FileWatching.watch_folder
. It then callsret.changed
on the result. ButFileWatching.watch_folder
returns a pair:As the documentation says: