You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/12/13 10:47:08 UTC

[GitHub] [netbeans] andreaseberhoefer opened a new issue, #5105: [Java] Find usage for lombok generated methods

andreaseberhoefer opened a new issue, #5105:
URL: https://github.com/apache/netbeans/issues/5105

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   I have a project with three classes and lombok.  Two classes are under `src/main/java`:
   
   ```
   class MyDataClass {
      private String foo;
   }
   
   class MyMainClass {
      public static void main(String ... args) {
         var data = new MyData();
         data.getFoo();
      }
   }
   ```
   and one is under `src/test/java`
   
   ```
   class MyTestClass {
      void test() {
          var data = new MyData();
         data.getFoo();
      }
   }
   ```
   
   When I annotate `MyData` with `@Getter`, then right click on `getFoo()` in the navigator and do `Find Usages` there is a result for `MyMainClass` and `MyTestClass`, as I would expect.  When I add `@ToString` to the class, then there is only one result for `MyTestClass`. Same happens when `@EqualsAndHashCode`, `@Data` or `@Value` is present. 
   It seems that netbeans has a problem with the usage, when the generated code is used by the generated class. 
   
   
   ### How to reproduce
   
   You can reproduce this with a gradle or maven project and the code from above. I've tested it with both build tools.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Linux Manjaro
   
   ### JDK
   
   java version 11.0.12-open installed via sdkman
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] [Java] Find usage for lombok generated methods [netbeans]

Posted by "solerman (via GitHub)" <gi...@apache.org>.
solerman commented on issue #5105:
URL: https://github.com/apache/netbeans/issues/5105#issuecomment-1815211881

   It works in flatpak commit f1e7fd5e9ebb846769c612e89ae3175bddb9f94be08ec08fceb7b91b762e8f7c and fails and all subsequent versions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] [Java] Find usage for lombok generated methods [netbeans]

Posted by "solerman (via GitHub)" <gi...@apache.org>.
solerman commented on issue #5105:
URL: https://github.com/apache/netbeans/issues/5105#issuecomment-1814958096

   This used to work in earlier relases, not sure which (NB 17 maybe) and it is still not working on NB 19. After loading a maven project, once NB finishes parsing it correctly detects that the private fields are being used (the dashing that shows them as unused disappears) but it still can't find usages about the getter/setters that appears in the navigator


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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