Results 1 to 5 of 5

Thread: [Help] ADA-GPS aggregate project setup

  1. #1
    Join Date
    Sep 2014
    Beans
    2

    Unhappy [Help] ADA-GPS aggregate project setup

    I am trying to create an aggregate project definition to include all the test project that I have already created while learning ADA.but when I start GPS with the Learning.ADA.gpr project, I get the message:

    Code:
    Welcome to GPS 6.1.2016 (20160515) hosted on x86_64-linux-gnu)
    the GNAT Programming Studio
    (c) 2001-2015 AdaCore
    
    [2020-06-13 19:36:35] /home/rene/Programming/Projects/Ada/learning_ada.gpr:2:28: warning: file "tests/test01.grp" not found
    [2020-06-13 19:36:35] there are no non-aggregate projects[2020-06-13 19:36:35] /home/rene/Programming/Projects/Ada/learning_ada.gpr:2:28: warning: file "tests/test01.grp" not found
    My aggregate specification is:

    Code:
    aggregate project learning_ada is
        for Project_Files use ("tests/test01.grp", "tests/test02.grp") ;
    end Learning_Ada;
    My directory structure is as follow:

    Code:
      /Ada
        |----> /tests
        |        |----> /src
        |        |        |----> test01.adb
        |        |        |----> test02.adb
        |        |
        |        |----> /obj
        |        |----> /bin
        |        |
        |        |----->test01.gpr
        |        |----->test02.gpr
        |
        |----> learning_ada.gpr
    Last edited by Lelorrain; June 14th, 2020 at 12:49 AM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: [Help] ADA-GPS aggregate project setup

    This is the first post that I've ever seen here about ada. I'd suggest that other forums would likely be more fruitful in getting help. When ada was very young, my employer at the time did encourage all the programmers in my group to learn it - we were going GN&C coding for spacecraft. A few of the team did, but not me.

    warning: file "tests/test01.grp" not found
    tells me that the CWD isn't Ada. BTW, be very careful using leading / characters. I suspect it is a problem with understanding the difference between a relative path and an absolute path. By definition, all paths that begin with 1 or more / characters are absolute while any path that does not is relative to the CWD.

    The output from tree -F is usually the format for showing directory strictures and files. If you only want to show directories, use tree -dF. This places trailing / characters AFTER directories, not before to address the relative vs absolute path issue.

  3. #3
    Join Date
    Sep 2014
    Beans
    2

    Re: [Help] ADA-GPS aggregate project setup

    The wpd for GPS is "~/Programming/Ada", that's the one shown on the Tree graph.

  4. #4
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: [Help] ADA-GPS aggregate project setup

    Your tree structure mentions .gpr files. Your use statement refers to .grp files. gpr != grp.

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: [Help] ADA-GPS aggregate project setup

    wpd probably should be pwd too? With computers, details matter. With programming, details have to be perfect.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •