-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
warning/errors reporting breaks at nightly #4998
Comments
Yes this was caused by #4788 and currently (if we don't revert) IDEs will need to update to call |
I am expecting that would be rather complex for at least |
@davemilter there was a feature request on Cargo to not recompile artifacts when the cwd changed or when the project was renamed, and fixing that also necessitated #4788. I think rust-lang/rust#47939 would help with this issue as well |
Flycheck reporting in. #4788 surprised us as well, but in our case we are using the JSON output, and there, until #4788, we had absolute file paths. Is the change to relative paths in JSON output intended? I've seen #4938, and while we can use that, I'd rather have absolute paths than call |
@fmdkdd another good point! Mind filing an issue against rustc for that? (I think those paths in error messages come from rustc) |
I was mistaken: before, #4788, I'd still like absolute paths, but I guess that with rust-lang/rust#47939, we could at least restore the previous behavior right? |
@fmdkdd there's now |
@matklad I've seen #4938. I was just hoping for a solution that would not require us to call |
@matklad Since rust-lang/rust#47839 has been closed, we have resorted to using |
As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it. I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect? The team would be especially grateful if such a comment included details such as:
Thank you for contributing! If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable! |
As I didn't see any updates in 30 days I'm going to close this. Please see the previous comment for more information! |
With nightly cargo if I run
cargo cmd
inside of crate that part of workspace,it reports errors like this:
instead of
See the difference -
foo/src/lib.rs
vssrc/lib.rs
.This breaks many editor/IDE I suppose. In particular it breaks functionality
press on error/warning in compilation log and jump to suitable location in file.
For example with intellij-rust/intellij-rust jump from error/warning doesn't work with nightly: https://users.rust-lang.org/t/intellij-rust-and-compile-errors/15103
It breaks cargo.el project kwrooijen/cargo.el#51 (emacs wrapper around cargo commands),
also it breaks standard emacs compilation-mode, because of
compilation-mode
doesn't handle situation when cwd of compile comand is not equal to root of relative path.I suppose this is related to #4788
Tested with
Also I attach simple workspace project to make problem clear.
1.zip
The text was updated successfully, but these errors were encountered: