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.
After install of netbeans and import of settings from previous install, I have a project open, but it doesn't have included the path specified at netbeans php settings. Even if I close and reopen the project, it still doesn't work. That also means that autocomplete is not working as it should, as the framework I use is not included in project. To solve this, I have to go to settings, remove the included path and add it again. Product Version = NetBeans IDE Dev (Build 201203250401) Operating System = Mac OS X version 10.7.3 running on x86_64 Java; VM; Vendor = 1.6.0_29 Runtime = Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402
(In reply to comment #0) > it doesn't have included the path specified at netbeans php > settings What does it mean exactly? That in Project Properties dialog, the Include Path is incorrect? Or that you don't have elements from Global Include Path in editor (in code-completion, for example)? Simply reopen this issue, thanks.
(In reply to comment #1) > (In reply to comment #0) > > it doesn't have included the path specified at netbeans php > > settings > > What does it mean exactly? That in Project Properties dialog, the Include Path > is incorrect? Or that you don't have elements from Global Include Path in > editor (in code-completion, for example)? > > Simply reopen this issue, thanks. The second. All the elements from global include path are missing from editor (and autocomplete). In project explorer (Projects tab), when I open the Include tab node, it's empty. I will post screenshots to show what I mean :)
Created attachment 117268 [details] Screenshot after install (nothing shown in the project include path)
Created attachment 117269 [details] How it should be (it works if i remove and re-insert include path in settings)
Will look at it. Thanks.
I can reproduce it but have no idea where the problem could be. Will try to fix it for NB 7.2. Thanks for reporting.
The property variable ${php.global.include.path} used by ${include.path} in nbproject/project.properties is used. So a work-around is to set it (either in nbproject/project.properties or nbproject/private/project.properties). I have set mine in nbproject/private/project.properties to: php.global.include.path=\ /usr/share/php/PHPUnit:\ /usr/share/php/libzend-framework-php:\ /usr/share/php/log4php:\ /usr/share/php/phing It looks as if the real value for ${php.global.include.path} should come from the settings saved value in file ~/.netbeans/7.2/config/Preferences/org/netbeans/modules/php/project/general.properties (phpGlobalIncludePath). This property is correctly updated upon settings change via Tools/Options/PHP/General/Global Include Path, but for some unknown reason the phpGlobalIncludePath value isn't used for setting ${php.global.include.path}
Should be fixed now I hope. Please verify, thanks. http://hg.netbeans.org/web-main/rev/2537abec439c
Integrated into 'main-golden', will be available in build *201212010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2537abec439c User: Tomas Mysik <tmysik@netbeans.org> Log: #210057 - global include path is not included in opened project
Still reproducible with these steps: - download IDE from ZIP archive (with ergonomics, only PHP activated) - create a new project - add something to global include path - export ALL settings to zip archive - clean userdir and run IDE again - create a new PHP project - import ZIP setting in Tools|Options (check to import ALL) - restart IDE (now for some reason IDE is closed but the process is still running; after a minute or so I killed process and started IDE again) - go to Options => Global include path is set as supposed, OK - Include Path node under the created project is empty, does not contain the global path, cc for items on global path is not working and project's include path in project properties show that Global Include path is included Product Version: NetBeans IDE Dev (Build web-main-9433-on-20121204) Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b17 System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Created attachment 128885 [details] IDE log This log is from situation when I imported setttings but restarting IDE failed
Created attachment 128886 [details] IDE log log from when I tried cc in manually started IDE after restart failed. In this time cc etc. should be working
Fixed, thanks for catching that. http://hg.netbeans.org/web-main/rev/d6706710fff3
Integrated into 'main-golden', will be available in build *201301050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d6706710fff3 User: Tomas Mysik <tmysik@netbeans.org> Log: #210057 - global include path is not included in opened project