Monday, January 03, 2011

Pydev 1.6.4 released

Pydev 1.6.4 is now available.

The major change is the new unittest support, which was previously commented at: http://pydev.blogspot.com/2010/12/improved-unittest-support-in-pydev.html

Now, there were some other changes since that post that are worth mentioning too:

The default Pydev test runner can now distribute tests among multiple processes, which can make testing much faster (if you have multiple CPUs available). Although note that if the tests weren't properly designed they may break. One example would be the case when 2 tests end up writing/reading to the same file.

Note that there's also an option to run all the tests from a given module in the same process (instead of separating them 'randomly' among processes).

See: http://pydev.org/manual_adv_pyunit.html for details on the flags to be passed to enable running in multiple processes and basic instructions on how to use the new unittest integration.

Also important is that a major bug was fixed -- in this bug, existing interpreters could end up being corrupted when a new interpreter was added (so, if you are using multiple interpreters you're strongly advised to upgrade) -- note: if there seems to be some issue with corruption of the internal pydev indexes, ctrl+2 --reindex can be used (while in the pydev editor) to ask for the pydev indexes to be rebuilt (which would be the case if the globals browser is not working properly or the pydev code analysis was manually stopped for some reason) it shouldn't be needed, but, if the need arises, it's there :)

6 comments:

chbussler said...

Hi,

just installed 1.6.4 and now when running coverage on a directory I get:

C:\Users\cbussler\Documents\EclipseWorkspace\.metadata\.plugins\org.python.pydev.debug\.coverage
Traceback (most recent call last):
File "C:\eclipse\eclipse-SDK-3.6.1-win32-x86_64\eclipse\plugins\org.python.pydev.debug_1.6.4.2011010200\pysrc\coverage.py", line 1029, in
the_coverage.command_line(sys.argv[1:])
File "C:\eclipse\eclipse-SDK-3.6.1-win32-x86_64\eclipse\plugins\org.python.pydev.debug_1.6.4.2011010200\pysrc\coverage.py", line 405, in command_line
execfile(sys.argv[0], __main__.__dict__)
File "C:\eclipse\eclipse-SDK-3.6.1-win32-x86_64\eclipse\plugins\org.python.pydev.debug_1.6.4.2011010200\pysrc\runfiles.py", line 153, in
main()
File "C:\eclipse\eclipse-SDK-3.6.1-win32-x86_64\eclipse\plugins\org.python.pydev.debug_1.6.4.2011010200\pysrc\runfiles.py", line 42, in main
pydev_runfiles_xml_rpc.InitializeServer(configuration.port) #Note that if the port is None, a Null server will be initialized.
File "C:\eclipse\eclipse-SDK-3.6.1-win32-x86_64\eclipse\plugins\org.python.pydev.debug_1.6.4.2011010200\pysrc\pydev_runfiles_xml_rpc.py", line 147, in InitializeServer
_ServerHolder.SERVER = pydevd_constants.Null()
NameError: global name 'pydevd_constants' is not defined

Fabio Zadrozny said...

You're right. Will fix it here.

Meanwhile, you can just fix it there by changing:

pydevd_constants.Null()

to

Null()

(There's a from pydevd_constants import * already at the top of the file)

chbussler said...

Great, works totally fine again:-)

Greg said...

Still have an ":can't set attribute" error with Python3.1.2 and PyDev for Eclipse 1.6.4.2011010200 launching the Pydev console :(

Anonymous said...

The django template editor no longer opens (Mac OS X, Helios SR1 64-bit cocoa). I downgraded it back to 1.6.3 and it works fine. The PyDev itself works.

Fabio Zadrozny said...

Greg: Have you reported that as a bug (I didn't find it). If you could report that and help me gather more information on how it happens (I can give you instructions there), that'd be nice (please use the bug reports at sourceforge for that).


Anonymous: You can only update Aptana Studio 3 as a whole (although the next release is taking a bit longer than usual) -- see notes at: http://pydev.org/download.html