comp.lang.ada
 help / color / mirror / Atom feed
* Got to ask this about GPS: Do others have the same problems with Python?
@ 2020-03-04  0:28 Rick Newbie
  2020-03-04 11:54 ` Markus Schöpflin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rick Newbie @ 2020-03-04  0:28 UTC (permalink / raw)


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

Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-24  7:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox