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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:6691:: with SMTP id a139mr6060543qkc.93.1583375215742; Wed, 04 Mar 2020 18:26:55 -0800 (PST) X-Received: by 2002:a05:6808:907:: with SMTP id w7mr1277105oih.78.1583375215384; Wed, 04 Mar 2020 18:26:55 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 4 Mar 2020 18:26:55 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=149.32.224.38; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.38 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8bc8a417-a706-4f12-9cd0-bce772a95488@googlegroups.com> Subject: Re: Got to ask this about GPS: Do others have the same problems with Python? From: Anh Vo Injection-Date: Thu, 05 Mar 2020 02:26:55 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58173 Date: 2020-03-04T18:26:55-08:00 List-Id: 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