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

Martin Balin edited comment on NETBEANS-5540 at 4/4/21, 5:54 PM:
-----------------------------------------------------------------

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

This styas same when nb-javac is added and Clean & Build performed.


was (Author: mbalin):
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, 
> 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

Reply via email to