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,475d5d08fbf558a2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Addr2Line2Locations for GPS Date: Thu, 03 Feb 2011 14:40:04 +0100 Organization: Ada @ Home Message-ID: References: <6307067e-1a6c-43a6-9ecf-80e6566ef940@glegroupsg2000goo.googlegroups.com> NNTP-Posting-Host: RMICJIZB7ejkZI5LeT/DOA.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 User-Agent: Opera Mail/11.01 (Win32) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:17818 Date: 2011-02-03T14:40:04+01:00 List-Id: Le Thu, 03 Feb 2011 10:19:00 +0100, leandrohbatista = a =C3=A9crit: > Salut Yannick! Thanks for your answer! > > You are right, this is not a problem with your plugin! I tried to use = = > the method GPS.Locations.Parse and I got the same error. Look at this = = > topic: > https://groups.google.com/d/topic/comp.lang.ada/gs9u1TKt_Qo/discussion= > > Now I solved this problem using GPS.Locations.Add(). I had done few = > tests and it seems to work fine. You're welcome, By the way I was silly with the previous reply, as get confused with = another tool I also talked about here. The one of this topic does not re= ly = on ASIS, obviously. From my previous experiences with Python scripting in GPS, I would say = = defensive programing is the best you can do most of time. About your other post. s-valint.adb: https://www2.adacore.com/gap-static/GNAT_Book/html/rts/s-valint__adb.htm= There is only a single explicit raise statement in that source, and it = belongs to the function named Scan_Integer. For the location you used =E2=80=9CC:\Test.adb:5:1: Message=E2=80=9D. Po= ssibly the parser = is confused with the =E2=80=9CC:\...=E2=80=9D which is expected to be a = separator for = location parameters; between file name and line number and then after = between line number and column number. I remember a tool from Jean-Pierr= e = Rosen, AdaControl, had similar issues with its integration into GPS usin= g = Python and the GPS modules. You may have a look at AdaControl's source, in the Python files, you may= = find some worthy materials there. http://www.adalog.fr/adacontrol2.htm See =E2=80=9CSource Distribution=E2=80=9D at the bottom of the page, unp= ack, then look at = the relevant Python file. I will look later at my own source, while this would be easier with some= = example which make the bug occurs with precisely the incriminated tool = (but don't bother if you can't send some, I will look at it any way). -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]