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 246083 - Autocomplete suggests methods from a different project
Summary: Autocomplete suggests methods from a different project
Status: RESOLVED DUPLICATE of bug 245880
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 8.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 04:18 UTC by TheTechFan
Modified: 2014-07-29 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (44.01 KB, text/plain)
2014-07-29 04:18 UTC, TheTechFan
Details
Screenshot of duplicate suggestions (17.81 KB, image/png)
2014-07-29 04:27 UTC, TheTechFan
Details
Possible patch (634 bytes, patch)
2014-07-29 12:25 UTC, Ondrej Brejla
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TheTechFan 2014-07-29 04:18:09 UTC
Product Version = NetBeans IDE Dev (Build 201407280405)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0_11
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.11-b03

I have two PHP projects open, both of which happen to contain a copy of the same class (in different folders). When I start typing the class name in one project, I see duplicate suggestions for each method (one from each project). If I close one of the projects the duplicates go away. I expected that Netbeans would only show suggestions from the current project.
Comment 1 TheTechFan 2014-07-29 04:18:12 UTC
Created attachment 148369 [details]
IDE log
Comment 2 TheTechFan 2014-07-29 04:27:23 UTC
Created attachment 148370 [details]
Screenshot of duplicate suggestions

The first `getErrors()` suggestions is from my other open project and shouldn't be shown. The second suggestion is from the current project.
Comment 3 Tomas Mysik 2014-07-29 06:53:17 UTC
Please evaluate, thanks.
Comment 4 Ondrej Brejla 2014-07-29 12:25:11 UTC
Created attachment 148382 [details]
Possible patch
Comment 5 Ondrej Brejla 2014-07-29 12:26:06 UTC
Imho regression caused by this change in parsing.api http://hg.netbeans.org/web-main/rev/6b0e99ea2677

Imho there is a mistake in QuerySupport:135, imho there should be "f" instead of "null".

If I change it, then it works properly.

Tome, am I right? Please, evaluate, thanks.
Comment 6 Tomas Zezula 2014-07-29 13:51:28 UTC
Yes, however it's already fixed for a week.
Unfortunately the jet-main builder as broken, so it's not yet merged.

*** This bug has been marked as a duplicate of bug 245880 ***