-
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
Command line option to print full file paths #5450
Comments
This issue is similar to #5895 and I wonder: by "full file path" do you mean an absolute path, or simply a more consistent path, such as consistently a path relative to the root of the workspace? |
Absolute path would be best as it would work in all cases regardless of how your structure looks like. |
@dwijnand Any news about the implementation of this option? Thank :) |
I took a look at this issue today and got it working with full paths. The diff looks like this.
Now in order to have this fully working either:
I'm not sure what the best option here would be. |
Bump. It would be great to get this feature, I also rely on absolute paths to jump to the error in my environment. |
Until this gets in cargo, my workaround is something like
|
This would be really nice to have. Currently it is very hard to navigate between errors in the Android Studio. It just doesn't highlight any file paths in the errors because they are all relative. |
I found a workaround which is to put the workspace root in a sibling directory of the package, instead of a parent directory. For example:
Now, |
Sometimes it would be good to have full paths printed for filenames when building with Cargo. A typical example would be when building a large tree of code from an editor/IDE and when file paths only gets printed as
src/filename.rs
it makes it hard for the IDE to find it.Cargo currently prints full names under certain conditions but there is no way to makes sure that always happen. Adding a command like option like
--full-filename-paths
or something better would allow editors/IDEs to easier navigate to compile errors/warnings etc.See also
The text was updated successfully, but these errors were encountered: