Intellisense is always showing "unknown class" PHP0413 for composer packages installed from local repo. Unsure if this is because composer creates a symlink in ./vendor/publisher/ to the package or for another reason.
Note: This is on Windows - symlinks on *nix systems may not have the same issue - if it is a link issue.
Re-importing the class fixes the issue until VSC is restarted - where the problem returns. Quite tedious as the package is used in many other classes...
This scenario is common when developing composer packages - i.e before they can be installed from Packagist
Package installed with Composer from a repo defined in composer.json:
Intellisense is always showing "unknown class" PHP0413 for composer packages installed from local repo. Unsure if this is because composer creates a symlink in
./vendor/publisher/
to the package or for another reason.Re-importing the class fixes the issue until VSC is restarted - where the problem returns. Quite tedious as the package is used in many other classes...
This scenario is common when developing composer packages - i.e before they can be installed from Packagist
Package installed with Composer from a repo defined in
composer.json
:As this is a
path
type repo, by default composer creates a symlink in./vendor/publisher/
to the package's sourceIs therefore included in
./vendor/composer/installed.json
: