This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 156211 - hyperlink navigation doesn't work in files from included paths
Summary: hyperlink navigation doesn't work in files from included paths
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-01 14:09 UTC by anli
Modified: 2009-02-19 22:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
tiny test case (3.07 KB, application/octet-stream)
2009-01-17 17:30 UTC, anli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anli 2009-01-01 14:09:18 UTC
More strictly, for files from included paths hyperlink navigation (or Ctrl-B) works in current opened file scope only.
If, say, learning new big external library (say, this or that framework), the issue limits learning course (and, as a
result, PHP IDE support usefulness) significantly.

Please, reduce down to P3 if P2 is just my opinion :-)
Comment 1 anli 2009-01-01 14:37:47 UTC
Just want to add, current Hudson NetBeans-dev-2008-12-31_07-07-46.zip build has the issue also.
Comment 2 rmatous 2009-01-14 16:23:23 UTC
This issue seems to be more project specific than editor issue. 

Files in include path are not part of the project because (FOQ.getOwner|ClassPath.getClassPath return null for such a
file) thus root of include path isn't among indexed roots that should be looked up when e.g.class name is asked to be
found in index and if not found in index then no idx based features can work.

Comment 3 Tomas Mysik 2009-01-15 16:09:50 UTC
Radek is currently looking into it. Thanks.
Comment 4 rmatous 2009-01-15 16:39:59 UTC
http://hg.netbeans.org/main/rev/c5f113fb8c57

Should have been fixed
Comment 5 Quality Engineering 2009-01-16 07:28:35 UTC
Integrated into 'main-golden', will be available in build *200901160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c5f113fb8c57
User: Radek Matous <rmatous@netbeans.org>
Log: #156211 hyperlink navigation doesn't work in files from included paths
Comment 6 anli 2009-01-17 09:09:42 UTC
Have tried the fix with trivial three classes test case: a class in project (a navigation to included class does work),
and two classes in included path. The navigation doesn't work between included classes.
Comment 7 anli 2009-01-17 09:11:30 UTC
Well, Hudson 9725 build was used to try to verify the fix.
Comment 8 rmatous 2009-01-17 17:16:28 UTC
It worked for me, else I wouldn't close it as fixed. For example I played with php unit on linux, those php unit classes
were under /user/share/php, which I added into include path and I was able to navigate from sources into php unit
classes and also investigate php unit by jumping more and more deep into it. 

So, if you are sure, that it doesn't work for you, then please reopen and describe a little your configuration.

Tomas, please could you briefly try to reproduce, thanks
Comment 9 anli 2009-01-17 17:29:22 UTC
I'll attach tiny project. Try to navigate from Class3 to Class1.
Comment 10 anli 2009-01-17 17:30:09 UTC
Created attachment 75932 [details]
tiny test case
Comment 11 rmatous 2009-01-18 09:40:11 UTC
thanks, great, really still buggy
Comment 12 rmatous 2009-01-19 14:26:19 UTC
So, hopefully fixed now. Attached use case works for me now. Please, verify, thanks
http://hg.netbeans.org/main/rev/bfa8f8e40960
Comment 13 anli 2009-01-19 17:39:25 UTC
Great! - have verified. Thanks!
Comment 14 Quality Engineering 2009-01-20 07:30:51 UTC
Integrated into 'main-golden', will be available in build *200901200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/bfa8f8e40960
User: Radek Matous <rmatous@netbeans.org>
Log: #156211 hyperlink navigation doesn't work in files from included paths