Any help available, got an error Static Analysis Failed. Error Details: PMD Command Failed! Enable "Show StdErr" setting for more info. Where does I need to go to enable it?
This happened to me as well (Mac). I basically went and installed the latest version of Java here at https://www.java.com/en/.
Download it-> hit save on your AccountController.cls once again -> issue went away for me. If this doesn't work, quit your VSCode and open once more and try the repeat the steps for the AccountController.cls after Java is downloaded.
The latest Java version will help with several of the Apps you installed with the Salesforce Extension Pack as well.
Ensure your java version is compatible?
In this case, I would recommend reinstalling your VS Code, as well as everything related to Salesforce development.
How to do this? There's a great Trailhead that provides step-by-step instructions:
- https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-salesforce-dx
- https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code
Sincerely,
Mykhailo Vdovychenko
Bringing Cloud Excellence with IBVCLOUD OÜ
THis is old thead but my solutions is not here.
My VS Code was working fine then out of the blue I started getting this error. The reason was due to the naming convention in my code path. I had a folder with a space.
I removed the space from the folder path and it worked fine.
Please check JRE version and if it is ole. Please update first and check again.