You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Akhilesh Singh (Jira)" <ji...@apache.org> on 2020/09/08 13:51:00 UTC
[jira] [Comment Edited] (NETBEANS-3579) Code completion not working
inside block lambdas
[ https://issues.apache.org/jira/browse/NETBEANS-3579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192224#comment-17192224 ]
Akhilesh Singh edited comment on NETBEANS-3579 at 9/8/20, 1:50 PM:
-------------------------------------------------------------------
Completion works by adding the class name & argument of left hand side lambda. e.g. (String s) .
{noformat}
public class NewClass {
public int compute(Collection<String> c) {
return c.stream().map((String s) -> {s.|});
}
}{noformat}
was (Author: singh-akhilesh):
Completion works by adding the class name & argument of left hand side lambda. e.g. (String s) .
{noformat}
public class NewClass {
public int compute(Collection<String> c) {
return c.stream().map((String s) -> {s.|});
}
}{noformat}
> Code completion not working inside block lambdas
> ------------------------------------------------
>
> Key: NETBEANS-3579
> URL: https://issues.apache.org/jira/browse/NETBEANS-3579
> Project: NetBeans
> Issue Type: Bug
> Affects Versions: 12.0, 11.2
> Reporter: Jan Lahoda
> Assignee: Akhilesh Singh
> Priority: Critical
>
> Consider the following code ('|' should not be part of the code, and represents where the caret should be placed):
> {{package org.netbeans.modules.learning.lambda.code.completion;}}
> {{import java.util.Collection;}}
> {{public class NewClass {}}
> {{ public int compute(Collection<String> c) {}}
> {{ return c.stream().map(s -> {s.|)}}
> {{ }}}
> {{}}}
> Invoking the code completion at the marked place ('|') yields not results whatsoever for me. That is apparently wrong - there should be results for a variable of type String.
>
> The IDE is a fully updated Apache NetBeans 11.2, with nb-javac installed running on JDK 13:
> Product Version: Apache NetBeans IDE 11.2
> Java: 13.0.1; OpenJDK 64-Bit Server VM 13.0.1+9
> Runtime: OpenJDK Runtime Environment 13.0.1+9
> System: Linux version 4.15.0-72-generic running on amd64; UTF-8; en_US (nb)
> User directory: /tmp/nbuser.lambda.test
> Cache directory: /tmp/nbuser.lambda.test/var/cache
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists