[konsole] [Bug 502077] New: File parsing does not correctly opens files from rustc output

Hugues Morisset bugzilla_noreply at kde.org
Thu Mar 27 15:57:19 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=502077

            Bug ID: 502077
           Summary: File parsing does not correctly opens files from rustc
                    output
    Classification: Applications
           Product: konsole
           Version: unspecified
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: morisset.hugues at gmail.com
  Target Milestone: ---

SUMMARY

On opening file that fails to compile with rustc using the mouse, konsole tries
to opens a non existing file when :LINE:COLUMN is specified.

STEPS TO REPRODUCE
1. touch /tmp/aa
2. echo /tmp/aa:10:2
3. Press Alt + click on the output

OBSERVED RESULT

> The file or folder /tmp/aa:10 does not exist.

EXPECTED RESULT

File opening at the right line and column

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION

[The
code](https://github.com/KDE/konsole/blob/master/src/filterHotSpots/FileFilterHotspot.cpp#L80)
expect the line to end with ':' (3 ':' in total)

rustc output looks like this:

```
error[E0277]: the trait bound `Untyped: CompatibleType<AdditionalValueList,
Pg>` is not satisfied
   --> src/additional_values.rs:35:32
    |
35  |         .load::<AdditionalValueList>(&mut conn)
    |          ----                        ^^^^^^^^^ the trait
`CompatibleType<AdditionalValueList, Pg>` is not implemented for `Untyped`
    |          |
    |          required by a bound introduced by this call
    |
    = help: the trait `CompatibleType<U, DB>` is implemented for `Untyped`
```

maybe the regexp could be modified to accept both a ':' and '\n' ?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list