Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Using Eclipse on an already existing PHP project(Problem with setting up)
Using Eclipse on an already existing PHP project [message #648252] Tue, 11 January 2011 22:59 Go to next message
Eclipse UserFriend
Hello all,

I recently installed Eclipse as I would like to try it out as an IDE for working with PHP files. I want to use it to work with an already existing project that consits of a couple hundred files. I tried to do this and have run into a problem.

When I started Eclipse I just selected the default workspace directory under my home folder as the workspace. Once the IDE started I went to new->project->PHP project. From the next screen I named the project and choose "create project at existing location from existing source". I pointed towards my projects root direcotry and clicked finish.

The IDE proceeded to add files to my projects root and once it finished loading I found I had lots of warnings under the problems tab. Most of these warnings were from Eclipse files that the IDE added to the project itself under the .metadata/plugins direcotry.

The fact that I am getting these warnings suggests to me that I am doing something incorrectly here.

Could someone tell me the proper way to use Eclipse with an already existing setup? Is it necessary for it to add files to the project like that? It's version controlled so I don't want to add allot of extra things to the project, noone else is using Eclipse. I could just tell the version control software to just ignore the directories eclipse added so it's not a huge issue.

I feel silly having to ask this question but I want to make sure I am doing things correctly here. The documentation talks allot about strarting a project from scratch but I am unsure the best way to incorporate an existing project into the IDE.

Any help anyone could give me would be very much appreciated. Thank you very much.
Re: Using Eclipse on an already existing PHP project [message #667691 is a reply to message #648252] Sun, 01 May 2011 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
Did you get an answer about your issue ?
I have got the same probleme as you.
Re: Using Eclipse on an already existing PHP project [message #674825 is a reply to message #667691] Sat, 28 May 2011 14:39 Go to previous messageGo to next message
Eclipse UserFriend
What are the warnings? Maybe post some of them as examples?

[Updated on: Sat, 28 May 2011 14:39] by Moderator

Re: Using Eclipse on an already existing PHP project [message #674970 is a reply to message #648252] Sun, 29 May 2011 17:23 Go to previous message
Eclipse UserFriend
The solution to this issue will probably depend on the warnings you are getting. The warnings are often based on the source code parsing capabilities of Eclipse PDT and this source code parsing can be thrown off by partial HTML in templates, among other things. I recall working on a large project where dozens of files had warnings (even some with the Red X) but the project ran just fine.

I think the bottom line is that Eclipse PDT may report problems with files which run just fine so it's not perfect. On the other hand, there's probably a way to structure your code using Eclipse that doesn't result in those errors.

Previous Topic:Eclipse-PHP_Codesniffer integration
Next Topic:html shortcut plugin
Goto Forum:
  


Current Time: Thu Apr 17 12:16:34 EDT 2025

Powered by FUDForum. Page generated in 0.06447 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top