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