[ 
https://issues.apache.org/jira/browse/NETBEANS-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16868598#comment-16868598
 ] 

Scott Palmer commented on NETBEANS-2494:
----------------------------------------

It is very dependent on the surrounding code. Even doing something as simple as 
deleting an unused import can make it work, but if you undo to put back that 
import then it fails again... So whatever the specific criteria, it is 
reproducible.

 

I will attach a file that is causing this right now for me.  Test.java - try to 
autocomplete on like 17 after the . and choose charAt(int index) by pressing 
enter on the autocomplete pop-up.  For me it does not add the charAt() method 
call and will delete any prefix already typed (e.g. if you type 'cha' then 
ctrl-space, enter, you are back to nothing after the .

 

 

> autocomplete deletes instead of completes
> -----------------------------------------
>
>                 Key: NETBEANS-2494
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2494
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Editor
>    Affects Versions: 11.0
>         Environment: OS X 10.14.3 (18D109)
> Java 1.8.0_181
> Product Version: Apache NetBeans IDE 11.0 (Build 
> incubator-netbeans-release-404-on-20190319)
> Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13
> Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13
> System: Mac OS X version 10.14.3 running on x86_64; UTF-8; en_US (nb)
> User directory: ~/Library/Application Support/NetBeans/11.0
> Cache directory: ~/Library/Caches/NetBeans/11.0
>            Reporter: Paul
>            Priority: Critical
>         Attachments: Test.java
>
>
> easily reproducible (on Mac anyway).
> In any java class, inside method body type this:
>  
> OutputStream os = new ByteArra
> then press Ctrl-Space, press down-cursor to go to 
> java.io.ByteArrayOutputStream constructor., press Enter.
> Instead of completing as requestedor offering user input to choose what to 
> actually put there, NB11 deletes the new ByteArra.
> The only way to get it to actually complete is mouse-click.
> Super-long time NB user here - grew accustomed to a pleasurable dev 
> experience, and loss of this functionality is so taxing it's worth just using 
> Eclipse at this point.
>  
> Looking forward to a fix
>  
> Related: NETBEANS-2490



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to