This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
A typical php project may be layed out as: 'project' 'src/' 'tests/' 'nbproject/' '.git/' 'vendor/' 'conposer.json' When netbeans is configured with '/project/src' as the source directory, all files within the vendor directory are excluded from the include path. This effectively renders the autocomplete useless for vendor code. The IDE will not allow us to add '/vendor' to the include path. It complains with "already part of project". This can be fixed by setting the source to '/project' but this has its own problems. Often code within '/vendor' has errors (PHPUnit and php-cs-fixer for example). These errors mark the whole project as having errors. Also code within '/project/tests' will be displayed in the autocomplete, which is not what we want.
A workaround is to manually add the vendor directory to the 'nbproject/project.properties' file. Here is an example: auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_create_2e_tests=false auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_enabled=false auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_path=bootstrap.php auxiliary.org-netbeans-modules-php-phpunit.configuration_2e_enabled=true auxiliary.org-netbeans-modules-php-phpunit.configuration_2e_path=phpunit.xml auxiliary.org-netbeans-modules-php-phpunit.customSuite_2e_enabled=false auxiliary.org-netbeans-modules-php-phpunit.customSuite_2e_path= auxiliary.org-netbeans-modules-php-phpunit.phpUnit_2e_enabled=false auxiliary.org-netbeans-modules-php-phpunit.phpUnit_2e_path= auxiliary.org-netbeans-modules-php-phpunit.test_2e_groups_2e_ask=false auxiliary.org-netbeans-modules-php-phpunit.test_2e_run_2e_all=false auxiliary.org-netbeans-modules-php-phpunit.test_2e_run_2e_phpunit_2e_only=false code.analysis.excludes= file.reference.HuddlerBundle-tests=tests file.reference.vendor=vendor ignore.path= include.path=\ ${php.global.include.path}:\ ${file.reference.vendor} php.version=PHP_70 source.encoding=UTF-8 src.dir=src tags.asp=false tags.short=false test.src.dir=${file.reference.HuddlerBundle-tests} testing.providers=PhpUnit web.root=.