GNOME Bugzilla – Bug 776587
Build error opens to wrong file
Last modified: 2017-01-01 00:16:18 UTC
Created attachment 342587 [details] screenshot of bug I have a build error in lib/ephy-hosts-manager.h. Whoops! When I click on the error in Builder's sidebar, it opens the nonexistent file lib/widgets/ephy-hosts-manager.h. Huh?
It looks like we need some regex tweaks. It seems to be happening as follows: 1: ephy-hosts-manager.h 2: /home/christian/Projects/epiphany/lib/widgets 3: lib/widgets/ephy-hosts-manager.h 4: /home/christian/Projects/epiphany/lib/widgets/ephy-hosts-manager.h [1] Filename extracted from GCC error message [2] Current directory from "Entering directory" via autotools [3] Join [2] and [3] [4] Prefix working directory to [3]
Created attachment 342676 [details] [review] gcc: allow path separators when parsing diagnostic filename Previously, we were only getting the basename portion of the filename. We need the relative path (so therefore path separators) so we can resolve include files outside the current working directory.
Thanks for reporting! Attachment 342676 [details] pushed as 41d5da8 - gcc: allow path separators when parsing diagnostic filename