Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT 2.1.0 @var autocomplete not working
PDT 2.1.0 @var autocomplete not working [message #91062] Tue, 20 January 2009 14:42 Go to next message
Frantisek Troster is currently offline Frantisek TrosterFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

as of PDT 2.0 the ability to force a variable type with @var stopped
working for me:

/* @var $action ivExtjsActions */
$action->

the code above worked fine in PDT 1, but now all I get is No completions
available. Was the PHPDoc code changed? I tried to search the newsgroups,
but couldn't find anybody mentioning this feature in the new PDT 2 version.

Other PHPDoc tags work fine (@param, @return etc.). Any help would be
appreciated.
Re: PDT 2.1.0 @var autocomplete not working [message #91077 is a reply to message #91062] Tue, 20 January 2009 15:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.mark-kirchner.de

Hi,

Frantisek Troster schrieb:
> as of PDT 2.0 the ability to force a variable type with @var stopped
> working for me:
>
> /* @var $action ivExtjsActions */
> $action->

There are various bugzilla-entries dealing with this. For example, see

https://bugs.eclipse.org/bugs/show_bug.cgi?id=238505

or

https://bugs.eclipse.org/bugs/show_bug.cgi?id=260330

The "workaround" mentioned in bug 238505 (comment no. 6) works like this:

/* @var $action ivExtjsActions */
$action = $action;
$action->

Which seems to be quite ... well, let's say ... sub-optimal.

Regards,
Mark
Re: PDT 2.1.0 @var autocomplete not working [message #91092 is a reply to message #91077] Tue, 20 January 2009 15:48 Go to previous message
Frantisek Troster is currently offline Frantisek TrosterFriend
Messages: 2
Registered: July 2009
Junior Member
Mark Kirchner wrote:

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=238505

> or

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=260330

> The "workaround" mentioned in bug 238505 (comment no. 6) works like this:

> /* @var $action ivExtjsActions */
> $action = $action;
> $action->

> Which seems to be quite ... well, let's say ... sub-optimal.

> Regards,
> Mark

Thanks a lot for your help, it works now. Not ideal solution, but i've got
my code completion working :-)

--ft
Previous Topic:PDT 2.0.1
Next Topic:Happy development with Eclipse PDT 2.0
Goto Forum:
  


Current Time: Fri Apr 26 22:43:45 GMT 2024

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

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

Back to the top