Which IDE is recommended?

F

Franz Steinhaeusler

The ActiveGrid IDE is a sample app with wxPython. It has a lot of good
features including a source code debugger that allows you to debug wx
apps and set breakpoints from the code editor. I am also biased
though--I work on that IDE and use it for all my coding. Its pretty far
along on Windows and getting better on Linux. We just got it working on
a Mac yesterday so that version won't be out for a bit.

Little OT:

I tried to run or debug the current open file. but it didn't work.
As I found no forum, I ask here:

Traceback (most recent call last):
File
"C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\lib\pydocview.py",
line
930, in ProcessEvent
return DocMDIParentFrameMixIn.ProcessEvent(self, event)
File
"C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\lib\pydocview.py",
line
325, in ProcessEvent
return wx.GetApp().ProcessEvent(event)
File
"C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\lib\pydocview.py",
line
1636, in ProcessEvent
if service.ProcessEvent(event):
File "C:\Programme\wxPython2.6 Docs and
Demos\samples\ide\activegrid\tool\Debu
ggerService.py", line 1534, in ProcessEvent
self.OnRunProject(event)
File "C:\Programme\wxPython2.6 Docs and
Demos\samples\ide\activegrid\tool\Debu
ggerService.py", line 1633, in OnRunProject
dlg = CommandPropertiesDialog(self.GetView().GetFrame(), 'Run',
projectServi
ce, None)
File "C:\Programme\wxPython2.6 Docs and
Demos\samples\ide\activegrid\tool\Debu
ggerService.py", line 1933, in __init__
self._selectedProjectDocument =
self._projectDocumentList[selectedIndex]
IndexError: list index out of range

Where to ask for help otherwise?
 
F

Franz Steinhaeusler

Is it related to wxpython you mean? or program with GUI in tk (the default
installed with python) is faster? Would you mind to tell me more...

I have the impression, that the startup time of tkinter is twice as fast
as in wxPython.
But after that, wxPython response times ar as fast as in tkinter.
 
B

bruno modulix

Dave Cook wrote:
(snip)
Once upon a time emacs was considered bloated,

That was when "640ko ought to be enough" ?-)
but it's tiny compared to eclipse.
Yeps. And a *lot* faster. And in not that much bigger than Vim in fact...
 
B

Brian Beck

Ville said:
What version? PyDev has increased in maturity quite a bit lately.

PyDev 0.9.2 with Eclipse 3.0.2. It's a nice effort currently, but some
of my issues are:

* Code completion doesn't work properly for me, and I have no idea why.
I have to type the '.' then ADD A SPACE, *then* press Ctrl+Space. If I
type Ctrl+Space after the dot, nothing happens. So basically it's not
very useful, because I'd have to go back and get rid of the stupid space.

* Code completion isn't nearly as fast as WingIDE.

* Auto-indentation could be smarter, such as dedenting after a 'return'
statement.

* The Problems view finds 52 errors in a file with 0.

* Run As doesn't dump me into an interactive shell.
 
B

Brian Beck

Oh yeah, and what's with not being able to configure the code completion
key sequence. How about *no* key sequence? That's the way every other
IDE I've used does it. This is more like semi-automatic code completion.
 
B

Brian Beck

I realize 0.9.3 is the latest release, but the installation fails
through the Eclipse updater:

Unable to complete action for feature "PyDev for Eclipse" due to errors.
Unable to create file
"/opt/eclipse-extensions-3/eclipse/plugins/org.python.pydev_0.9.3/PySrc/SocketTestRunner.py".
[/opt/eclipse-extensions-3/eclipse/plugins/org.python.pydev_0.9.3/PySrc/SocketTestRunner.py
(No such file or directory)]
 
B

Brian Beck

Brian said:
I realize 0.9.3 is the latest release, but the installation fails
through the Eclipse updater:

Unable to complete action for feature "PyDev for Eclipse" due to errors.
Unable to create file
"/opt/eclipse-extensions-3/eclipse/plugins/org.python.pydev_0.9.3/PySrc/SocketTestRunner.py".
[/opt/eclipse-extensions-3/eclipse/plugins/org.python.pydev_0.9.3/PySrc/SocketTestRunner.py
(No such file or directory)]

Okay, sorry for spamming the newsgroup so much, but I installed 0.9.3
properly and the same issues I mentioned before persist. Code completion
for imports or locals don't work at all -- the space thing was PyDev
just listing all the built-ins, with none of my modules or locals
included in the list.
 
V

Ville Vainio

Brian> Oh yeah, and what's with not being able to configure the
Brian> code completion key sequence. How about *no* key sequence?
Brian> That's the way every other IDE I've used does it. This is
Brian> more like semi-automatic code completion.

It works like that for me.

I type:

import os
os.<wait a second>

And I get the list of completions.

Perhaps you are just being impatient?

Also, make sure that Preferences/pydev/code completion has
"Autocomplete on '.'" box checked.
 
V

Ville Vainio

Brian> Okay, sorry for spamming the newsgroup so much, but I
Brian> installed 0.9.3 properly and the same issues I mentioned
Brian> before persist. Code completion for imports or locals don't
Brian> work at all -- the space thing was PyDev just listing all
Brian> the built-ins, with none of my modules or locals included
Brian> in the list.

This is another thing that works fine for me. Have you tried starting
with an empty file to see whether there is something in your source
file that trips up pydev?

Whining at the pydev mailing list might work as well.
 
B

Brian Beck

Ville said:
Perhaps you are just being impatient?

Also, make sure that Preferences/pydev/code completion has
"Autocomplete on '.'" box checked.

Yeah, that option is enabled. I actually just discovered that it does
work in the example you give and for other modules in the standard
library. But calls to standard library modules only occur maybe twice in
any of my big scripts... the problem is I've been trying code completion
with third-party modules and local classes, which still doesn't work.
 
V

Ville Vainio

Brian> Yeah, that option is enabled. I actually just discovered
Brian> that it does work in the example you give and for other
Brian> modules in the standard library. But calls to standard
Brian> library modules only occur maybe twice in any of my big
Brian> scripts... the problem is I've been trying code completion
Brian> with third-party modules and local classes, which still
Brian> doesn't work.

From the faq at http://pydev.sourceforge.net/faq.html:

How do I set the PYTHONPATH for code completion to work in my project?


To set the PYTHONPATH for code completion purposes, you have to right
click your project root, choose properties->PyDev PYTHONPATH and set
it. The Restore PYTHONPATH button should get your enviroment
PYTHONPATH and automatically set it. If it does not work, check python
interpreter is correctly set (see questions above).

Does this help?
 
B

Brian Beck

Ville said:
Does this help?

Not really, my PYTHONPATH is fine. I found out that modules imported in
the format "import mx" work fine, but "from mx import DateTime" doesn't
work -- it will still only auto-complete when I type "mx." instead of
realizing that it's in the local scope now. So it's fine all the modules
fine, just placing them wrong in the auto-complete search tree, or
however it works.
 
M

Matt

Sorry about that Frank. You have to create a project (New --> Project)
and add your file to it then Run-->Run. This is a bug that slipped past
because we do all of our development using projects and hadn't even
tried the obvious: open file and run. That fix has made its way to the
wx folks, but hasn't been released yet.
 
F

Franz Steinhaeusler

Sorry about that Frank. You have to create a project (New --> Project)
and add your file to it then Run-->Run. This is a bug that slipped past
because we do all of our development using projects and hadn't even
tried the obvious: open file and run. That fix has made its way to the
wx folks, but hasn't been released yet.

Hello Matt,

thanks for clarification ;)
 
J

John J. Lee

Dave Cook said:
Pydev has some compelling features, but I wish I didn't have to run eclipse
[...]

What are those compelling features of Pydev, for an emacs user?


John
 
J

John J. Lee

Ville Vainio said:
John> What are those compelling features of Pydev, for an emacs
John> user?

http://pydev.sourceforge.net/features.html

Code completion and debugger are the most obvious ones. Eclipse itself
is also quite a "feature".

What good features does the debugger have? What other good features
does Eclipse have right now (that are useful for Python programming,
but not necessarily specific to that)?

Obviously Eclipse looks good in the future, but I wonder what it's
like right now.

I'm more interested in features than bugs, since I'm sure the
following experience isn't typical, but: I did try it not long ago,
and the commercial distribution I tried (I forget the name, but it had
added Python support) hung after a few minutes of use, and completion
didn't work. It was also terribly slow (compared to emacs on the same
box), which worries me more than the bugs.


John
 
D

Dave Cook

What are those compelling features of Pydev, for an emacs user?

For me, the code completion feature. Also, modern anti-aliased font
rendering under Linux doesn't hurt.

Emacs python-mode is still ahead on code formatting. For example, the way
you can line up code by hitting tab once anywhere on the line. And I miss
emacs things like M-^ (delete-indentation; joins the line to the previous
line and removes whitespace).

Eclipse has an emacs keybinding mode, but it's not very comprehensive.

I'm not ready to switch, but I played around enough to know I could get
fairly comfortable if I wanted to.

I exaggerated memory usage a bit. Eclipse only uses about twice as much RAM
as XEmacs on my Linux box. Still, I probably wouldn't find it as usable if
this wasn't an AMD64 3200 with 1G RAM.

Dave Cook
 
D

dcrespo

But I personally recommend DrPython. (Not only, I'm a member of the
project).

I saw this message and downloaded DrPython. It's very good: I like the
class/functions browser while I'm coding... but I can't find the
autocompletion feature you talk, and I think this feature is very
important. Where it is?

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top