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: 103376,9bb65421778ea393 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.66.84.34 with SMTP id v2mr5112996pay.38.1352481002409; Fri, 09 Nov 2012 09:10:02 -0800 (PST) Path: s9ni1799pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.bbs-scene.org!eternal-september.org!feeder.eternal-september.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: Problem getting Adactl to run. Date: Fri, 09 Nov 2012 18:08:10 +0100 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: aWaWeUaBdaj2Zzc04J1v5A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.02 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-11-09T18:08:10+01:00 List-Id: Le Fri, 09 Nov 2012 15:08:20 +0100, Peter C. Chapin = a =C3=A9crit: > On 11/08/2012 04:29 PM, J-P. Rosen wrote: > >>> Traceback (most recent call last): >>> File "", line 1, in >>> File "/home/peter/local/gnat/share/gps/plug-ins/adactl.py", line = = >>> 453, >>> in run >>> parse (result) >>> File "/home/peter/local/gnat/share/gps/plug-ins/adactl.py", line = 87, >>> in parse >>> list.sort(sloc_cmp) >>> File "/home/peter/local/gnat/share/gps/plug-ins/adactl.py", line = 84, >>> in sloc_cmp >>> return cmp (int(ls[2+Offset]), int(rs[2+Offset])) >>> ValueError: invalid literal for int() with base 10: 'Error' >>> >> This happens in the routine that parses line numbers for displaying >> error messages. It seems that sometimes, GPS does not retrieve the >> output of the tool correctly, sometimes introducing random end of lin= es. >> That may well bomb the the parser... >> > > Is there no solution? This is all it ever does for me. It appears to = > work fine from the command line but that's not nearly as nice as havin= g = > the GPS integration. > > Peter Seems not, or not an easy one. I get the same issue when I was using GPS= , = tried to fix it for AdaControl too, but seems random, as Jean=E2=80=91Pi= erre said. = Surprising, as the Python's `popen` command works fine otherwise; so = either GPS does not use it and provide its own buggy similar = functionality, or else, that's the Python library? Don't know. Can't promise, but may have a look at it a future day (will tell here if= = ever). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity