Gnat-gps trouble on start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnat-gps (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnat-gps
I'm using Ubuntu 8.10
when I open gnat-gps I see these errors:
It has trouble with the changelog.xml.
It finds two instances of gnatpsta.py and methods.py in /usr/share/
[2008-09-06 20:49:04] Error while parsing /usr/share/
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/
import os_utils, gnat_switches
ImportError: No module named gnat_switches
[2008-09-06 20:49:04] There are several startup scripts with the same name: gnatpsta.py
Not loading: /usr/share/
[2008-09-06 20:49:04] There are several startup scripts with the same name: methods.py
Not loading: /usr/share/
Welcome to GPS Version: 4.3~2008.
the GNAT Programming Studio
(c) 2001-2008 AdaCore
tags: | added: patch |
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 gps/plug- ins/ada_ support. py", line 15, in <module>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/
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: libre.adacore. com/libre/ download/
http://
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.