-
Notifications
You must be signed in to change notification settings - Fork 81
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
Better error message on permission errors #228
Comments
That's fixed upstream (in watchexec library v2+) and will eventually make its way to cargo watch |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hey @passcod I'm interested in contributing the upgrade for this -- after poking around I found a few things:
It looks like the PR might be quite large in trying to upgrade these libraries and effectively make If I could put a PR together would you be open to such large changes? I'd also probably try and pull in |
There's already a branch to upgrade to watchexec 2.x. Ultimately the main issue is not cargo watch, it's that I don't consider watchexec 2 to be stable or performant enough yet for cargo watch. (also miette instead of anyhow, tracing subscriber instead of env logger) That said, if you want to help, then in watchexec what needs to happen is to fix the implementation of the ignore file loader/discovery so it correctly respects ignore files itself, and doesn't exhibit the behaviour of spinning for tens of seconds when started in a large project. Alternatively there's a massive PR in watchexec where I'm refactoring a bunch of things with some breaking changes. Have a look there at the checklist to see if some chunk of it interests you. Finally, there's a third area which is programmable filters. That's much more self contained: the upstream project changed a bunch since I prototyped it, so it needs adapting and polishing. Once those first two areas are stabilised and merged, and possibly the last one released as well, then cargo watch can be upgraded. That step should take a day or so, not a big deal once all the actual work is done. |
Ah thanks for noting, this, was not aware of concern about
I see a bunch of issues under ignore loading, but the main one is this one, right? I'll try and start there -- looks like
I'm assuming you're referring to this PR. Assuming I'm right, I think I could tackle "Adapt the CLI" but I'm not 100% sure what it means -- I assume it means upgrading We can continue the discussion in that PR since it's not related to |
Yep, that's right :) |
I get the following output:
there's indeed a folder I can't access:
I assume this error is from cargo-watch (but possibly in the watchexec codebase), I think this should either not be fatal, or the path should be in the error message.
The text was updated successfully, but these errors were encountered: