I'd like to parse some information to GPS Locations window. I tried to
execute the following code
File: Test.py
-------------------------------------------------------------------------------------------------
def Locations_Test (ui_control):
test = (
"C:\Test.adb:5:1: Message")
category = (
"Locations")
GPS.Locations.parse(test, category)
def on_GPS_UI_ready (hook_name):
menu_item = GPS.Menu.create (
path = "/Tools/Test...",
on_activate = Locations_Test)
GPS.Hook ("gps_started").add (on_GPS_UI_ready)
----------------------------------------------------------------------------------------------------------------------------------------------------------
And I got the following error message:
Traceback (most recent call last):
File "C:\Documents and Settings\lhbatist\.gps\plug-ins\Teste.py",
line 21, in Locations_Test
GPS.Locations.parse(test, category)
GPS.Unexpected_Exception: unexpected internal exception Exception
name: CONSTRAINT_ERROR
Message: s-valint.adb:63 explicit raise
Call stack traceback locations:
0x1037cf5 0x1037d43 0xc00bbc 0xc016fd 0xbe85a0 0xede140 0x1e08ec29
What is wrong with my code?
Thanks!
Leandro.