[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.pdt] Re: Hyperlinking source files
|
This is a little bit tricky... PDT includes search mechanism works like
PHP's one does:
Files for including are first looked for in each include_path entry relative
to the current working directory, and then in the directory of current
script. E.g. if your include_path is libraries, current working directory is
/www/, you included include/a.php and there is include "b.php" in that file,
b.php is first looked in /www/libraries/ and then in /www/include/. If
filename begins with ./ or ../, it is looked only in the current working
directory.
We suppose in PDT, that current working directory will be the Project root,
therefore the file could not be found.
I guess we can change this to the script directory (parent directory of
current script).
I've fixed this bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=258260)
in CVS and 2.0.1 branch.
Best regards,
<rapkasta@xxxxxxxxx> wrote in message
news:op.undprrx1pszu1d@xxxxxxxxxxxxxxxxxxxxxxxx
>> When staying on "test.php" and pressing CTRL - it hyperlinks. When
>> clicking
>> on it - test.php is opened in a new editor.
>> What am I doing wrong? :)
> Shit, shit....hags...
> I do it now, and it's really work, but in my real project files placed in
> different directory, and in this tree:
> ~~~~~~
> -directory
> +++second.php
> first.php
> ~~~~~~~~~
> and in second.php:
> <?php
> include "../first.php";
> ?>
>
> hyperlinking doesn't work!
>
> But if i place second.php in directory, where first.php placed and write
> "include 'first.php'" hyperlinking work!