Open zmni opened 8 years ago
In my case, It’s work fine.
Please post more info about PHPMD version with screenshots.
I'm using the latest phar version of phpmd v2.4.2
and available from global path :
An error from VSCode using default settings :
List of installed extensions :
abusaidm.html-snippets
alefragnani.project-manager
EditorConfig.EditorConfig
HvyIndustries.crane
ikappas.phpcs
linyang95.phpmd
ms-vscode.PowerShell
robertohuertasm.vscode-icons
Tyriar.lorem-ipsum
wmaurer.change-case
settings.json :
// Place your settings in this file to overwrite the default settings
{
// Editor
"editor.fontSize": 13,
"editor.rulers": [80],
"editor.insertSpaces": false,
"editor.wrappingColumn": -1,
"editor.quickSuggestionsDelay": 100,
"editor.renderIndentGuides": true,
// Files
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.DS_Store": true,
"**/.idea": true,
"**/files": true,
"**/upgrade": true,
"**/uploads": true
},
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
// File Explorer
"explorer.openEditors.visible": 0,
"explorer.autoReveal": false,
// Git
"git.path": "E:\\Git\\cmd\\git.exe",
// HTML
"html.format.wrapLineLength": 0,
// Terminal
"terminal.external.windowsExec": "E:\\Cmd\\ConEmu64.exe",
"terminal.integrated.shell.windows": "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe",
// Telemetry
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
// PHP
"php.validate.executablePath": "E:\\xampp\\php\\php.exe",
"php.validate.run": "onType",
// PHPCS
"phpcs.standard": "WordPress-Core",
// Crane
"crane.showStatusBarBugReportLink": false,
// Project Manager
"projectManager.openInNewWindow": false
}
I tried to disable phpmd through settings.json, but it still displaying an error.
Thx reply. Very helpful. I will check it again.
To verify if phpmd is available this plugin tries to run it, so, even if the path is correctly set, if phpmd is unable to run (e.g. missing dependencies for PHP) the message will wrongly say that the exec could not be found. Try to manually run phpmd and check the output.
Works fine on version 1.2.x, but shortly after update to above version, vscode no longer detect phpmd. Global path configure properly, on default setting, hardcode setting to absolute path, I try everything, nothing works.
Output from Developer Tools: