Eclipse PDT(helios)自动完成

发布于 2024-09-19 18:51:00 字数 759 浏览 2 评论 0原文

我刚刚完成了新的 eclipse helios 安装,我想知道为什么自动完成功能无法正常工作;在我的旧版本(ganymede/galileo)中是这样。

它适用于简单的函数和类方法,但是:

  • 它不知道从其他类继承的方法
  • 它不会显示返回 $this 的链式方法的自动完成功能。

例如:

class y
{
    protected $_a;

    public function setA($a)
    {
        $this->_a = $a;
        return $this;
    }
}

class x extends y
{
    protected $_b;

    public function setB($b)
    {
        $this->_b = $b;
        return $this;
    }
}

$x = new x;
$x->[AUTOCOMPLETION]

这里[AUTOCOMPLETION]只显示了x中直接实现的方法,而不显示y中的方法。

当我这样做时:

$x->setB(123)
  ->[AUTOCOMPLETION]

...自动完成根本不起作用。这两种情况在我以前的版本中都表现得很好。那么出了什么问题呢?我是否配置错误?

I've just completed a new eclipse helios install and I am wondering why the autocompletion is not working properly; in my older versions (ganymede/galileo) it was.

It's working for simple functions and class-methods but:

  • It doesn't know methods which have been inherited from other classes
  • It won't show autocompletion for chained methods which return $this.

For instance:

class y
{
    protected $_a;

    public function setA($a)
    {
        $this->_a = $a;
        return $this;
    }
}

class x extends y
{
    protected $_b;

    public function setB($b)
    {
        $this->_b = $b;
        return $this;
    }
}

$x = new x;
$x->[AUTOCOMPLETION]

Here [AUTOCOMPLETION] only shows the methods directly implemented in x, but not the methods of y.

When I do:

$x->setB(123)
  ->[AUTOCOMPLETION]

...the autocompletion doesn't work at all. Both of these cases worked great in my previous versions. So what's wrong? Did I mis-configure something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不必了 2024-09-26 18:51:00

在 Mac 上工作正常。它显示了 setA 和 setB

在 bugzilla 中发布错误报告

https://bugs.eclipse .org/bugs/enter_bug.cgi?product=PDT

work ok on Mac. it shows both setA and setB

Post a bug report in bugzilla

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT

醉殇 2024-09-26 18:51:00

原来我使用的版本有bug。 Eclipse 3.7.2 再次正常工作。

it turned out that the version I was using was bugged. Eclipse 3.7.2 works fine again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文