Build panel doesn't open files correctly
With the Rustc flag "--error-format=short" the error output looks like this:
src/main.rs:53:5: error: expected one of ".", ";", "?", "}", or an operator, found "let"
If I click on a issue, Builder opens the wrong path (empty file): ~/Dokumente/Projekte/Social/_build/src/main.rs
So I added the "--remap-path-prefix =../" Rustc flag. The error output looks like this now:
../src/main.rs:53:5: error: expected one of ".", ";", "?", "}", or an operator, found "let"
Now Builder opens this path ~/Dokumente/Projekte/Social/src/main.rs
. The path is correct now, but Builder just should open src/main.rs
.
It's a bit annoying to have every file opened twice. Also the RLS integration only works for src/main.rs
and not for ~/Dokumente/Projekte/Social/src/main.rs
.
How to reproduce:
- Clone "https://gitlab.gnome.org/BrainBlasted/Social"
- Add
"RUSTFLAGS" : "--remap-path-prefix=../ --error-format=short",
to the flatpak manifest (build-options) - Do something wrong (remove ";" for example)
- Build the project
- Click on the error entry in the build panel
Result:
- Builder opens
~/Dokumente/Projekte/Social/src/main.rs
instead ofsrc/main.rs
- RLS integration doesn't work for the wrong path
Version: 3.32.0-65-gbed51b10 flatpak-nightly