comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Problem getting Adactl to run.
Date: Fri, 09 Nov 2012 18:08:10 +0100
Date: 2012-11-09T18:08:10+01:00	[thread overview]
Message-ID: <op.wnim7wouule2fv@cardamome> (raw)
In-Reply-To: xL2dnQ1gZKnJkwDN4p2dnAA@giganews.com

Le Fri, 09 Nov 2012 15:08:20 +0100, Peter C. Chapin <pcc482719@gmail.com>  
a écrit:

> On 11/08/2012 04:29 PM, J-P. Rosen wrote:
>
>>> Traceback (most recent call last):
>>>    File "<stdin>", line 1, in <module>
>>>    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 lines.
>> 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 having  
> 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‑Pierre 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).


-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2012-11-09 17:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 15:39 Problem getting Adactl to run Peter C. Chapin
2012-11-08 20:28 ` Peter C. Chapin
2012-11-08 21:29   ` J-P. Rosen
2012-11-09 14:08     ` Peter C. Chapin
2012-11-09 17:08       ` Yannick Duchêne (Hibou57) [this message]
2012-11-09 17:20       ` J-P. Rosen
2012-11-09 18:54         ` Peter C. Chapin
2012-11-09 21:57           ` J-P. Rosen
2012-11-10 13:20             ` Peter C. Chapin
2012-11-10 12:33           ` Stephen Leake
2012-11-10 13:16             ` Peter C. Chapin
2012-11-11 22:46               ` Stephen Leake
2012-11-08 21:22 ` J-P. Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox