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 257856 - Code-complete won't come up
Summary: Code-complete won't come up
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-05 02:14 UTC by _ gtzabari
Modified: 2016-08-30 14:15 UTC (History)
2 users (show)

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 _ gtzabari 2016-02-05 02:14:53 UTC
Product Version: NetBeans IDE Dev (Build 201602010002)
Java: 1.8.0_71; Java HotSpot(TM) 64-Bit Server VM 25.71-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_71-b15
System: Windows 10 version 10.0 running on amd64; UTF-8; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

1. Given a Maven project containing the following file:

import com.google.common.cache.CacheBuilder;
import com.google.common.cache.RemovalListener;
import com.google.common.cache.RemovalNotification;

public class Main {

    public static void main(String[] args) {
        CacheBuilder.newBuilder().
                removalListener(new RemovalListener<String, String>() {
                    @Override
                    public void onRemoval(RemovalNotification<String, String> notification) {
                        notification.getKey();
                    }
                }).
                build();
    }
}

2. Please the caret after "notification." and try triggering code-complete.
3. Nothing will happen (the code complete dialog will not come up).
4. The code compiles fine. There is no evidence of a parsing error in the UI or messages.log. The feature fails silently.

Code-complete works fine on other code. There is just something special going on with this case.

This is reproducible always.
Comment 1 _ gtzabari 2016-02-05 02:15:27 UTC
In step 2, "Please the caret" should read "Place the caret"
Comment 2 Dusan Balek 2016-08-30 14:15:00 UTC
Already fixed in the current dev build.