[jira] [Commented] (NETBEANS-5540) package x.y.z does not exist for Gradle multiproject
[ https://issues.apache.org/jira/browse/NETBEANS-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17315018#comment-17315018 ] Martin Balin commented on NETBEANS-5540: Today I narrowed the problem and suspect seems to be "{{*Enable 'lazy' Source Group init*}}" experimental option even for the simple Gradle project. I found that in VSCodeNetBeans and reproduce with NB 12.4.Beta1. # Turn ON above mentioned setting. # Open attached "demogradle" project which is simple Micronaut generated app from [https://micronaut.io/launch] # I did not click Trust the project in open dialog. # Then Resolve problems dialog appears and it has *empty* list of problems to resolve. # Application.java source file is opened and it says " {{package io.micronaut.runtime does not exist}}" Build the project, it does not fix it. # Turn OFF "... lazy Source Group" option. Close and open project and it works, no error in source. This is a regression VSCodeNetBeans is by default run with this option and sources are broken then. I was wrong it affects multi-projects only. This one is very simple case. > package x.y.z does not exist for Gradle multiproject > > > Key: NETBEANS-5540 > URL: https://issues.apache.org/jira/browse/NETBEANS-5540 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.4 > Environment: NB 12.4 Beta1, macOS, Java(TM) SE Runtime Environment > 18.9 (build 11.0.10+8-LTS-162) > git clone https://github.com/micronaut-projects/micronaut-test.git >Reporter: Martin Balin >Assignee: Laszlo Kishalmi >Priority: Major > Fix For: 12.4 > > Attachments: Screenshot 2021-04-04 at 10.42.30.png, messages.log.1, > without_nbjavac.png > > > Unpacked NB 12.4 beta1. Started fresh no user dir, no import of settings. > Run NB, install nb-javac when requested. > Open micronaut-test, previously cloned from > [https://github.com/micronaut-projects/micronaut-test|https://github.com/micronaut-projects/micronaut-test.] > I did not check the check box, trust the project in Project open dlg. > When top level project is open NB asks for Resolve problems, click Resolve, > then open test-junit5, Resolve Problems step is done, subproject is open. > It looks like attached screenshot. > Performing Clean & Build on project in NB does not fix this. > Close NB, run {{./gradlew build}} on top level project in terminal, same JDK > used, it builds the project successfully. > Open the multi project in NB again, still same errors displayed. See attached > screenshot and log file from this session. > In the next step I delete .gradle folder in micronaut-test, removed NB user > dir, start from scratch. In Open Project dlg I checked Trust the project. > Resolve Problems dlg appears for top level project with two problems: Priming > build and Trust the project. Click Resolve button, it gets green. > Then open test-junit5, Resolve Problems project appears and it is empty. > Source files are open with with same errors as previously in attachment. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-5540) package x.y.z does not exist for Gradle multiproject
[ https://issues.apache.org/jira/browse/NETBEANS-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314574#comment-17314574 ] Martin Balin commented on NETBEANS-5540: I've turned off Gradle Lazy loading. Then removed nb-javac and cleared all built data as well as .gradle folder under project. Situation is now a little better, see screenshot. Subproject does not know about classes from another subproject. E.g. {{io.micronaut.test.extensions.junit5.MicronautJunit5Extension.java }}does not know about {{io.micronaut.test.annotation.AnnotationUtils.java}} which is in subproject *test-core*. > package x.y.z does not exist for Gradle multiproject > > > Key: NETBEANS-5540 > URL: https://issues.apache.org/jira/browse/NETBEANS-5540 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.4 > Environment: NB 12.4 Beta1, macOS, Java(TM) SE Runtime Environment > 18.9 (build 11.0.10+8-LTS-162) > git clone https://github.com/micronaut-projects/micronaut-test.git >Reporter: Martin Balin >Assignee: Laszlo Kishalmi >Priority: Major > Fix For: 12.4 > > Attachments: Screenshot 2021-04-04 at 10.42.30.png, messages.log.1 > > > Unpacked NB 12.4 beta1. Started fresh no user dir, no import of settings. > Run NB, install nb-javac when requested. > Open micronaut-test, previously cloned from > [https://github.com/micronaut-projects/micronaut-test|https://github.com/micronaut-projects/micronaut-test.] > I did not check the check box, trust the project in Project open dlg. > When top level project is open NB asks for Resolve problems, click Resolve, > then open test-junit5, Resolve Problems step is done, subproject is open. > It looks like attached screenshot. > Performing Clean & Build on project in NB does not fix this. > Close NB, run {{./gradlew build}} on top level project in terminal, same JDK > used, it builds the project successfully. > Open the multi project in NB again, still same errors displayed. See attached > screenshot and log file from this session. > In the next step I delete .gradle folder in micronaut-test, removed NB user > dir, start from scratch. In Open Project dlg I checked Trust the project. > Resolve Problems dlg appears for top level project with two problems: Priming > build and Trust the project. Click Resolve button, it gets green. > Then open test-junit5, Resolve Problems project appears and it is empty. > Source files are open with with same errors as previously in attachment. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-5540) package x.y.z does not exist for Gradle multiproject
[ https://issues.apache.org/jira/browse/NETBEANS-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314519#comment-17314519 ] Laszlo Kishalmi commented on NETBEANS-5540: --- We might see multiple issues here. At first you might try to switch off the lazy project loading at the experimental Gradle setting then restart netbeans and see how it work. I get NPE from javac with that attempt, but the situation seems to be better. > package x.y.z does not exist for Gradle multiproject > > > Key: NETBEANS-5540 > URL: https://issues.apache.org/jira/browse/NETBEANS-5540 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.4 > Environment: NB 12.4 Beta1, macOS, Java(TM) SE Runtime Environment > 18.9 (build 11.0.10+8-LTS-162) > git clone https://github.com/micronaut-projects/micronaut-test.git >Reporter: Martin Balin >Assignee: Laszlo Kishalmi >Priority: Major > Fix For: 12.4 > > Attachments: Screenshot 2021-04-04 at 10.42.30.png, messages.log.1 > > > Unpacked NB 12.4 beta1. Started fresh no user dir, no import of settings. > Run NB, install nb-javac when requested. > Open micronaut-test, previously cloned from > [https://github.com/micronaut-projects/micronaut-test|https://github.com/micronaut-projects/micronaut-test.] > I did not check the check box, trust the project in Project open dlg. > When top level project is open NB asks for Resolve problems, click Resolve, > then open test-junit5, Resolve Problems step is done, subproject is open. > It looks like attached screenshot. > Performing Clean & Build on project in NB does not fix this. > Close NB, run {{./gradlew build}} on top level project in terminal, same JDK > used, it builds the project successfully. > Open the multi project in NB again, still same errors displayed. See attached > screenshot and log file from this session. > In the next step I delete .gradle folder in micronaut-test, removed NB user > dir, start from scratch. In Open Project dlg I checked Trust the project. > Resolve Problems dlg appears for top level project with two problems: Priming > build and Trust the project. Click Resolve button, it gets green. > Then open test-junit5, Resolve Problems project appears and it is empty. > Source files are open with with same errors as previously in attachment. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-5540) package x.y.z does not exist for Gradle multiproject
[ https://issues.apache.org/jira/browse/NETBEANS-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314459#comment-17314459 ] Geertjan Wielenga commented on NETBEANS-5540: - Could we check whether this is specific to nb-javac, i.e., please try to reproduce without nb-javac? > package x.y.z does not exist for Gradle multiproject > > > Key: NETBEANS-5540 > URL: https://issues.apache.org/jira/browse/NETBEANS-5540 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.4 > Environment: NB 12.4 Beta1, macOS, Java(TM) SE Runtime Environment > 18.9 (build 11.0.10+8-LTS-162) > git clone https://github.com/micronaut-projects/micronaut-test.git >Reporter: Martin Balin >Assignee: Laszlo Kishalmi >Priority: Major > Fix For: 12.4 > > Attachments: Screenshot 2021-04-04 at 10.42.30.png, messages.log.1 > > > Unpacked NB 12.4 beta1. Started fresh no user dir, no import of settings. > Run NB, install nb-javac when requested. > Open micronaut-test, previously cloned from > [https://github.com/micronaut-projects/micronaut-test|https://github.com/micronaut-projects/micronaut-test.] > I did not check the check box, trust the project in Project open dlg. > When top level project is open NB asks for Resolve problems, click Resolve, > then open test-junit5, Resolve Problems step is done, subproject is open. > It looks like attached screenshot. > Performing Clean & Build on project in NB does not fix this. > Close NB, run {{./gradlew build}} on top level project in terminal, same JDK > used, it builds the project successfully. > Open the multi project in NB again, still same errors displayed. See attached > screenshot and log file from this session. > In the next step I delete .gradle folder in micronaut-test, removed NB user > dir, start from scratch. In Open Project dlg I checked Trust the project. > Resolve Problems dlg appears for top level project with two problems: Priming > build and Trust the project. Click Resolve button, it gets green. > Then open test-junit5, Resolve Problems project appears and it is empty. > Source files are open with with same errors as previously in attachment. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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