Bug 289326 - enhancement request - global include_path for eclipse pdt (php)
Summary: enhancement request - global include_path for eclipse pdt (php)
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2009-09-14 04:54 EDT by scott quakkelaar CLA
Modified: 2020-05-14 10:17 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description scott quakkelaar CLA 2009-09-14 04:54:24 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: 20090621-0832

Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=288809 for background information.

there may be certain library paths (include_path) that i use for all my development projects, what i will call global includes.  i have these specified in the include_path in my php.ini file.
;***** Added by go-pear
; appended by me
include_path = ".;C:\Program Files\PHP\pear;C:\Program Files\PHP\smarty\libs"
;*****

eclipse pdt picks up my php.ini file, but replaces the include_path with another that includes only . and the workspace directory:
include_path=".;F:\data\apache\html\workspace.3.5\smarty"

rather than add these global includes manually to the include_path for each and every project individually, i would request one of the following:
1) the eclipse php.ini file appends the include_path that's specified in my php.ini file, rather than completely overwrite the include_path.
2) another way to specify global includes.


Reproducible: Always
Comment 1 scott quakkelaar CLA 2009-09-14 04:58:58 EDT
added additional user and link to related 'bug'.
Comment 2 matsufuji Mising name CLA 2009-12-05 07:08:42 EST
I also think that the PHP execution environment of the PDT should be able to used the include_path of php.ini.
However, I might want a path-environment independent of php.ini. Therefore, a user will be able to select it.

I have developed "MakeGood". This product is a test runner for doing Test Driven Development with PDT.

http://redmine.piece-framework.com/projects/show/makegood

At MakeGood, you can use the include_path of php.ini. MakeGood has extended the PDT by using AOP (Javassist).
The include_path of php.ini is abstractly expressed in [The System Include Path]. And, when executing PHP, it reads the include_path in php.ini, and it deploys to temporary php.ini.

Please refer to following URI for the usage:

http://redmine.piece-framework.com/wiki/makegood/En_InstallationAndConfigurationGuide#Using-the-system-include-path

MakeGood is a open source software (EPL) and has opened on GitHub.

git clone git://github.com/piece/makegood.git

The plug-ins (fragments) that extends PDT are as follows:

com.piece_framework.makegood.aspect.include_path
com.piece_framework.makegood.javassist
com.piece_framework.makegood.aspect.include_path_protection
com.piece_framework.makegood.aspect.include_path_search
com.piece_framework.makegood.aspect.include_path_settings

To our regret, MakeGood corresponds only to the PHP execution. I hope for PDT to take this feature, and to adapt to the code completion etc.
Comment 3 Roy Ganor CLA 2009-12-05 09:13:42 EST
Hi, 
we have just created the pdt-incubator to Eclipse projects as a sub project of PDT.
Would you consider joining this project to the Eclipse repository and share this with the Eclipse community?
Of course you will be continue to be responsible for this plugins.

Thanks for sharing this,