Closed alfonsoabad closed 11 years ago
The error seems to be coming from SublimePHPCoverage.py:50. Is the line I've linked to the same as the one you're running?
If so, it seems like this is happening because the plugin makes the assumption that you have a Sublime project open. Try Project -> Add Folder to Project..., and then Project -> Save Project As... in Sublime, let me know if that fixes the problem.
I'm not sure if/how the plugin should find your coverage data if you aren't using a project. What's your setup like? Where is the coverage data file located in your project?
yeah, ok I was not in a project, sorry , I reinstalled the plugin, and now with a project, with the clover file in place, and lots of <file entries (only have 40% coverage) I update with cmd + shift + C and nothing happens, I can't see the markers or any error in the console
only when executing from MEnu -> Php Coverage -> update current file I get the error Traceback (most recent call last): File "./sublimeplugin.py", line 362, in run File "./SublimePHPCoverage.py", line 74, in run File "./SublimePHPCoverage.py", line 37, in debug_message File "./SublimePHPCoverage.py", line 21, in get AttributeError: 'NoneType' object has no attribute 'settings'
any idea?
I've also encountered this, but only under very specific (yet to be determined) circumstances.
It would be nice to have a message window if any needed file doesn't exists, or some other predictable errors, it will make the package more robust. I still not sure what is the error .. this is the console output.
I'll try to dig a bit more on it and update this issue, I'm working on mac os 10.8.2 python 2.7.3