Howdy, been a big fan of geany for a while, starting writing rust for work, and found the rust interop in the compiler window to be flaky at best.
This should both open local files with errors correctly, as well as the definition if users have the source downloaded.
I'm not sure about the portability/safety of L1020, incrementing the pointer, but the php case's reassignment with strstr is pretty similar, so maybe it's ok. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3299
-- Commit Summary --
* Better parsing for rust errors in compiler window
-- File Changes --
M src/msgwindow.c (13)
-- Patch Links --
https://github.com/geany/geany/pull/3299.patch https://github.com/geany/geany/pull/3299.diff
IMO should not add language specific code, can you do it with the language specific regex in the filetype file?
Hmm, I'm not sure how I could. That file seems to be mostly how the editor treats the files that are in the editor. Rather than how the window treats compiler errors.
Python also has language-specific code in [msgwindow.c](https://github.com/geany/geany/blob/master/src/msgwindow.c#L951), as do many of the other supported languages.
https://www.geany.org/manual/current/index.html#error-regular-expression
Closed #3299.
Oh! My bad, I was looking in `filetypes.{c,h}`. New PR here: https://github.com/geany/geany/pull/3300
closing
github-comments@lists.geany.org