0

I'm using NetBeans 8.1 RC2 for a php project.

I have this project stored in ~/ide/netbeans/workspace/myproject/. This directory contains the nbproject directory and a symlink to the sourcecode in /var/www/myproject. In this project, there is also a symlink ./source/vendor/tueena, that targets to /var/www/tueena.

So the file structure is like this:

ls -la ~/ide/netbeans/workspace/myproject
... .
... ..
... nbproject
... myproject -> /var/www/myproject

ls -la /var/www/myproject/source/vendor
... .
... ..
... autoload.php
... composer
... tueena -> ../../tueena

When I put the following file into ~/ide/netbeans/workspace/myproject, or /var/www/myproject/somewherehere, then NetBeans tells me, that IFoo doesn't implement Foo:

<?php

interface IFoo
{
    public function xyz();
}

class Foo implements IFoo
{

}

But when I move the file into /var/www/tueena/core/source/ for example, then it tells me only two PSR-1 violations, but not, that there is missing a method implementation, that is defined in the interface. Does NetBeans only follow one symlink?

4

1 回答 1

0

我可以解决它。问题不是符号链接,而是库也有一个nbproject目录。删除后问题依旧没有解决。我不得不从我的项目文件夹中删除project.properties一行nbproject。我不记得该物业的名称,但如果您遇到同样的问题,您会找到它。

于 2015-11-11T15:33:41.153 回答