[jira] [Commented] (NETBEANS-4938) Missing sources & co. after creating Gradle Frontend App in 12.2-beta2

2020-10-27 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-4938:
---

I've created NETBEANS-4959 for that.

> Missing sources & co. after creating Gradle Frontend App in 12.2-beta2
> --
>
> Key: NETBEANS-4938
> URL: https://issues.apache.org/jira/browse/NETBEANS-4938
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
>Reporter: Jaroslav Tulach
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
> Fix For: 12.2
>
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> I am trying to test
> "New Project/Java with Gradle/Java Frontend Application"
> on 12.2-beta2 of
> {code:java}
> bin/netbeans --userdir emptyud --jdkhome /jdk-11
> {code}
> the project is generated, but it only shows a single node "Build Scripts". 
> Why?
> Next step. Run "Build" from popup menu: "BUILD SUCCESSFUL". But still just a 
> single node "Build Scripts".
> Invoked "Reload Project". Now there are three nodes: "Configurations" (no 
> children), "Build Scripts" and "Sub Projects" (no children).
> Subsequent "Reaload Project" - shows "Sub Projects" children. Finally! 
> Opening the ":desktop" and ":web" projects seems to work OK.  Just 
> "DesktopMain" class contains an error (cannot find "Demo" class). The same 
> for "BrowserMain" class. Giving up and restarting.
> After the errors in "DesktopMain" and "BrowserMain" are gone. Moreover I can 
> also see the source packages for the main project (this time, it may not be 
> fully reliable).
> Creating another "New Project/Java with Gradle/Java Frontend Application" 
> seems to exhibit the same behavior. E.g. only project with "Builds 
> Scripts"... then two reload project actions - sub projects visible. But still 
> no sources...
>  



--
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-4938) Missing sources & co. after creating Gradle Frontend App in 12.2-beta2

2020-10-25 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach commented on NETBEANS-4938:
---

Another issue is missing "Web Pages" node. There is {{src/main/webapp}} 
directory in a plain Java SE project, but it is not displayed as Java EE 
feature of Gradle isn't activated. Any idea what to do about it?

> Missing sources & co. after creating Gradle Frontend App in 12.2-beta2
> --
>
> Key: NETBEANS-4938
> URL: https://issues.apache.org/jira/browse/NETBEANS-4938
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
>Reporter: Jaroslav Tulach
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> I am trying to test
> "New Project/Java with Gradle/Java Frontend Application"
> on 12.2-beta2 of
> {code:java}
> bin/netbeans --userdir emptyud --jdkhome /jdk-11
> {code}
> the project is generated, but it only shows a single node "Build Scripts". 
> Why?
> Next step. Run "Build" from popup menu: "BUILD SUCCESSFUL". But still just a 
> single node "Build Scripts".
> Invoked "Reload Project". Now there are three nodes: "Configurations" (no 
> children), "Build Scripts" and "Sub Projects" (no children).
> Subsequent "Reaload Project" - shows "Sub Projects" children. Finally! 
> Opening the ":desktop" and ":web" projects seems to work OK.  Just 
> "DesktopMain" class contains an error (cannot find "Demo" class). The same 
> for "BrowserMain" class. Giving up and restarting.
> After the errors in "DesktopMain" and "BrowserMain" are gone. Moreover I can 
> also see the source packages for the main project (this time, it may not be 
> fully reliable).
> Creating another "New Project/Java with Gradle/Java Frontend Application" 
> seems to exhibit the same behavior. E.g. only project with "Builds 
> Scripts"... then two reload project actions - sub projects visible. But still 
> no sources...
>  



--
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-4938) Missing sources & co. after creating Gradle Frontend App in 12.2-beta2

2020-10-25 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach commented on NETBEANS-4938:
---

Why better now. I see the source packages. However shouldn't we also see 
something under Configurations node of the root project? It contains:
{code:java}
dependencies {
compile "org.netbeans.html:net.java.html.json:1.6.1"
compile "com.dukescript.api:javafx.base:8.60.11"
compile "com.dukescript.api:javafx.beaninfo:0.5"
runtime "org.netbeans.html:ko4j:1.6.1"
} {code}
but I see neither compile, neither runtime. Restarting doesn't help.

> Missing sources & co. after creating Gradle Frontend App in 12.2-beta2
> --
>
> Key: NETBEANS-4938
> URL: https://issues.apache.org/jira/browse/NETBEANS-4938
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
>Reporter: Jaroslav Tulach
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> I am trying to test
> "New Project/Java with Gradle/Java Frontend Application"
> on 12.2-beta2 of
> {code:java}
> bin/netbeans --userdir emptyud --jdkhome /jdk-11
> {code}
> the project is generated, but it only shows a single node "Build Scripts". 
> Why?
> Next step. Run "Build" from popup menu: "BUILD SUCCESSFUL". But still just a 
> single node "Build Scripts".
> Invoked "Reload Project". Now there are three nodes: "Configurations" (no 
> children), "Build Scripts" and "Sub Projects" (no children).
> Subsequent "Reaload Project" - shows "Sub Projects" children. Finally! 
> Opening the ":desktop" and ":web" projects seems to work OK.  Just 
> "DesktopMain" class contains an error (cannot find "Demo" class). The same 
> for "BrowserMain" class. Giving up and restarting.
> After the errors in "DesktopMain" and "BrowserMain" are gone. Moreover I can 
> also see the source packages for the main project (this time, it may not be 
> fully reliable).
> Creating another "New Project/Java with Gradle/Java Frontend Application" 
> seems to exhibit the same behavior. E.g. only project with "Builds 
> Scripts"... then two reload project actions - sub projects visible. But still 
> no sources...
>  



--
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-4938) Missing sources & co. after creating Gradle Frontend App in 12.2-beta2

2020-10-24 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-4938:
---

My first debug session is over on this. I can probably fix issue number 2, 
however I need [~jtulach] help fixing issue number 1.

So the initial load of the project is actually seems to be good, as the Java 
frontend application creates almost empty build.gradle and settings.gradle 
first, then load the project into cache then updates the build and settings 
gradle, then opens the project, so if the project loaded into the cache with 
the final build scripts everything would be good at start.

Issue number 1 is much harder and requires a good knowledge on how the Lookup 
system works.

So the Lookup of NBGradleProjectImpl consists of a basic lookup created at: 
[https://github.com/apache/netbeans/blob/3a2cad159a2a60665653ce83a67547f679ec/extide/gradle/src/org/netbeans/modules/gradle/NbGradleProjectImpl.java#L161]
 and a plugin dependent ProxyLookup at 
[https://github.com/apache/netbeans/blob/3a2cad159a2a60665653ce83a67547f679ec/extide/gradle/src/org/netbeans/modules/gradle/NbGradleProjectImpl.java#L330]

 

The issue is the following:
 # Project loads with no plugins, the base set of lookups registers a 
SourcesMerger
 # Initially the only Sources implementation is for GENERIC_SOURCE_TYPE for the 
project folder.
 # On reload through the PluginDependentLookup a new Sources implementation 
become available org.netbeans.modules.gradle.java.classpath.GradleSourcesImpl 
from the Gradle Java project
 # Unfortunately the SourceMerger is not pick up the new Sources implementations

Interestingly it works the other way, when the GradleSourcesImpl is removed 
from the project lookup the SourceMerger is notified and removes the Java 
source groups.

It is pretty easy to reproduce, I might be able to create a unittest for this.
Just create a simple Java Class Library in the IDE. Open it's buildscript, 
remove everything except the first line and even comment out that one (apply 
plugin: 'java')
The Java source group shall disappear from the project node when the file is 
saved. Remove the comments form the first line, then save. the source groups 
shall reappear, but it does not.

> Missing sources & co. after creating Gradle Frontend App in 12.2-beta2
> --
>
> Key: NETBEANS-4938
> URL: https://issues.apache.org/jira/browse/NETBEANS-4938
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
>Reporter: Jaroslav Tulach
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> I am trying to test
> "New Project/Java with Gradle/Java Frontend Application"
> on 12.2-beta2 of
> {code:java}
> bin/netbeans --userdir emptyud --jdkhome /jdk-11
> {code}
> the project is generated, but it only shows a single node "Build Scripts". 
> Why?
> Next step. Run "Build" from popup menu: "BUILD SUCCESSFUL". But still just a 
> single node "Build Scripts".
> Invoked "Reload Project". Now there are three nodes: "Configurations" (no 
> children), "Build Scripts" and "Sub Projects" (no children).
> Subsequent "Reaload Project" - shows "Sub Projects" children. Finally! 
> Opening the ":desktop" and ":web" projects seems to work OK.  Just 
> "DesktopMain" class contains an error (cannot find "Demo" class). The same 
> for "BrowserMain" class. Giving up and restarting.
> After the errors in "DesktopMain" and "BrowserMain" are gone. Moreover I can 
> also see the source packages for the main project (this time, it may not be 
> fully reliable).
> Creating another "New Project/Java with Gradle/Java Frontend Application" 
> seems to exhibit the same behavior. E.g. only project with "Builds 
> Scripts"... then two reload project actions - sub projects visible. But still 
> no sources...
>  



--
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-4938) Missing sources & co. after creating Gradle Frontend App in 12.2-beta2

2020-10-24 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach commented on NETBEANS-4938:
---

If I remember correctly the behavior was shaky in previous versions of NetBeans 
, but mostly working. Now it seems consistently broken. At least it is easier 
to reproduce. Thanks for looking at it.

> Missing sources & co. after creating Gradle Frontend App in 12.2-beta2
> --
>
> Key: NETBEANS-4938
> URL: https://issues.apache.org/jira/browse/NETBEANS-4938
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
>Reporter: Jaroslav Tulach
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> I am trying to test
> "New Project/Java with Gradle/Java Frontend Application"
> on 12.2-beta2 of
> {code:java}
> bin/netbeans --userdir emptyud --jdkhome /jdk-11
> {code}
> the project is generated, but it only shows a single node "Build Scripts". 
> Why?
> Next step. Run "Build" from popup menu: "BUILD SUCCESSFUL". But still just a 
> single node "Build Scripts".
> Invoked "Reload Project". Now there are three nodes: "Configurations" (no 
> children), "Build Scripts" and "Sub Projects" (no children).
> Subsequent "Reaload Project" - shows "Sub Projects" children. Finally! 
> Opening the ":desktop" and ":web" projects seems to work OK.  Just 
> "DesktopMain" class contains an error (cannot find "Demo" class). The same 
> for "BrowserMain" class. Giving up and restarting.
> After the errors in "DesktopMain" and "BrowserMain" are gone. Moreover I can 
> also see the source packages for the main project (this time, it may not be 
> fully reliable).
> Creating another "New Project/Java with Gradle/Java Frontend Application" 
> seems to exhibit the same behavior. E.g. only project with "Builds 
> Scripts"... then two reload project actions - sub projects visible. But still 
> no sources...
>  



--
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-4938) Missing sources & co. after creating Gradle Frontend App in 12.2-beta2

2020-10-24 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-4938:
---

The configuration node being empty is a separate issue, I'm working on that, as 
of NETBEANS-3789. It will be in beta3 next week. (I'm shooting for today, 
though)

The other one comes from some lookup update anomaly, that I need to check more 
deeply.
When the project first opened it did not detect the plugins java and java-base 
on the root project, hence no source groups were created. So when you reloaded 
the project the plugins got detected, but the IDE failed to update on the 
sourcegroups. I assume the sub project were able to be opened correctly before 
[https://github.com/apache/netbeans/pull/2442] as the root project source 
groups were processed in the sub project as well, but now it shall be relying 
on the root project.

So I need to fix:
 # When the project reloads would detect the new plugins, it shall update the 
sourcegroups (and their nodes)
 # When creating a new Java Frontend Application, it should detect the plugins 
on the first load.

> Missing sources & co. after creating Gradle Frontend App in 12.2-beta2
> --
>
> Key: NETBEANS-4938
> URL: https://issues.apache.org/jira/browse/NETBEANS-4938
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
>Reporter: Jaroslav Tulach
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> I am trying to test
> "New Project/Java with Gradle/Java Frontend Application"
> on 12.2-beta2 of
> {code:java}
> bin/netbeans --userdir emptyud --jdkhome /jdk-11
> {code}
> the project is generated, but it only shows a single node "Build Scripts". 
> Why?
> Next step. Run "Build" from popup menu: "BUILD SUCCESSFUL". But still just a 
> single node "Build Scripts".
> Invoked "Reload Project". Now there are three nodes: "Configurations" (no 
> children), "Build Scripts" and "Sub Projects" (no children).
> Subsequent "Reaload Project" - shows "Sub Projects" children. Finally! 
> Opening the ":desktop" and ":web" projects seems to work OK.  Just 
> "DesktopMain" class contains an error (cannot find "Demo" class). The same 
> for "BrowserMain" class. Giving up and restarting.
> After the errors in "DesktopMain" and "BrowserMain" are gone. Moreover I can 
> also see the source packages for the main project (this time, it may not be 
> fully reliable).
> Creating another "New Project/Java with Gradle/Java Frontend Application" 
> seems to exhibit the same behavior. E.g. only project with "Builds 
> Scripts"... then two reload project actions - sub projects visible. But still 
> no sources...
>  



--
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-4938) Missing sources & co. after creating Gradle Frontend App in 12.2-beta2

2020-10-24 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-4938:
---

Thanks! Checking.

> Missing sources & co. after creating Gradle Frontend App in 12.2-beta2
> --
>
> Key: NETBEANS-4938
> URL: https://issues.apache.org/jira/browse/NETBEANS-4938
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
>Reporter: Jaroslav Tulach
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> I am trying to test
> "New Project/Java with Gradle/Java Frontend Application"
> on 12.2-beta2 of
> {code:java}
> bin/netbeans --userdir emptyud --jdkhome /jdk-11
> {code}
> the project is generated, but it only shows a single node "Build Scripts". 
> Why?
> Next step. Run "Build" from popup menu: "BUILD SUCCESSFUL". But still just a 
> single node "Build Scripts".
> Invoked "Reload Project". Now there are three nodes: "Configurations" (no 
> children), "Build Scripts" and "Sub Projects" (no children).
> Subsequent "Reaload Project" - shows "Sub Projects" children. Finally! 
> Opening the ":desktop" and ":web" projects seems to work OK.  Just 
> "DesktopMain" class contains an error (cannot find "Demo" class). The same 
> for "BrowserMain" class. Giving up and restarting.
> After the errors in "DesktopMain" and "BrowserMain" are gone. Moreover I can 
> also see the source packages for the main project (this time, it may not be 
> fully reliable).
> Creating another "New Project/Java with Gradle/Java Frontend Application" 
> seems to exhibit the same behavior. E.g. only project with "Builds 
> Scripts"... then two reload project actions - sub projects visible. But still 
> no sources...
>  



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