I have reproduced a similar bug on 10.04 (Lucid Lynx).

The problems with "gnatpsta.py" and "methods.py", as mentioned in the
original bug report from 2008, appear to have been fixed.

However, after downloading the "gnat-gps" package and starting GPS
(/usr/bin/gnat-gps), I still get the following error message:

[2010-07-20 19:04:01] Error while parsing /usr/share/gps/plug-ins/changelog.xml
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/share/gps/plug-ins/ada_support.py", line 15, in <module>
    import os_utils, gnat_switches
ImportError: No module named gnat_switches
Welcome to GPS 4.3-5ubuntu1 (Debian) hosted on x86_64-linux-gnu
the GNAT Programming Studio
(c) 2001-2008 AdaCore

This error has not (so far) prevented me from building and running Ada
programs in GPS, but its presence is not comforting and I'm wondering
whether it will cause any future problems. :)

The Python ImportError can be made to go away by adding
"gnat_switches.py" to /usr/share/gps/plug-ins/

I attach the missing gnat_switches.py file to this post. It is taken from 
AdaCore's GNAT_GPL package, available from:
http://libre.adacore.com/libre/download/

I am not sure how to resolve the "Error while parsing /usr/share/gps
/plug-ins/changelog.xml" message, or even what the cause of the parse
error is.

** Attachment added: "gnat_switches.py"
   http://launchpadlibrarian.net/52221234/gnat_switches.py

-- 
Gnat-gps trouble on start
https://bugs.launchpad.net/bugs/267302
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to