Code Assist: completion and subnamespaces bug? [message #99161] |
Fri, 26 June 2009 11:54  |
Eclipse User |
|
|
|
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? :(
|
|
|
|
Powered by
FUDForum. Page generated in 0.03051 seconds