[gps-devel] bug report / improvement suggestion: GPS cannot open project file with invalid paths
Silva João
joao.silva at altran.com
Fri Mar 24 11:25:21 CET 2017
Hi Emmanuel,
I didn't know of ~/.gps/log* files. This seems to be the error:
[GPS.KERNEL.PROJECT] 1/450 Entering
GPS.Kernel.Project.Load_Project:gps-kernel-project.adb:517
/home/jsilva/foo/bar/foobar.gpr (16:14:58.895)
[GPS.KERNEL.PROJECT] 2/451 Clearing messages (16:14:58.895)
[GPS.KERNEL.PROJECT] 3/453 Running the 'project_changing' hook
(16:14:58.895)
[GPS.KERNEL.REMOTE] 1/454 Loading servers_config property for file
/home/jsilva/foo/bar/foobar.gpr (16:14:58.895)
[GPS.KERNEL.REMOTE] 2/455 Loading remote property (16:14:58.896)
[BREAKPOINTS] 1/456 No persistent breakpoint to save (16:14:58.896)
[GPS.KERNEL.PROJECT] 4/457 Finished running the 'project_changing'
hook (16:14:58.896)
[GPS.KERNEL.PROJECT] 5/458 Restoring environment var: BUILD=standard
(16:14:58.896)
[PROJECTS.EXCEPTIONS] 1/462 Unexpected exception: raised
SYSTEM.ASSERTIONS.ASSERT_FAILURE : gpr-tree.adb:934
_PROJECTS.EXCEPTIONS_ Call stack traceback locations:
_PROJECTS.EXCEPTIONS_ 0x322f08f 0x2dab278 0x2dac3b1 0x2dad5eb
0x2dac259 0x2dabced 0x2d17939 0x2d25a8f 0x1cbd49b 0x28444c4 0x2845309
0x139ccea 0x2f8063c 0x7fbf42406d7a 0x7fbf42413dbf 0x7fbf4241b0f4
0x7fbf4241be00 0x7fbf43239a21 0x7fbf4323b0c6 0x13a42c7 0x13831b5
0x7fbf40937b13 0x138320f (16:14:58.898)
[GPS.KERNEL.PROJECT] 6/463 Leaving
GPS.Kernel.Project.Load_Project:gps-kernel-project.adb:517 (16:14:58.898)
[WELCOME.EXCEPTIONS] 1/464 Unexpected exception: raised
SYSTEM.ASSERTIONS.ASSERT_FAILURE : gpr-tree.adb:934
_WELCOME.EXCEPTIONS_ Call stack traceback locations:
_WELCOME.EXCEPTIONS_ 0x322f08f 0x2dab278 0x2dac3b1 0x2dad5eb 0x2dac259
0x2dabced 0x2d17939 0x2d25a8f 0x1cbd49b 0x28444c4 0x2845309 0x139ccea
0x2f8063c 0x7fbf42406d7a 0x7fbf42413dbf 0x7fbf4241b0f4 0x7fbf4241be00
0x7fbf43239a21 0x7fbf4323b0c6 0x13a42c7 0x13831b5 0x7fbf40937b13
0x138320f (16:14:58.898)
I'll send you the complete log file.
Thanks.
João M. S. Silva
Senior Consultant/Engineer
Intelligent Systems
Altran Portugal
+351 912 383 489
On 23/03/2017 14:46, Emmanuel Briot wrote:
>> When opening a .gpr file with invalid paths e.g.:
>>
>> project WDM_Stub_App extends "<nonexistent path>" is
>>
>> for Source_Dirs use ("<nonexistent path>");
>>
>> it simple says that it couldn't load the project.
> Silvao,
>
> I think there might be a deeper error here. Just having an invalid directory (or non-existing
> directory) results in a clean error message that points you to the exact line in the .gpr file.
>
> Can you send us the GPS log file ?
> It will be the most recent ~/.gps/log* file
> I would expect to see mention of some unexpected internal error there.
>
> As you say, the code you mention would be way too general and unhelpful for all possible
> errors in projects, so GPS of course tries to do better. Seems like there is something else
> in play here.
>
> regards
> Emmanuel
More information about the gps-devel
mailing list