"File has no statistics." when Windows username contains a space (using PyDev)

Issue #184 invalid
Walter Prins
created an issue

When using Windows (tested on Vista 64bit and Windows 7 64bit) with Eclipse Indigo and PyDev, and the source folder to analyze is beneath a parent folder that contains a space, the coverage analysis will fail and will display (in the PyDev "Coverage" perspective, which I think is just a pretified version of coverage's own output), the message "File has no statistics."

The exact same workspace/source tree, when none of the parent folders of the source tree contains any spaces, will work correctly.

Steps I used to reproduce this issue: 1) Set up a working Eclipse Indigo with PyDev and Coverage, and set up some working source code such that Coverage is reporting correct statistics via the Eclipse Coverage perspective.

2) Create a test folder "C:\test with space" and copy the entire Eclipse workspace above to this test folder.

3) Open the copied workspace in Eclipse using the File->Switch Workspace menu option

4) Re-run the same coverage operation that is known to have worked previously. Observe the failure message in the Coverage tab "File has no statistics."

Note: Running coverage from the command line while in the child folder with a parent that contains a space actually works, so this implies this might be a PyDev problem. Nevertheless, in case I'm wrong I'm still reporting this here (some confirmation if this is the case would also be helpful. )

Edit: Reported to PyDev as well, here: https://sourceforge.net/tracker/?func=detail&aid=3535032&group_id=85796&atid=577329

Comments (3)

  1. Ned Batchelder repo owner

    Two things point to this being a PyDev problem:

    1. The message "File has no statistics" doesn't appear in the coverage.py tree.

    2. Your experiment of running coverage from the command line.

    Can you report it to PyDev?

  2. Log in to comment