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 210057 - global include path is not included in opened project
Summary: global include path is not included in opened project
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-25 15:29 UTC by mrpc
Modified: 2013-01-05 02:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot after install (nothing shown in the project include path) (186.26 KB, image/png)
2012-03-26 16:03 UTC, mrpc
Details
How it should be (it works if i remove and re-insert include path in settings) (13.91 KB, image/png)
2012-03-26 16:04 UTC, mrpc
Details
IDE log (58.72 KB, text/x-log)
2012-12-05 12:01 UTC, Vladimir Riha
Details
IDE log (44.04 KB, text/x-log)
2012-12-05 12:02 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrpc 2012-03-25 15:29:34 UTC
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
Comment 1 Tomas Mysik 2012-03-26 07:04:50 UTC
(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.
Comment 2 mrpc 2012-03-26 16:02:28 UTC
(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 :)
Comment 3 mrpc 2012-03-26 16:03:40 UTC
Created attachment 117268 [details]
Screenshot after install (nothing shown in the project include path)
Comment 4 mrpc 2012-03-26 16:04:23 UTC
Created attachment 117269 [details]
How it should be (it works if i remove and re-insert include path in settings)
Comment 5 Tomas Mysik 2012-03-27 13:46:44 UTC
Will look at it.

Thanks.
Comment 6 Tomas Mysik 2012-03-29 12:37:35 UTC
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.
Comment 7 jersin 2012-08-06 08:38:18 UTC
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}
Comment 8 Tomas Mysik 2012-11-30 10:51:33 UTC
Should be fixed now I hope. Please verify, thanks.

http://hg.netbeans.org/web-main/rev/2537abec439c
Comment 9 Quality Engineering 2012-12-01 02:56:03 UTC
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
Comment 10 Vladimir Riha 2012-12-05 11:58:23 UTC
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)
Comment 11 Vladimir Riha 2012-12-05 12:01:05 UTC
Created attachment 128885 [details]
IDE log

This log is from situation when I imported setttings but restarting IDE failed
Comment 12 Vladimir Riha 2012-12-05 12:02:11 UTC
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
Comment 13 Tomas Mysik 2013-01-04 09:08:24 UTC
Fixed, thanks for catching that.

http://hg.netbeans.org/web-main/rev/d6706710fff3
Comment 14 Quality Engineering 2013-01-05 02:32:10 UTC
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