Using PEAR in phpEclipse

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
sasquatch
Forum Newbie
Posts: 5
Joined: Sun Jan 14, 2007 4:08 pm

Using PEAR in phpEclipse

Post by sasquatch »

Hey all

I've just (finally :P ) configured eclipse with phpEclipse. I've got all the plugins and debugger working fine. The only aspect that's troubling me is trying to get code complete (autocomplete / intellisense / etc) to work with pear packages.

My pear directory is at c:/xampp/php/pear and in my Project Defaults i have set an include path to this value. It is working (requires and includes are not throwing any errors) but there is no sign of code completion (set to activate at 200ms, also tried ctrl & space).

I'm running phpEclipse 1.19 on eclipse 3.2.1 on windows XP.

Anyone using pear in phpEclipse? I'd love to know how you do it.


8)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I have never used pear, but I think that you might need the packages inside the project, or at least visible to the project in the PHP perspective. My code completion includes vars from all of the files in the current perspective.
sasquatch
Forum Newbie
Posts: 5
Joined: Sun Jan 14, 2007 4:08 pm

Post by sasquatch »

Everah wrote:I have never used pear, but I think that you might need the packages inside the project, or at least visible to the project in the PHP perspective. My code completion includes vars from all of the files in the current perspective.
Thanks for your reply 8)

My code complete does work fine, except it's giving me nothing for files outside of the defined workspace directory structure.

Yes it seems the only solution is to have all my files as part of the project :x Isn't that a maintenance nightmare? For instance, i have my framework, savant, mdb2, simpletest etc all in my pear directory simply so that all my projects have easy access to it and there's one place to make updates. So i have to copy these packages to a directory within each project? :x :x How do you deal with it?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I literally mock my production server setup on my local server so when it is time to push to production, everything is laid out exactly the same. I know it may seem inefficient, but I always know what is in each application by looking at the application structure that way.
sasquatch
Forum Newbie
Posts: 5
Joined: Sun Jan 14, 2007 4:08 pm

Post by sasquatch »

ok, thanks for your time 8)
Post Reply