KamasamaK / vscode-cflint

An extension to integrate CFLint into Visual Studio Code.
MIT License
17 stars 9 forks source link

On saving: There was a problem with CFLint. spawn java.exe ENOENT #7

Closed jcush closed 6 years ago

jcush commented 6 years ago

Whenever I save a CF file, having enabled the CFLint extension, I get the error:

There was a problem with CFLint. spawn java.exe ENOENT

I have made sure that the jar file is in my PATH and have specified the following in my settings file:

"cflint.enabled": true,
"cflint.jarPath": "C:\\The\\Path\\To\\My\\CFLint-1.3.0-all.jar",

Any idea what this problem could be? If you need any more information just ask!

Thanks

jcush commented 6 years ago

Nevermind! Turns out I had installed Java in order to run the extension, but needed to restart VSCode for the extension to recognise the Java installation.

Anyone having the same issue, just make sure Java is installed and give VSCode the old "turn it off and on" treatment.