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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,82cf6ed532adfd0a,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!b34g2000yqc.googlegroups.com!not-for-mail From: leandrohbatista Newsgroups: comp.lang.ada Subject: GPS Locations Windows Date: Thu, 27 Jan 2011 08:22:49 -0800 (PST) Organization: http://groups.google.com Message-ID: <7408407f-e800-4e3b-9e44-ca7bd9d91b74@b34g2000yqc.googlegroups.com> NNTP-Posting-Host: 201.7.145.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1296145369 30957 127.0.0.1 (27 Jan 2011 16:22:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 27 Jan 2011 16:22:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b34g2000yqc.googlegroups.com; posting-host=201.7.145.1; posting-account=8FovrgoAAAB_aJY9xHb4HjESellrCvkS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:16741 Date: 2011-01-27T08:22:49-08:00 List-Id: Hi! 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.