pydev 1.0 (an Eclipse plugin) was released just released, and I tried it with Chandler. (And 1.0.1 released today.) It seems much better than the previous versions I've used, although there are still some things that make it hard to use it for Chandler development.
You naturally need to set the Chandler python as the python interpreter,
and may need to manually add some directories to PYTHONPATH (it seems to
autodiscover some based on the python executable).
It was interesting to note that the debugger has gotten a lot faster,
and might in fact be usable for debugging Chandler if it weren't for a
showstopper problem: Chandler/pydev hangs on Chandler startup when
debugging is enabled. It gets to a point where the splash screen is up,
reporting 55% done, and then stops here:
MainThread
getVersion [DBContainer.py:1533]
getVersion [DBRepository.py:773]
__init__ [RepositoryView.py:939]
createView [DBRepository.py:518]
fork_item [startup.py:122]
invokeTarget [startup.py:160]
onStart [startup.py:184]
_start [startup.py:89]
run_startup [startup.py:24]
initWakeup [Utility.py:492]
OnInit [Application.py:357]
_BootstrapApp [_core.py:7338]
__init__ [_core.py:7686]
realMain [Chandler.py:55]
main [Chandler.py:68]
? [Chandler.py:108]
run [pydevd.py:551]
? [pydevd.py:666]
Up until that point you can set breakpoints and do all the stuff you
expect from a debugger. The speed seemed reasonable as well.
pydev isn't the only debugger to have problems with Chandler, though.
For many it is simply the speed of the debugger. For others it is
Chandler's threads. WingIDE does not see other than the main thread. We
have a patch for our thread code that will enable you to debug with
Komodo. The only remaining tool I am aware of is to modify code to
import pdb and call pdb.set_trace() at which point you get into the
command line debugger, and this works for any thread.
To actually run Chandler from pydev you need to add the release (or
debug) bin directory to PATH (same as with WingIDE etc.) Without this
you will see a Python crash and complaint that libdb44.dll is not found.
I am not sure if the pylint support works for all Chandler files.
Previous version complained about that libdb44.dll on any file that
inherited from repository CItem (if memory serves). I haven't seen it in
the last day or so, though, so maybe it went away with 1.0 or I entered
some correct setting.
--
Heikki Toivonen
signature.asc
Description: OpenPGP digital signature
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Open Source Applications Foundation "Dev" mailing list http://lists.osafoundation.org/mailman/listinfo/dev
