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/10/23 20:05:07 UTC

[GitHub] [netbeans] errael opened a new issue, #4847: Gradle won't load project in NetBeans-16rc1

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

   ### Apache NetBeans version
   
   Apache NetBeans latest daily build
   
   ### What happened
   
   Attached zip file has trivial projects that demo the problem
   
   Running `NB-master, Oct 19 just after freeze` under NB-15 debugger
   
   Open lib - resolve problem
   
   Observe:       
   ```
       Cannot load: /.../lib
       Could not run build action using
           /home/err/.gradle/wrapper/dists/gradle-6.8.3-bin
               /7ykxq50lst7lb7wx1nijpicxn/gradle-6.8.3
   ```
   On the System, there is:
   
   ```
           /home/err/.gradle/wrapper/dists/gradle-6.8.3-bin
               /7ykxq50lst7lb7wx1nijpicxn/gradle-6.8.3/bin/gradle
   ```
   
   Right click lib - select build, `BUILD SUCCESSFUL`
   
   Still has PrimingBuildRequired and Resolve still fails; Cannot load
   
   **NOTE: There are two smallish bugs in NB-15, mentioned in the "How to reproduce" section; since can't open on 16...**
   
   ### How to reproduce
   
   Steps are shown above, to reiterate
   
   1. jar -xf _attached-zip-file_, 3 projects: lib,app,compose
   [gradle-projects-compose.zip](https://github.com/apache/netbeans/files/9847401/gradle-projects-compose.zip)
   2. open lib, resolve doesn't work, see above
   
   ### This is what happens on NB-15 (with two small bugs)
   
   **=== problem 1 (minor problem)**
   
   0. tar -x projects
   1. clean userdir/cachedir
   2. Open app,lib - trust yes, resolve problem
   3. Observe lib resolves, not app.
   4. Attempt to resolve app, Does not resolve app, no error indication or output.
   5. Do app > build, see expected error
          Execution failed for task ':compileJava'.
          > Could not resolve all files for configuration ':compileClasspath'.
             > Could not find play:lib:1.0.0.
      Resolve should show this rather than failing silently
   6. Execute task lib publishToMavenLocal
   7. Now app resolves as expected.
   
   Only problem is that step 4 does not show an error (which can be seen by manually running build as in step 5)
   
   **=== problem 2**
   
   With all problems resolved,
   right click on app, "SetMainProject" does not appear in context menu.
   
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 15
   
   ### Operating System
   
   Linux harmony 5.19.16-76051916-generic #202210150742~1666053244~22.04~cf07008 SMP PREEMPT_DYNAMIC Tue O x86_64 x86_64 x86_64 GNU/Linux
   
   ### JDK
   
   openjdk 11.0.2 2019-01-15
   
   ### Apache NetBeans packaging
   
   Own source build
   
   ### 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


[GitHub] [netbeans] matthiasblaesing commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1289457141

   @sdedic you indicate, that you found a solution, if the need arises, that NetBeans external dependencies mechanism can download from arbitrary https locations:
   
   https://github.com/apache/netbeans/blob/9445a566c595a6c7573e3478e3073c3e15eda05f/extide/libs.gradle/external/binaries-list#L18
   
   That way an offline build will still work if the binary is cached once. We should not stretch this to wide, but gradle is already using it to download the tooling-api and gradle itself.


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


[GitHub] [netbeans] neilcsmith-net commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1288750619

   Doesn't seem specific to the project setup you shared.  Happens just with `lib` and with any project set up to use Gradle 6.8.3.
   
   cc @lkishalmi @sdedic for comment.  Marked high and with NB16 milestone for now, but feel free to re-assess. 


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


[GitHub] [netbeans] neilcsmith-net commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1289313905

   @sdedic download it? Or possibly compile it?  If you want to go down a rabbit warren :smile: https://issues.apache.org/jira/browse/LEGAL-570


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


[GitHub] [netbeans] sdedic commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
sdedic commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1289280945

   I'd like to add a test that uses an old gradle (through gradle wrapper) as this issue's sample project. @matthiasblaesing -- what approach would you recommend for including `gradle-wrapper.jar` into the test source tree ?


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


[GitHub] [netbeans] sdedic commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
sdedic commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1289369627

   Never mind; I think I've found a way how to generate gradle wrapper by gradle (that is available, otherwise all CI gradle tests would be failing).


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


[GitHub] [netbeans] lkishalmi commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1289163647

   ```
   Failed to notify build listener. 'java.util.Optional org.gradle.api.internal.plugins.PluginRegistry.findPluginForClass(java.lang.Class)'
   ```
   Well we should be careful when using internal Gradle classes.


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


[GitHub] [netbeans] errael commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
errael commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1289193986

   > ```
   > Failed to notify build listener. 'java.util.Optional org.gradle.api.internal.plugins.PluginRegistry.findPluginForClass(java.lang.Class)'
   > ```
   > 
   > Well we should be careful when using internal Gradle classes.
   
   Off topic of nb-16 fix, but how about an issue/discussion to consider not running Gradle with NB directly? Could the Gradle daemon be used to gather the info that NB needs?


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


[GitHub] [netbeans] errael commented on issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
errael commented on issue #4847:
URL: https://github.com/apache/netbeans/issues/4847#issuecomment-1291035520

   Fixed running
   ```
    hg glog -r .
   @    changeset:   9067:9197022e1aed
   |\   bookmark:    delivery
   ~ ~  tag:         tip
        tag:         upstream/delivery
        parent:      9066:94426cc5a858
        parent:      9060:dca4cb74f460
        user:        Neil C Smith <ne...@apache.org>
        date:        Tue Oct 25 11:31:46 2022 +0100
        summary:     Merge pull request #4808 from lkishalmi/languages.antlr-4
   ```


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


[GitHub] [netbeans] errael closed issue #4847: Gradle won't load project in NetBeans-16rc1

Posted by GitBox <gi...@apache.org>.
errael closed issue #4847: Gradle won't load project in NetBeans-16rc1
URL: https://github.com/apache/netbeans/issues/4847


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