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

Watch examples folder #33

Closed
LukasKalbertodt opened this issue Jan 30, 2016 · 4 comments
Closed

Watch examples folder #33

LukasKalbertodt opened this issue Jan 30, 2016 · 4 comments

Comments

@LukasKalbertodt
Copy link
Contributor

Currently changes in the examples folder are ignored. This is probably not intended.

@passcod
Copy link
Member

passcod commented Jan 30, 2016

This is indeed an oversight.

passcod added a commit that referenced this issue Jan 31, 2016
Refactor into more idiomatic and cleaner code

Fix #2
Fix #33
Do most of the work towards #25
@fosskers
Copy link

Sorry to dig up such an old issue. Currently, cargo watch seems to detect a change in examples/ (its output flashes in the terminal) and yet compilation errors from example code doesn't actually display. rust-analyzer seems to detect the error though, and I see red lines in my editor, at least.

Any idea what might be happening here?

@passcod
Copy link
Member

passcod commented Dec 15, 2020

Sure, cargo watch just runs cargo check by default and that doesn't compile examples (or tests) by default.

@fosskers
Copy link

Thanks! For anyone wandering in from the FuTuRe, here's what got it working for me:

cargo watch -c -q --exec="check --examples"

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

No branches or pull requests

3 participants