comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Got to ask this about GPS: Do others have the same problems with Python?
Date: Wed, 4 Mar 2020 18:26:55 -0800 (PST)
Date: 2020-03-04T18:26:55-08:00	[thread overview]
Message-ID: <8bc8a417-a706-4f12-9cd0-bce772a95488@googlegroups.com> (raw)
In-Reply-To: <SCC7G.200865$0k2.111871@fx06.iad>

On Tuesday, March 3, 2020 at 4:28:35 PM UTC-8, Rick Newbie wrote:
> Hello,
> 
> I am using the GPS community edition to learn Ada on Win10. So far I 
> have overcome the first obstacle but I constantly run into problems with 
> Python when doing things in GPS that you would expect should just work 
> and which are simply syntax errors in the Python scripts that come with 
> GPS.I was able to fix the problems regarding the start of GDB but there 
> are many others.
> 
> For instance: I create a procedure header in an ADS file then use the 
> "Generate Body Of ..." from the context menu and I get this in the 
> output window:
> 
> Traceback (most recent call last):
>    File "D:\GNAT\2019\share\gps\support\core\gps_utils\__init__.py", 
> line 352, in do
>      r = callback()
>    File "D:\GNAT\2019\share\gps\support\core\gnatstub.py", line 173, in 
> generate_plain_body
>      generate_body(as_separate=False)
>    File "D:\GNAT\2019\share\gps\support\core\gnatstub.py", line 153, in 
> generate_body
>      command += x_args + [file.path, file.directory()]
> AttributeError: 'NoneType' object has no attribute 'path'
> 
> 
> I mean this is clearly a programming error in the Python scrip, right? 
> How come they deliver GPS with obvious errors that should jump into 
> everybody's face when using the IDE? Or is it just my installation and 
> something is wrong on my end? Does it work better on Linux?
> 
> I mean I can work around this, but this really puzzles me. If it were 
> some rare and esoteric bugs, OK, that happens to everybody but these are 
> really too obvious

I also run GPS 19.1 (20190106) hosted on x86_64-pc-mingw32
GNAT Community 2019 (20190517-83) on Windows 10, and I had no problem generating package body stub for package specification needing package body. For a package specification needing no package body, no package body stub will be generated.

Anh Vo 


      parent reply	other threads:[~2020-03-05  2:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-04  0:28 Got to ask this about GPS: Do others have the same problems with Python? Rick Newbie
2020-03-04 11:54 ` Markus Schöpflin
2020-03-24  3:53   ` Rick Newbie
2020-03-24  7:25     ` Markus Schöpflin
2020-03-04 15:04 ` Simon Wright
2020-03-05  2:26 ` Anh Vo [this message]
replies disabled

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