Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Komodo syntax checking for python2.4

Reply
Thread Tools

Komodo syntax checking for python2.4

 
 
George Sakkis
Guest
Posts: n/a
 
      04-26-2005
I downloaded the latest Komodo (3.1) and configured it for python 2.4
so that it doesn't show decorators and genexps as syntax errors, but
background syntax checking doesn't seem to work at all for python 2.4.
Even for correct files, it shows a "Syntax checking error: Error
checking syntax: retval = 128, stderr=" alert. For python 2.3 it works
fine (modulo the new 2.4 syntax of course). Both 2.3 and 2.4 are built
from source on Cygwin, not ActiveState's binaries, so it might have to
do with this, but I'm unwilling to install yet another python
distribution. Does anyone have the same problem with background syntax
checking on 2.4 ? Thanks,

George

 
Reply With Quote
 
 
 
 
Trent Mick
Guest
Posts: n/a
 
      04-26-2005
[George Sakkis wrote]
> I downloaded the latest Komodo (3.1) and configured it for python 2.4
> so that it doesn't show decorators and genexps as syntax errors, but
> background syntax checking doesn't seem to work at all for python 2.4.
> Even for correct files, it shows a "Syntax checking error: Error
> checking syntax: retval = 128, stderr=" alert. For python 2.3 it works
> fine (modulo the new 2.4 syntax of course). Both 2.3 and 2.4 are built
> from source on Cygwin, not ActiveState's binaries, so it might have to
> do with this, but I'm unwilling to install yet another python
> distribution. Does anyone have the same problem with background syntax
> checking on 2.4 ? Thanks,


George,

My suspicion is that the difference is that you are using a Cygwin
Python and it is using Un*x-style process return values. What do the
following return for your Python.

For me on Windows (with ActivePython 2.4):
>>> import os
>>> os.system("exit 0")

0
>>> os.system("exit 1")

1

And on Linux:
>>> import os
>>> os.system("exit 0")

0
>>> os.system("exit 1")

256

My cygwin Python is currently busted for some reason, so I can't test it
on my system.

On Unix-y/posix-y systems the retval from a process encodes both the
exit status and information on how the process was stopped (c.f. the
os.WIF* methods).

It would be helpful if you could log a bug for this in Komodo's bugdb so
we can track this and make sure it doesn't get lost:

http://bugs.activestate.com/Komodo

Cheers,
Trent

--
Trent Mick
http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
 
George Sakkis
Guest
Posts: n/a
 
      04-26-2005
"Trent Mick" wrote:

> George,
>
> My suspicion is that the difference is that you are using a Cygwin
> Python and it is using Un*x-style process return values. What do the
> following return for your Python.
>
> For me on Windows (with ActivePython 2.4):
> >>> import os
> >>> os.system("exit 0")

> 0
> >>> os.system("exit 1")

> 1
>
> And on Linux:
> >>> import os
> >>> os.system("exit 0")

> 0
> >>> os.system("exit 1")

> 256


Cygwin behaves exactly as Linux in this case.

> My cygwin Python is currently busted for some reason, so I can't test

it
> on my system.
>
> On Unix-y/posix-y systems the retval from a process encodes both the
> exit status and information on how the process was stopped (c.f. the
> os.WIF* methods).
>
> It would be helpful if you could log a bug for this in Komodo's bugdb

so
> we can track this and make sure it doesn't get lost:
>
> http://bugs.activestate.com/Komodo


No problem, I'll do that.

> Cheers,
> Trent
>
> --
> Trent Mick
> (E-Mail Removed)


Thanks,
George

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Komodo, debugging and multi-threading Thomas Lindgaard Python 2 08-10-2004 02:57 PM
Active State Komodo might do it Noah from IT Goes Click Python 0 04-21-2004 08:14 PM
Question:How to use Komodo fone 200 to call Netmeeting or ip address? outlooker VOIP 0 11-13-2003 07:29 AM
help debugging stdin in Komodo, IDLE, or PythonWin Pete Jereb Python 1 10-02-2003 07:08 PM
Active State Komodo for Perl - anyone using? CaptainMcBunnyTickle Perl 0 09-21-2003 12:08 PM



Advertisments