-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
TUI stuck showing "Build in progress..." when there is a build failure #17
Comments
When I quit, I see
This crate is intentionally writing to the filesystem. fwiw, Seems like sandboxing might have caused the problem. |
Thanks. I'll have a look at the behaviour when a proc macro gets a sandbox violation and make sure it's not doing anything it shouldn't. Proc macros are sandboxed by virtue of all of rustc being sandboxed - so unlike build scripts, there's no per-crate sandbox config for proc macros. You can however adjust or disable the sandbox for rustc. e.g. [rustc.sandbox]
make_writable = [
"/some/path"
] Or disable it completely [rustc.sandbox]
kind = "Disable" |
This workaround let me get past this issue
Is there a way to use |
Yep, if you give it a path that's not absolute, it should be interpreted as relative to the workspace root |
I suspect this one might be writing to the source in So I guess this task should be just about how to show the user that there was a compilation problem when they are in the "full" ui mode. |
Odd that it got stuck. I just tried writing to a file from a proc macro and running it through
I think it waits for any other compilation that's running in parallel to finish though - so perhaps there was still other stuff building? |
I am guessing that this is now at the step of doing a build of my project, rather than building the deps.My process list
My project typically takes ~30mins to build, and I am building using Bubblewrap sandbox, so that may make it slower.
Some visual indication of what is going on would be helpful.
It is a mono-repo with a lot of members. Perhaps add ability to build each of them separately, and indicate which ones is being built - this would be slower, but at least the user can see progress.The text was updated successfully, but these errors were encountered: