Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpmd.rules setting #58

Open
ghost opened this issue Aug 5, 2020 · 2 comments
Open

phpmd.rules setting #58

ghost opened this issue Aug 5, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 5, 2020

Greetings,
if I have the path to a ruleset file defined as follows
"phpmd.command": "${workspaceFolder}/vendor/bin/phpmd"

I get the following error:
image

But if I have it like:
"phpmd.command": "./vendor/bin/phpmd"

I get no error output, maybe the explanation of the plugin should be updated so that their is an explanation that you can use the ./vendor/bin/phpmd syntax if you have it as a dependency in your project.
Or Autodiscover from composer the composer.json if it is a project dependency and if it is use that one.

@sandhje
Copy link
Owner

sandhje commented Apr 9, 2021

"${workspaceFolder}" should have been replaced in your command. I'll try to reproduce and submit a fix if I can find the problem

@slmtbdwry
Copy link

Hi, I got the error also on multi-root workspace, which with ${workspaceFolder:dirname} not parsed correctly, while without dirname it's OK although it automatically takes the first dirname (supposedly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants