You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian (JIRA)" <ji...@apache.org> on 2019/02/07 13:34:00 UTC

[jira] [Comment Edited] (NETBEANS-2004) Gradle modular project shows errors in all classes, but tasks run fine

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

Christian edited comment on NETBEANS-2004 at 2/7/19 1:33 PM:
-------------------------------------------------------------

I run into something similar.

I have a simple gradle modular project with one test-class 'PropertyChangeListenerTest.java' and netbeans is showing me an error on the import statement of 'org.junit.Test;' -> "package org.junit is not visible..", but I can run the test successfully in netbeans.

 

Tested with netbeans build from source 03.Feb.2019 - commit hash 1340caf09590c9e0d60b923665b975644241b8bc

Evaluation of 'module-info.java' has worked for me this time, only import of 'org.junit.Test' shows error.

 

Expected behavior: netbeans can import 'org.juni.Test' and does not show me an error.

 

!Bildschirmfoto 2019-02-06 um 17.22.17.png!

 

Sample project:

[^gradleJava.zip]

 

Please take a look at https://issues.apache.org/jira/browse/NETBEANS-2024

maybe this is something similar.

 

 

I could also not use the netbeans-gradle-project with a modular setup and opened there an issue also:

[https://github.com/kelemen/netbeans-gradle-project/issues/417]

 

 

 

 

 


was (Author: streifi):
I run into something similar.

I have a simple gradle modular project with one test-class 'PropertyChangeListenerTest.java' and netbeans is showing me an error on the import statement of 'org.junit.Test;' -> "package org.junit is not visible..", but I can run the test successfully in netbeans.

 

Expected behavior: netbeans can import 'org.juni.Test' and does not show me an error.

 

!Bildschirmfoto 2019-02-06 um 17.22.17.png!

 

Sample project:

[^gradleJava.zip]

 

Please take a look at https://issues.apache.org/jira/browse/NETBEANS-2024

maybe this is something similar.

 

 

I could also not use the netbeans-gradle-project with a modular setup and opened there an issue also:

[https://github.com/kelemen/netbeans-gradle-project/issues/417]

 

 

 

 

 

> Gradle modular project shows errors in all classes, but tasks run fine 
> -----------------------------------------------------------------------
>
>                 Key: NETBEANS-2004
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2004
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>         Environment: Product Version: Apache NetBeans IDE Dev (Build 20190127-unknown-revn)
> Java: 11.0.2; OpenJDK 64-Bit Server VM 11.0.2+7
> Runtime: OpenJDK Runtime Environment 11.0.2+7
>            Reporter: Jose Pereda
>            Priority: Major
>         Attachments: Bildschirmfoto 2019-02-06 um 17.22.17.png, Captura de pantalla 2019-01-27 a las 19.55.13.png, gradleJava.zip
>
>
> Opening a gradle non-modular project works fine, but when the project is modular, it shows errors all over the place.
> However, Clean, Build, Run, or any of the gradle tasks work fine. 
> !Captura de pantalla 2019-01-27 a las 19.55.13.png|width=1328,height=789!
>  
> See OpenJFX samples [non-modular|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Non-Modular/Gradle/hellofx] and [modular|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Modular/Gradle/hellofx].
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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