[Bug 2048569] Re: rightclick->open link doesn't work on file://full/path/filename.cpp:linenumber links

2024-01-09 Thread Egmont Koblinger
What we _could_ perhaps do (because detecting a URI in a text flow is undefined territory, with already quite a few quirks in place, such as stripping off the trailing dot) is to strip off the trailing ":linenumber". That is, the trailing ":" if it's followed by numbers only. That way you could

[Bug 2048569] Re: rightclick->open link doesn't work on file://full/path/filename.cpp:linenumber links

2024-01-09 Thread Egmont Koblinger
The problem is: according to the URI specification, there is no way to denote the line number. In fact, the URI "file:///full/path/to/filename.cpp:linenumber" refers to a file whose name is literally "filename.cpp:linenumber". Correspondingly, the entire stack that handles the opening of a URI

[Bug 2048569] Re: rightclick->open link doesn't work on file://full/path/filename.cpp:linenumber links

2024-01-08 Thread Imre PĂ©ntek
the issue that qt creator can't handle file:///full/path/to/filename.cpp:linenumber on commandline (but supposed to) is known: https://bugreports.qt.io/browse/QTCREATORBUG-30143 however qt creator handles /full/path/to/filename.cpp:linenumber on commandline that's how I made a wrapper restoring