When I select Run - Run As - Python Coverage the following message appears in the Console window:
File "C:\eclipse\plugins\org.python.pydev.debug_184.108.40.2060080312\pysrc\coverage.py", line 336
SyntaxError: invalid syntax
I see that the file coverage.py is using Python 2.x-style print statements, which won't work with Python 3.1.2. My question is, what is the right way to fix this? I spent a while googling for answers and couldn't find anything relevant.
Looking here: http://nedbatchelder.com/code/coverage/ I noticed that coverage.py is on version 3.3.1 and supports Python 3. I was going to replace the one installed with pydev (at version 2.78.20070930). However, the coverage.py 3.3.1 archive doesn't even contain a coverage.py file.
Thanks for any insights!
Please report this as a bug. I'll update the coverage version in pydev then (there's a patch I need to apply so that it works in pydev).
This still has not been fixed…
Working on that (should be fixed for 1.6.6).
Hi, ok, this is now done for 1.6.6. Also, there were major changes in the coverage as a whole, so, if someone could get the latest nightly (that already has those changes) and give me feedback on it before the final release (so that any problems can still be fixed), that'd be nice.
I got the nightly build, and there is no longer a run configuration for coverage.
Nevermind the lack of a run configuration. I figured out how to tell it to run coverage, but when I try to use it I get the error:
import coverage #@UnresolvedImport
ImportError: No module named coverage
It's no longer distributed with pydev (you have to have it installed in your python install from http://nedbatchelder.com/code/coverage/).
Alright. Sorry about the triple post. This forum could use an edit feature, and I could use to check more before posing. I noticed I needed to install a third party module, and I did so. It is difficult to display the coverage results. It would be nice to have them loaded automatically. Also, showing the coverage results as red underlines is somewhat ugly. Would It be possible to display them as highlighted text or something similar?
Thanks for making such a great plugin.