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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx06.iad.POSTED!not-for-mail Newsgroups: comp.lang.ada X-Mozilla-News-Host: news://news.newsdemon.com:119 From: Rick Newbie Subject: Got to ask this about GPS: Do others have the same problems with Python? User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Date: Wed, 04 Mar 2020 00:28:34 UTC Date: Tue, 3 Mar 2020 16:28:33 -0800 X-Received-Bytes: 2257 X-Received-Body-CRC: 1504482445 Xref: reader01.eternal-september.org comp.lang.ada:58167 Date: 2020-03-03T16:28:33-08:00 List-Id: 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