Eclipse PDT(helios)自动补全

问题描述 投票:2回答:2

我刚刚完成了新的日蚀日光灯的安装,我想知道为什么自动补全无法正常工作;在我的旧版本(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]

...自动补全根本不起作用。这两种情况在我以前的版本中都很好用。那怎么了我是否配置错误?

autocomplete eclipse-pdt eclipse-3.6
2个回答
0
投票

在Mac上运行正常。它同时显示setA和setB

在bugzilla中发布错误报告

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


0
投票

事实证明,我使用的版本存在错误。 Eclipse 3.7.2再次正常运行。

© www.soinside.com 2019 - 2024. All rights reserved.