473,785 Members | 2,553 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Komodo syntax checking for python2.4

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

Jul 19 '05 #1
2 2056
[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
Tr****@ActiveSt ate.com
Jul 19 '05 #2
"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
Tr****@ActiveSt ate.com


Thanks,
George

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2111
by: Will McGugan | last post by:
Hi, On my dev machine (P4 1.7Ghz Win2K) debugging with Komodo is painfuly slow. There is a delay of several seconds when stepping over a single line of code. Debugging the same code with Pythonwin is very quick. Does anyone else experience slow debugging, and is there anyway to speed it up? TIA,
4
1746
by: Edward K. Ream | last post by:
Various documentation pages, e.g. http://www.python.org/doc/2.3.3/lib/non-essential-built-in-funcs.html state that the apply function has been deprecated since 2.3. Can anyone tell me when extended call syntax was actually introduced? Neither googling nor brief checks of the 'What's new in Python' or the pep's has turned up this information. Thanks. Edward --------------------------------------------------------------------
2
2742
by: fortepianissimo | last post by:
This is a question to all of you who use Komodo IDE for development: when I tried to debug my script which uses __file__ to get the absolute path to the file, Komodo complained that the variable is not defined. Anyway to work around this? (without changing the code) Or if I need to change the code, how do I achieve the same thing I wanted? Thanks in advance!
6
1532
by: Matt Trivisonno | last post by:
Hi Everybody, If I were to use Komodo to write in Python, would it add a lot of goo to my code such that I would not be able to switch to another IDE without having to claw my way out of a tarpit first? Any other thoughts on Komodo? I am considering it because I am hoping to find a solution to the install-packages-until-you-go-blind aspect of Python. Setting up a serious, cross-platform, gui development environment is quite a struggle...
4
1790
by: swisscheese | last post by:
Using the Komodo IDE under XP I often get "python.exe has encountered a problem and needs to close". Running python direct on the same app gives a list index out of bounds error. Any ideas how to get Komodo to give the proper error?
1
2356
by: j_macaroni | last post by:
Hi all, I have setup PHP/MySQL (using mysqli) and works properly from the command line. Here is the code that works when run from the command line: <?php $conn = new mysqli('localhost','root','xyz'','testdb'); if (mysqli_connect_errno() != 0) {
29
4992
by: John Salerno | last post by:
Just curious what users of the two big commercial IDEs think of them compared to one another (if you've used both). Wing IDE looks a lot nicer and fuller featured in the screenshots, but a glance at the feature list shows that the "personal" version doesn't even support code folding! That's a little ridiculous and makes me have doubts about it. Komodo, on the other hand, seems to have more of the features that the personal version of...
8
2258
by: Steve Thompson | last post by:
Hello all, I was wondering the differnced there were betwee Active State's python and the open source version of python. Would I have to unistall my opend souce python? Additonally, how does Active State's Komodo IDE vs. the eric3 IDE unler SuSE Linux v. 10.i? Addionally, is the eric IDE (version 3) an acceptible IDE or are there more easy and more productive IDE's for perl?
1
1822
by: John Dann | last post by:
I'm learning Python using the Komodo Edit freeware code editor. One thing I'm finding a little confusing is that the code completion lists (what I would call Intellisense coming from a .Net background) are often very incomplete, especially with imported classes like wx. It's like KE can't look far enough into these classes to offer a comprehensive list of method etc options. I presume that I haven't possibly omitted some KE setup step...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.