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.

Bug 224799 - PHP features not working with nested HTML5 project
Summary: PHP features not working with nested HTML5 project
Status: RESOLVED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 224790 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-12 21:48 UTC by everflux
Modified: 2013-01-14 12:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2013-01-12 21:48:22 UTC
[ BUILD # : 201301102100 ]
[ JDK VERSION : other ]

I have the following project layout

/ [PHP project]
/admin [HTML5 project]

I have PHP files in / as well as below the /admin directory serving the HTML5
part of the application. This may be the naive approach many small PHP projects
are developed, mixing HTML, Javascript and PHP files.
Even though I open the PHP files by navigating the PHP project, the PHP
features are not working correctly: Code completion, navigation is not working
as expected. Code highlighting does work, though.

Closing the nested HTML5 project does not improve the situation.

When I move the PHP files outside of the nested HTML5 project, everything works
as expected.

I am not certain whether this should be fixed by documenting a project layout
that work around the problems or if there is a fix in Netbeans possible.

If this is not considered a bug at least the documentation must be updated to
warn about this silent failing to prevent a unnecessary bad experience for new
developers.
Comment 1 Tomas Mysik 2013-01-14 06:00:44 UTC
Mixing/nesting projects is not supported. Simply use only PHP project.

Thanks.
Comment 2 everflux 2013-01-14 10:00:39 UTC
It should be at least mentioned in the documentation that having Netbeans project files of a different type can interfere with the PHP features and how the projects should be properly organized.
I assumed that different project types would work well as long as you use the proper project type in the project view to navigate to the files and open them.
Comment 3 Tomas Mysik 2013-01-14 10:06:14 UTC
Adding Ken to CC, he is responsible for the documentation. Thanks.
Comment 4 Tomas Mysik 2013-01-14 10:08:09 UTC
*** Bug 224790 has been marked as a duplicate of this bug. ***