eclipse-pdt

Open Declaration - not working in Eclipse for Zend Framework


I have tried fixing this the last 3 hours - but just can't seem to get it to work.

On my old laptop - with Zend Eclipse for PHP developers - this was working fine.

Basically in a Controller - if I click on a Model function and say "Open Declaration" - it would open the model class and show me the function - Like I would highlight "loadCourse" right click and say "Open Declaration" and this would take me to the Course.php file to function loadCourse.

$course = Model_Course::loadCourse($course_id);

In my new laptop - I started off with Eclipse Luna - it wasn't working - I tried Eclipse Helios - I know it doesn't have anything to do with the Eclipse versions. I installed all the necessary plugins from http://zend-sdk.googlecode.com/svn/trunk/eclipse-update/release/

But nothing worked

Finally I came back to installing Zend Eclipse for PHP developers - the version that was running on old laptop.

I setup the project (imported from SVN) - right clicked - Configure - Enable Zend Framework support , PHP support Nothing seems to work

When I click on Open Declaration - nothing happens.

Not sure What I am missing here Will appreciate your help thanks


Solution

  • After a night of search - I came across this eclipse forum where a user suggested to delete the folder

    Remove files under workspace/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2

    Src - http://www.eclipse.org/forums/index.php/m/1065653/?srch=dltk.core.index.sql#msg_1065653

    This did the trick for me.

    Hope it saves others time