-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
rustlings watch
fails silently
#472
Comments
The problem lies apparently in the inotify watch limit. All of them were occupied (by my languageclient). So this is not a bug of rustlings. Only the lack of an error message is |
imo I think the auto refresh should be replaced with a manual refresh (press enter refreshes by default for example), and that for 3 reasons: |
Looks like this issue may have a resolution soon. |
@seeplusplus that issue is just about the error message, there will still be an error either way. The issue here is that |
By the way, if somebody want's to fix this issue. It is probably very easy. The code just has to be changed to something like: if matches.subcommand_matches("watch").is_some() {
if let Err(e) = watch(&exercises, verbose) {
println!("Error: Could not watch your progess. Error message was {:?}", e);
println!("Most likely you run out of disk space or you 'inotify limit' is reached");
std::process::exit(1);
} I just don't have time to test this properly... |
True. I guess I mean it's solved inasmuch as it responds with a "more correct" error. I'll try my hand at adding @jounathaen's code and testing it to see if we can resolve this issue. |
For the sake of correctness, what kind of testing would you recommend? I'm not super familiar with testing in Rust (is there some integration test that could be written to test this?). I did test that this gives us the behavior that we want (I dropped the max_user_watches to 256 on my machine and ran "rustlings watch"). |
That's exactly what I imagined as test. |
Hi,
I can't get rustlings to work correctly. If I run
rustlings watch
, the program fails silently.Apparently the problem is, that
rustlings/src/main.rs
Line 174 in 523d18b
is_ok()
inrustlings/src/main.rs
Line 122 in 523d18b
which then fails silently.
The error of the failing
watcher.watch(/*...*/)
isIo(Os { code: 28, kind: Other, message: "No space left on device" })'
which is most likely a bug in notify as there are hundreds of GB free on the disk. However, I think the error message should at least be propagated and printed to the command line.Cheers!
The text was updated successfully, but these errors were encountered: