Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants