Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Code Assist: completion and subnamespaces bug?
Code Assist: completion and subnamespaces bug? [message #99161] Fri, 26 June 2009 15:54 Go to next message
Sven Arduwie is currently offline Sven ArduwieFriend
Messages: 1
Registered: July 2009
Junior Member
Hello everyone,

I was about to file this as a bug but I would like a second opinion before
I do so.

I have 3 cases of which one does not work in pdt:

Case 1:
<?php
class Test {
public $test;

public function test() {
return $this->test; // No problem.
}
}
?>
Hitting CTRL+Space after $this-> shows both method test() and property
$test.

Case 2:
<?php
namespace TopLevelNamespace {
class Test {
public $test;

public function test() {
return $this->test; // Again, no problem.
}
}
}
?>
Works just as well.

But case 3:
<?php
namespace TopLevelNamespace\ThisIsWereItGoesWrong {
class Test {
public $test;

public function test() {
return $this-> // CTRL+Space: No completions available.
}
}
}
?>
Hitting CTRL+Space after having types $this-> in this case, Eclipse tells
me there are 'No completions available'.

Both the 'simple' and 'bracketed' (
http://be.php.net/manual/en/language.namespaces.definitionmu ltiple.php )
namespace syntax suffer the same problem.

My pdt is (as shown in Help > About Eclipse > Installation Details >
Installed Software):
Eclipse IDE for PHP Developers 1.2.0.20090618-0925 epp.package.php
(I don't know if that information pertains to pdt, or Eclipse itself? The
Installation Details window is a maze!)
Here's what I found under Help > About Eclipse > Installation Details >
Configuration and think may be relevant:
org.eclipse.php (2.1.0.v20090613-1236-7L79-F8NcJKhKDUv9Y7en) "PDT Plug-in"
org.eclipse.php.source (2.1.0.v20090613-1236-7L79-F8NcJKhKDUv9Y7en)
"pluginName"

I tried searching Google for this bug but have had no luck so far. Should
I file it as a bug?

Also, if this is a known problem, has anyone got a workaround? :(
Re: Code Assist: completion and subnamespaces bug? [message #99411 is a reply to message #99161] Tue, 30 June 2009 14:32 Go to previous message
Martin Eisengardt is currently offline Martin EisengardtFriend
Messages: 9
Registered: July 2009
Junior Member
Have a look at these bugs:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=275540
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281766
https://bugs.eclipse.org/bugs/show_bug.cgi?id=274322
https://bugs.eclipse.org/bugs/show_bug.cgi?id=268312
(and there are some others that were reported before).

The CA still does not work with most situations regarding sub-namespaces.
But some use cases using non-qualified namespaces or namespace aliases
(use statement) will work!

I got a look in the sources last weekend and as soon as I get the time I
will try to debug eclipse. Maybe some of the pdt team is happy to get a
patch in the mailing list ;)
But maybe someone is currently working on this issues. Or maybe it is even
fixed in CVS.
Anyone that could give us some input?
Previous Topic:Question PDT2.1 Auto Completion for PHP5.3
Next Topic:[Announce] PDT 2.1.0 is available
Goto Forum:
  


Current Time: Tue Nov 12 03:18:56 GMT 2024

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

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

Back to the top