"Cannot locate enable" after running "vendor/bin/psalm-plugin enable weirdan/doctrine-psalm-plugin"
After running the command:
vendor/bin/psalm-plugin enable weirdan/doctrine-psalm-plugin
I receive:
Cannot locate enable
How should I proceed?
I believe I got it working by modifying the psalm.xml file manually:
...
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Weirdan\DoctrinePsalmPlugin\Plugin"/>
</plugins>
...
Are you sure you used psalm-plugin and not psalm in your cli invocation? Because that's what psalm would output when asked to check a non-existing file/folder.
Are you sure you used
psalm-pluginand notpsalmin your cli invocation? Because that's whatpsalmwould output when asked to check a non-existing file/folder.
I copied the commands from the repo readme file.
Curious. What does ls -l vendor/bin/psalm-plugin output?
Curious. What does
ls -l vendor/bin/psalm-pluginoutput?
ls -l vendor/bin/psalm-plugin
-rwxrwxr-x 1 nico nico 3330 Dec 27 11:27 vendor/bin/psalm-plugin
These are my used versions:
composer show | grep psalm
psalm/plugin-phpunit 0.18.4 Psalm plugin for PHPUnit
vimeo/psalm 5.18.0 A static analysis tool for finding errors in PHP applications
weirdan/doctrine-psalm-plugin v2.9.0 Stubs to let Psalm understand Doctrine better