#1514 "File has no statistics." when parent folder contains space

open
nobody
None
5
2012-06-13
2012-06-13
No

When using Windows (tested on Vista 64bit and Windows 7 64bit) with Eclipse Indigo (3.7.2 M20120208-0800) and PyDev (2.4.0.2012020116) 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. )

Note2: Also reported here: https://bitbucket.org/ned/coveragepy/issue/184/file-has-no-statistics-when-windows

Discussion

  • Walter Prins

    Walter Prins - 2012-06-13

    Eclipse log file

     
  • Walter Prins

    Walter Prins - 2012-06-13

    Additional information:
    Eclipse install location: C:\eclipse\ Project location: C:\temp\test with a space\Eclipse\BugTest (originally, a user folder where the username contains a space. Same project tree on username without a space and same config works.)