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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: how do do with IDE ? Do they really suck or do I do not know how to handle GPS ? Date: Thu, 15 Mar 2018 18:37:58 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <37f38cbf-dd15-465c-9b89-7a53d9094971@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 15 Mar 2018 17:37:58 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="bb68cd52cf137fe52ffa4dfd629ce95e"; logging-data="16417"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HnmvOae47wEU9F2ecRAxcTAshwGFF6cA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: <37f38cbf-dd15-465c-9b89-7a53d9094971@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:RLEMvpB4mLzmmLewTdHe68Fqtds= Xref: reader02.eternal-september.org comp.lang.ada:51001 Date: 2018-03-15T18:37:58+01:00 List-Id: On 03/14/2018 11:53 PM, Mehdi Saada wrote: > > Is it me, or is it stupidly hard to have GPS find the original definition of a type ? Said otherwise: why doesn't "goto file spec<->body seem to work on constants ? What I want to trace back a constant declaration ? "Goto file spec<->body" just goes to the file containing the other part of the unit in the current file. It's not for going to a specific declaration. For that, put the cursor in the identifier of interest, right click, and click on "Goto declaration of X" (sometimes followed by "(best guess)"). This will usually take you to the declaration of the identifier. If you want to know the type of a constant object, that will be all you need. If you want to know the declaration of the type, you'll have to do that again on the type name. -- Jeff Carter "Beyond 100,000 lines of code you should probably be coding in Ada." P. J. Plauger 26