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 257005 - CTRL Space and CTRL Click don't work properly anymore
Summary: CTRL Space and CTRL Click don't work properly anymore
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 8
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-06 10:26 UTC by zmirc
Modified: 2016-01-18 09:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zmirc 2015-12-06 10:26:18 UTC
Product Version = NetBeans IDE Dev (Build 201512010002)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03

Reproducibility: Happens every time

STEPS:
1. Make a Maven Web project (I think it doesn't matter what kind of Java project is)
2. Make a class called Links with the following content:
public class Links {
    
    public static final String USER = "/user";
    public static final String USER_DETAILS = USER + "/details";
    
}
3. Make a class called MyServlet with the following content:
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

@WebServlet(Links.USER_DETAILS)
public class MyServlet extends HttpServlet {
    
}
4. Put the mouse cursor after "Links.U" (inside the annotation of the previous class)
5.A. Press CTRL+Space where the cursor is
5.B. Press CTRL+Click on "USER_DETAILS" or "Links" (inside the annotation of the previous class)

ACTUAL:
  5.A. Shows "No suggestions" instead of the 2 available options that should have been shown as auto-complete suggestions: USER and USER_DETAILS.
  5.B. Opens the annotation interface WebServlet instead of the class Links at USER_DETAILS

This issue is very recent. It used to work properly until a few weeks ago.
It is very disturbing, as auto-complete and CTRL+Click are 2 features that I use frequently during development, but now they don't work anymore as they should.
Thank you. :
Comment 1 Jiri Prox 2015-12-08 14:10:41 UTC
Reproducible

The problem probably is with explicit parameter name, if I change it to
@WebServlet(value = Links.USER_DETAILS)

the features start to work correctly.
Comment 3 Quality Engineering 2016-01-09 02:42:12 UTC
Integrated into 'main-silver', will be available in build *201601090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/015490523391
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #247570, #247595, #257005, and #257392 - fixed.
Comment 4 zmirc 2016-01-10 16:30:48 UTC
Are you sure it's fixed?

I have just tried with build 20160110002 and there's no difference. 
I can still experience the issue described in this bug report.
Comment 5 zmirc 2016-01-14 13:27:08 UTC
Unfortunately, the issue seems to persist.
I've just tried with today's build as well, 201601140002.
Comment 6 Jiri Prox 2016-01-16 13:42:10 UTC
I cannot reproduce it in the new build.Can you please attach messages log and the screenshot of the screen.Thanks.
Comment 7 zmirc 2016-01-18 09:35:54 UTC
I have uninstalled NetBeans again, but this time I deleted NB's user dir as well and all NetBeans folders from C/Users/X/AppData (on Win 8), so the new DEV install was 100% fresh.

It seems there's some kind of issue if NetBeans DEV versions are uninstalled then installed without deleting the user dir. After doing this for a few months, the latest dev release doesn't run on fresh code...or some caching is going on.
It's the second time when I experience this.

Nevertheless, the bug seems to be fixed now and I thank you for it.
Cheers!