You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Netbeans User 2019 (Jira)" <ji...@apache.org> on 2020/09/11 08:15:00 UTC

[jira] [Commented] (NETBEANS-4762) Gradle support broken recognizing of Lombok generation

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

Netbeans User 2019 commented on NETBEANS-4762:
----------------------------------------------

It seems that there is no problem with 12.0 + updates (I guess it is marked as u1) at least any reds disappear with closing and reopening of first project in tree.

In any case 12.1 is still out of order even with upgrade from 12.0 + updates.

On source dialog of 12.1 has been visible as extra:
- tab "Source": project\build\generated\sources\annotationProcessor\java\main
- tab "Annotation Processors": lombok-1.18.12.jar
- tab "Compiler Args": Java -> -parameters

In any case I have even tried to use empty gradle project by wizard and add lombok and create simple Java bean class annotated by lombok:

- if I tried to used generated e.g. methods it is not visible in autocomplete
- if I run build from menu no issue, but editor is red so simply said editors uses something different or better to say completely ignores lombok

> Gradle support broken recognizing of Lombok generation
> ------------------------------------------------------
>
>                 Key: NETBEANS-4762
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4762
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Hints &amp; Annotations, editor - Navigation, java - Compiler, java - Editor, java - Hints, java - Navigation, platform - Action Items, projects - Gradle
>    Affects Versions: 12.1
>         Environment: OpenJDK 11.0.2
> Gradle 6.4.1, 6.6.1
> Lombok 1.18.12
>            Reporter: Netbeans User 2019
>            Assignee: Laszlo Kishalmi
>            Priority: Critical
>              Labels: Lombok, annotation-processor, gradle
>
> After upgrade to Apache Netbeans 12.1 it seems that every class uses Lombok annotation or even class that depends on such class leads to red look (action items, items in tree of "Projects", particular file in editor). It is tried every prior ways to remove it, but without success.
> So tried like
> - close project and open
> - reload project
> - clean and build
> - scan for external changes
> - modification of file
> - creation new file in same folder and remove
> - removal of Apache Netbeans cache (under option --cachedir)
> - removal of caches/6.4.1 under gradle home
> - removal caches .gradle under project
> - switching new option about trusted to always
> - using new version of Gradle 6.6.1
> - using lombok plugin for gradle instead of manually steps via dependencies
> So it is still red even clean and build works well.
> So it is really not possible use that version of Apache Netbeans with hundreds of false 
> errors.
> So I have to revert back to 12.0 where I can get that back to non-red after clean and build of root project and reopening of projects or by creation of files under particular folder and remove it.
> In context:
> Tested on multi project (root with subprojects).



--
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