From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a9cdc231f62826f1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Two miscellaneous questions about GPS : Ada indentation and then SPARK integration Date: Wed, 02 Jun 2010 10:55:04 +0200 Organization: Ada At Home Message-ID: References: NNTP-Posting-Host: FWfoAwrKC5rz12vcTu3tlw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:12191 Date: 2010-06-02T10:55:04+02:00 List-Id: Le Tue, 01 Jun 2010 09:20:45 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > The second question, is related to SPARK integration (I came back to G= PS = > for SPARK, which is more handy than from the command line) : when I do= = > SPARK -> POGS, a summary file is opened in GPS (OK). If then I do SPAR= K = > -> Examine File, then SPARK complains it cannot find my index file, = > although the configuration specifies the good file name. It only occur= s = > after an invokation of POGS. If I close GPS then re-open it, the Exami= ne = > File command works as expected (as it does all the time, if no POGS = > command was executed before). About this one, I've found a track : the current directory is changed wh= en = POGS is executed. So if the index file is not specified using an absolut= e = path, then the Examine File command do not find it anymore. Probably there is a way to fix it, and this suggest a workaround : alway= s = use an absolute path for SPARK index file (may not be nice if one want a= = GPR file with relative paths only, while this can be acceptable) -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.