Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Open Declaration - Text Completion
Open Declaration - Text Completion [message #74841] Fri, 04 July 2008 06:21 Go to next message
Eclipse UserFriend
Hi,

I've been using different ides to work with PHP and I've arrived to PDT
thanks to CAKE.

I have a particular problem/disappointment with PDT and is what I'll
mention here.

It is common to have an option in an IDE to open a declaration (Which is
generally closely related to code completion).
PDT has it, but it seems to be weaker than how it works in other ides like
PHPDesigner or even the eclipse plugin PHPEclipse.

This is the particular problem:
If I create an instance of a class in a file, then I can go to the
declaration of its functions and also I have code completion.
However, If I create the instance of a class (named $instance1) in the
file 'A' and the, in file 'B' I directly use the variable $instance1, I
have no code completion and also I can not open the declaration of the
class members.
As mentioned, it works in PHPDesigner and PHPEclipse to mention just two,
but I was not able to make it work using PDT.

Is there a way to have that work as in the other ides?

Thanks a lot.

[Updated on: Tue, 30 October 2012 11:52] by Moderator

Report message to a moderator

Re: Open Declaration - Text Completion [message #74858 is a reply to message #74841] Fri, 04 July 2008 07:27 Go to previous messageGo to next message
Timo Bakx is currently offline Timo BakxFriend
Messages: 2
Registered: July 2009
Junior Member
What version of PDT are you using?
And be aware that you will have to Build your project before this kind
of functionality works.

With kind regards,
Timo Bakx


> Hi,
>
> I've been using different ides to work with PHP and I've arrived to PDT
> thanks to CAKE.
>
> I have a particular problem/disappointment with PDT and is what I'll
> mention here.
>
> It is common to have an option in an IDE to open a declaration (Which
> is generally closely related to code completion).
> PDT has it, but it seems to be weaker than how it works in other ides
> like PHPDesigner or even the eclipse plugin PHPEclipse.
>
> This is the particular problem:
> If I create an instance of a class in a file, then I can go to the
> declaration of its functions and also I have code completion.
> However, If I create the instance of a class (named $instance1) in the
> file 'A' and the, in file 'B' I directly use the variable $instance1, I
> have no code completion and also I can not open the declaration of the
> class members.
> As mentioned, it works in PHPDesigner and PHPEclipse to mention just
> two, but I was not able to make it work using PDT.
>
> Is there a way to have that work as in the other ides?
>
> Thanks a lot.
>

[Updated on: Tue, 30 October 2012 11:52] by Moderator

Report message to a moderator

Re: Open Declaration - Text Completion [message #75755 is a reply to message #74858] Sat, 12 July 2008 02:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Thanks for your answer.

I have an installation that uses an two projects to work.
After building the project, some HTML errors appear and text completion
still does not works, I've tested it creating another project and works
ok. Might there be something else I'm missing?

Thanks again



Timo Bakx wrote:

> What version of PDT are you using?
> And be aware that you will have to Build your project before this kind
> of functionality works.

> With kind regards,
> Timo Bakx



>> Hi,
>>
>> I've been using different ides to work with PHP and I've arrived to PDT
>> thanks to CAKE.
>>
>> I have a particular problem/disappointment with PDT and is what I'll
>> mention here.
>>
>> It is common to have an option in an IDE to open a declaration (Which
>> is generally closely related to code completion).
>> PDT has it, but it seems to be weaker than how it works in other ides
>> like PHPDesigner or even the eclipse plugin PHPEclipse.
>>
>> This is the particular problem:
>> If I create an instance of a class in a file, then I can go to the
>> declaration of its functions and also I have code completion.
>> However, If I create the instance of a class (named $instance1) in the
>> file 'A' and the, in file 'B' I directly use the variable $instance1, I
>> have no code completion and also I can not open the declaration of the
>> class members.
>> As mentioned, it works in PHPDesigner and PHPEclipse to mention just
>> two, but I was not able to make it work using PDT.
>>
>> Is there a way to have that work as in the other ides?
>>
>> Thanks a lot.
>>
>>
>>

[Updated on: Tue, 30 October 2012 11:53] by Moderator

Report message to a moderator

Re: Open Declaration - Text Completion [message #75791 is a reply to message #75755] Sat, 12 July 2008 11:19 Go to previous messageGo to next message
Eclipse UserFriend
You may be interested in
< http://wiki.eclipse.org/IRC_FAQ#How_do_I_manually_assign_a_p roject_Nature_or_BuildCommand.3F>


> Hi,
>
> Thanks for your answer.
>
> I have an installation that uses an two projects to work.
> After building the project, some HTML errors appear and text completion
> still does not works, I've tested it creating another project and works
> ok. Might there be something else I'm missing?
>
> Thanks again
>
>
>
> Timo Bakx wrote:
>
>> Hi Martin,
>
>> What version of PDT are you using?
And still this is a quite relevant question.
>> And be aware that you will have to Build your project before this kind
>> of functionality works.
>
>> With kind regards,
>> Timo Bakx
>
>
>>> Hi,
>>>
>>> I've been using different ides to work with PHP and I've arrived to
>>> PDT thanks to CAKE.
>>>
>>> I have a particular problem/disappointment with PDT and is what I'll
>>> mention here.
>>>
>>> It is common to have an option in an IDE to open a declaration (Which
>>> is generally closely related to code completion).
>>> PDT has it, but it seems to be weaker than how it works in other ides
>>> like PHPDesigner or even the eclipse plugin PHPEclipse.
>>>
>>> This is the particular problem:
>>> If I create an instance of a class in a file, then I can go to the
>>> declaration of its functions and also I have code completion.
>>> However, If I create the instance of a class (named $instance1) in
>>> the file 'A' and the, in file 'B' I directly use the variable
>>> $instance1, I have no code completion and also I can not open the
>>> declaration of the class members.
>>> As mentioned, it works in PHPDesigner and PHPEclipse to mention just
>>> two, but I was not able to make it work using PDT.
>>>
>>> Is there a way to have that work as in the other ides?
>>>
>>> Thanks a lot.
>>>
>>>
>>>
>
>
>

--
Stoyan

[Updated on: Tue, 30 October 2012 11:54] by Moderator

Report message to a moderator

Re: Open Declaration - Text Completion [message #75841 is a reply to message #75791] Mon, 14 July 2008 00:05 Go to previous messageGo to next message
David Muir is currently offline David MuirFriend
Messages: 63
Registered: July 2009
Member
Open Declaration and code completion is somewhat broken. Supposedly open
declaration has now been fixed in the latest nightly, and code completion
will be fixed as soon as dltk is updated.
Re: Open Declaration - Text Completion [message #75857 is a reply to message #75841] Mon, 14 July 2008 01:28 Go to previous message
David Muir is currently offline David MuirFriend
Messages: 63
Registered: July 2009
Member
Just tried the latest nightly, and open declaration does work.
I found you need to clean your project first to get it working.
(Project->Clean..)
Previous Topic:no junit test results & no known issues
Next Topic:syntax error, unexpected 'version'
Goto Forum:
  


Current Time: Thu Apr 25 00:47:17 GMT 2024

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

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

Back to the top