Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get Symfony2 Eclipse plugin working

I normally use PHPStorm for development, however I have noticed http://symfony.dubture.com/ plugin for eclipse that looks like it would make symfony2 development much more easy. So I wanted to give it a try.

However I for the life of me cannot get it working.

I have never used eclipse before, but here is the entire process I have gone through

  1. Download eclipse (latest version of eclipse classic juno)
  2. Install the symfony2 plugin (p2.dubture.com)
  3. install eclipse web development plugin
  4. Switch to PHP Perspective
  5. Create symfony project at existing location
  6. Enable javascript support
  7. Enable twig support
  8. Enable doctrine support
  9. PHP Build path is correctly set as according to the FAQ on the site

I let the DLTK finish indexing my project.

I open one of my twig views, and no code assist at all. {{path(' brings up nothing {% block brings up nothing {% extends brings up nothing, etc. I do have twig syntax highlighting so I know part of it is there.

Now, I go to one of my controllers and type in $product = $this->getDoctrine()->getRepository("

This does bring up code assitance and lists all the available bundles. So I select my bundles, but none of my entities appear, all it says is "No default proposals" I do get code assist for $this->get("

If I rightclick on my project, go to properties, go to builders Doctrine, Symfony, Validation, Script Builder are all present and checked.. Do not see an entry for twig though.

Here is a pastebin of my eclipse log http://pastebin.com/CA76YvKf

I have tried cleaning the projects, repeatedly starting my entire process over and over again, even on different machines and always this exact same results

I know a lot of people are using it, so I must just be doing something wrong.. If anyone here has any suggestions that would be great.

like image 683
Kris Avatar asked Nov 12 '22 22:11

Kris


1 Answers

The way I do:

  • download eclipse (juno)
  • install pdt for eclipse (http://wiki.eclipse.org/PDT/Installation_3.1.x) // as you can see: 'PHP Development Tools (PDT) Runtime Feature' under 'PHP Development Tools'
  • create php project
  • contextual menu on the project > configure > add php support
  • install the symfony2 plugin (p2.dubture.com)
  • contextual menu on the project > configure > convert to symfony project

hope this helps.

like image 89
hosseio Avatar answered Nov 15 '22 11:11

hosseio