Author Topic: Showing relative paths in "Build messages"  (Read 3536 times)

Offline pozzugno

  • Multiple posting newcomer
  • *
  • Posts: 39
Showing relative paths in "Build messages"
« on: December 17, 2010, 12:46:08 pm »
My compiler outputs warnings and errors with the full/absolute pathname for each file.
Of course this pathname is shown in "Build messages" frame of C::B.

How can I convert the absolute to the relative pathname against the main project
directory?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Showing relative paths in "Build messages"
« Reply #1 on: December 17, 2010, 01:43:11 pm »
What do you need this feature, for?

Probably to fix this you'll need to modify the code.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline mirai

  • Multiple posting newcomer
  • *
  • Posts: 108
Re: Showing relative paths in "Build messages"
« Reply #2 on: December 17, 2010, 03:54:26 pm »
IMO, full paths are probably uncomfortable because they can be much longer than relative paths and may simply not fit in a window while they do contain redundant information that only brings confusion instead of help.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Showing relative paths in "Build messages"
« Reply #3 on: December 17, 2010, 04:00:07 pm »
You can try to uncheck "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings -> Advanced options... -> Others -> Use full Paths for source files (GDB workaround):".

But it can break debugging in some cases.
« Last Edit: December 17, 2010, 04:01:46 pm by jens »

Offline pozzugno

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: Showing relative paths in "Build messages"
« Reply #4 on: December 17, 2010, 04:53:25 pm »
IMO, full paths are probably uncomfortable because they can be much longer than relative paths and may simply not fit in a window while they do contain redundant information that only brings confusion instead of help.

Yes, that is my reason too :-)

Offline pozzugno

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: Showing relative paths in "Build messages"
« Reply #5 on: December 17, 2010, 04:54:18 pm »
You can try to uncheck "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings -> Advanced options... -> Others -> Use full Paths for source files (GDB workaround):".

Great, that works... :-)

But it can break debugging in some cases.

Oh, I'm not interested in debugging.