Page 1 of 1

Using PEAR in phpEclipse

Posted: Sun Jan 14, 2007 4:23 pm
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)

Posted: Mon Jan 15, 2007 8:26 pm
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.

Posted: Tue Jan 16, 2007 8:16 am
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?

Posted: Tue Jan 16, 2007 10:13 am
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.

Posted: Tue Jan 16, 2007 12:39 pm
by sasquatch
ok, thanks for your time 8)