[AWS] "with AWS;" GPS crash

Ivan Levashew I.Levashew at bluebottle.com
Mon Sep 22 06:10:17 CEST 2008


Tillmann Eid wrote:

>Hello,
>
> now I managed to setup, build and install AWS ..but..
> when I try to make my own project by including
> "with AWS;" I got the error message from GPS...
> --------------------------------------
>
> [2008-08-12 19:58:05] The root project must have
> an object directory set, or C/C++ browsing is
> disabled

This message is here just to ambiguate you. It doesn't
related to the actual problem directly.

> Can anyone help me with this?
I have traced down this not quite bug yesterday.

> Why does my project file not work with GPS ?
Because your GPS version is less than 4.3.0
GNAT GPL 2008 is shipped with GPS 4.2.1

See the note in AWS-gpl-2.5.0w/readme.txt:

To edit a project using AWS you need at least GPS 4.3.0
because of a restriction in previous version on variable
reference for external default value.

This is easy to fix. Having installed AWS, edit the
GNAT/2008/lib/gnat/aws/aws_shared.gpr

Replace

   Library_Type : Library_Kind :=
      external ("LIBRARY_TYPE", AWS_Config.Default_Library_Type);

with

   Library_Type : Library_Kind :=  AWS_Config.Default_Library_Type;

Having done that you can freely edit your project in
GPS with all the ponts enabled: webxref, ada2wsdl, ...

Note that GPS preserves some info about unloaded
projects. You might need to restart GPS or
"Project > Reload Project" in order to changes take
effect.

> Why does it crash with gprbuild?

the same reason, maybe

Have a nice day.

P. S. Let's beep the search services:

The root project must have
an object directory set, or C/C++ browsing is
disabled

-- 
If you want to get to the top, you have to start at the bottom






More information about the AWS mailing list