Author Topic: remove file path in errors/warning  (Read 2577 times)

Offline Freem

  • Almost regular
  • **
  • Posts: 219
remove file path in errors/warning
« on: April 12, 2012, 03:39:27 pm »
I do not think there is such feature, but I am asking myself if there is a way to parse build messages to remove "useless" path.
By example, files the project own could replace the "/home/devel/foo_prj/include/" with simple "include/".
I know and understand that it should need to be done for each compiler separately, because it is something about the parsing of their output, but I would like to know how such kind of thing could be done?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: remove file path in errors/warning
« Reply #1 on: April 12, 2012, 04:46:37 pm »
This might work, if you uncheck "Settings -> Compiler... -> [your_compiler] -> Other Settings -> Advanced options... -> Others -> Use full paths for sources files (GDB workaround)".
In some rare cases it might break debugging, but in most cases it works without this option as far as I know.

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: remove file path in errors/warning
« Reply #2 on: April 12, 2012, 04:55:10 pm »
Thanks a lot. It will probably help me a lot :)