Sujet : Re: [GNAT Studio] projets GNAT
De : p.p11 (at) *nospam* orange.fr (Blady)
Groupes : fr.comp.lang.adaDate : 14. Oct 2023, 17:40:43
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ugegab$3uikg$2@dont-email.me>
References : 1 2 3
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1
Le 13/10/2023 à 05:17, Thomas a écrit :
Le 11/10/2023 à 08:13, J-P. Rosen a écrit :
Le 11/10/2023 à 00:52, Thomas a écrit :
2)
J'ai demandé qu'il ouvre rapid.gpr, et il édite à la place un projet empty.gpr. Je ne comprend pas comment on est censé l'utiliser.
>
Regarde dans la fenêtre des messages: il y a certainement une erreur.
empty.gpr est un projet par défaut qu'il prend lorsqu'il n'arrive pas à ouvrir le projet demandé.
[2023-10-13 03:59:54] /home/a/Documents/previsions/r286/bin/rapid-lib.gpr:24:06: imported project file "rapid-peer.gpr" not found
...
[2023-10-13 03:59:55] Language server: /home/a/Documents/previsions/r286/bin/empty.gpr is not a regular fileUnable to load project file: /home/a/Documents/previsions/r286/bin/empty.gpr
gnatcoll-projects.adb:7750
Ça a l'air lié au 3).
Si ça n'est pas une "erreur circulaire", par où en sortir ?
Oui car il y a une erreur qui est là :
> /home/a/Documents/previsions/r286/bin/rapid-lib.gpr:24:06: imported
> project file "rapid-peer.gpr" not found
Le projet rapid-peer.gpr n'est pas trouvé.
Ajoute son chemin dans la variable GPR_PROJECT_PATH et relance tout.
Doc :
https://docs.adacore.com/live/wave/gps/html/gps_ug/projects.html#project-files-and-gnat-toolsGPR_PROJECT_PATH
If set, an environment variable containing a colon-separated (semicolon under Windows) list of directories to be searched for project files.
HTH, Pascal.