sandhje / vscode-phpmd

VSCode PHP Mess Detector extension
MIT License
15 stars 4 forks source link

Unhandled promise rejection errors if PHPMD returns no output #14

Closed sandhje closed 7 years ago

sandhje commented 7 years ago

See error message reported in issue #13.

neerolyte commented 7 years ago

This also happens if the extension tries to validate a file that hasn't been saved yet.

E.g

Creating a new empty file (command-n) and then setting the mode to PHP pops up:

image

and logs:

(node:50252) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: An error occured, no output was received after executing the phpmd command
(node:50252) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
sandhje commented 7 years ago

Thanks, I haven't tested that scenario yet. I'll fix that.

sandhje commented 7 years ago

Resolved in version 1.0.1