Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Remote System Explorer + Include Path
Remote System Explorer + Include Path [message #65319] Wed, 30 January 2008 16:26 Go to next message
Eclipse UserFriend
Originally posted by: filipe.f.carvalho.gmail.com

Hello,

I've already a ongoing PHP project and I've started to use PDT to
continue the work.

I've installed Remote System Explorer (the files are in a remote
server by ssh/sftp).

I've configure RSE to the remote server and choosing the remote
directory I have done "Create Remote Project".

Because Eclipse doesn't recognize as PHP project I've change
..project file to:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MyProj</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name >
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
</natures>
</projectDescription>

But now, when I try to add himself to the include path I don't have
nothing to add.

In this screen cast (http://www.screencast.com/t/IpKZCZYPlme) it's
possible.

I'm using PDT version 1.0.2.v20080102 and RSE SSH Services Version:
2.0.1.v20070926 in Eclipse M20071023-1652.

Someone can help me?

Thanks

Filipe Carvalho
Re: Remote System Explorer + Include Path [message #65429 is a reply to message #65319] Thu, 31 January 2008 14:40 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Adding a nature and build command is probably not enough. For example on my system a very simple php
project has a .settings and .cache directory. The .settings directory has a file called
org.eclipse.php.core.projectOptions.prefs

You could trying copying one from an empty php project and see if that helps

Dave Kelsey


Filipe Carvalho wrote:
>
>
> Hello,
>
> I've already a ongoing PHP project and I've started to use PDT to
> continue the work.
>
> I've installed Remote System Explorer (the files are in a remote
> server by ssh/sftp).
>
> I've configure RSE to the remote server and choosing the remote
> directory I have done "Create Remote Project".
>
> Because Eclipse doesn't recognize as PHP project I've change
> .project file to:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
> <name>MyProj</name>
> <comment></comment>
> <projects>
> </projects>
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name >
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.wst.validation.validationbuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> </buildSpec>
> <natures>
> <nature>org.eclipse.php.core.PHPNature</nature>
> </natures>
> </projectDescription>
>
> But now, when I try to add himself to the include path I don't have
> nothing to add.
>
> In this screen cast (http://www.screencast.com/t/IpKZCZYPlme) it's
> possible.
>
> I'm using PDT version 1.0.2.v20080102 and RSE SSH Services Version:
> 2.0.1.v20070926 in Eclipse M20071023-1652.
>
> Someone can help me?
>
> Thanks
>
> Filipe Carvalho
>
Re: Remote System Explorer + Include Path [message #65450 is a reply to message #65429] Thu, 31 January 2008 16:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: filipe.f.carvalho.gmail.com

Either in the present or a fresh new installation* I've the same
problem. I never see the project himself in the include path... only the
other php projects created.

In a fresh project org.eclipse.php.core.projectOptions.prefs contains:

$ cat org.eclipse.php.core.projectOptions.prefs
#Thu Jan 31 15:19:28 GMT 2008
eclipse.preferences.version=1
org.eclipse.php.core.contextRoot=
org.eclipse.php.core.defaultEncoding=
org.eclipse.php.core.includePath=<?xml version\="1.0"
encoding\="UTF-8"?>\r\n<includepath>\r\n</includepath>\r\n

In my php project... I've already try to trick eclipse with no sucess :(

#Wed Jan 30 16:37:07 GMT 2008
eclipse.preferences.version=1
org.eclipse.php.core.includePath=<?xml version\="1.0"
encoding\="UTF-8"?>\r\n<includepath>\r\n\t<includepathentry
createdReference\="true" resource\="MyProj" path\="/MyProj"
contentKind\="source"
kind\="prj">\r\n</includepathentry>\r\n</includepath>\r\n

Thanks for your help

Regards,

Filipe Carvalho

* eclipse-platform-3.3.1.1-win32 + Software Updates (PDT update site +
Europa Discover Site)

Dave Kelsey wrote:
> Adding a nature and build command is probably not enough. For example on
> my system a very simple php project has a .settings and .cache
> directory. The .settings directory has a file called
> org.eclipse.php.core.projectOptions.prefs
>
> You could trying copying one from an empty php project and see if that
> helps
>
> Dave Kelsey
Re: Remote System Explorer + Include Path [message #65495 is a reply to message #65319] Fri, 01 February 2008 00:00 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Did you Refresh(press F5) the project?

(I'm not using RSE though)
Re: Remote System Explorer + Include Path [message #65516 is a reply to message #65495] Fri, 01 February 2008 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: filipe.f.carvalho.gmail.com

When I open a project, I've always to refresh to be able to see the files.

Toshihiro wrote:
> Did you Refresh(press F5) the project?
>
> (I'm not using RSE though)
>
>
Re: Remote System Explorer + Include Path [message #65555 is a reply to message #65516] Fri, 01 February 2008 14:06 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
No problem on WindowsXP(PDT1.0.2,RSE2.0.2(SSH2.0.1))) - ssh - Ubuntu.
Rewriting ".project" and refreshing folder/project makes the project as a
PHP project. It works well - it can be added in Include Paths under the
other projects.

>But now, when I try to add himself to the include path I don't have nothing
to add.
Maybe I missed 'himself'? not-nothing?
Previous Topic:Project include paths seems broken
Next Topic:Problem with XDebug and breakpoints.
Goto Forum:
  


Current Time: Thu Dec 26 23:58:36 GMT 2024

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

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

Back to the top