sdedic opened a new pull request, #8715:
URL: https://github.com/apache/netbeans/pull/8715

   After Run/Debug actions initiated from VSNetBeans, the console logged 
messages like:
   
   ```
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Configuration cache problems found in this build.
   
   1 problem was found storing the configuration cache.
   - Task `:app:run` of type `org.gradle.api.tasks.JavaExec`: cannot serialize 
object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 
'org.gradle.api.Project', as these are not supported with the configuration 
cache.
     See 
https://docs.gradle.org/9.0.0/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types
   
   See the complete report at 
file:///Users/mbalin/development/gr-test2/build/reports/configuration-cache/bxnd0w8qtt4bcmeafim2dypss/60ha2871aj6t91ergssn1d5rh/configuration-cache-report.html
   ```
   
   The culprit is the anonymous class instance added as JVM arg provider to 
JavaExec task; it implicitly holds an unserializable reference to Project, 
which is disallowed. See the attached html report (zipped):
   
[configuration-cache-report2.zip](https://github.com/user-attachments/files/21616297/configuration-cache-report2.zip)
   
   The PR just moves the computation outside the provider, so serialization is 
OK. An arg provider is used instead of plain setter to *add* jvm arguments 
instead of replacing some.
   
   Note - although the PR targets `delivery`, the impact on NB 27 release is 
IMHO limited:
   - NB IDE does not actually use jvm argument passing: there's no nice UI for 
jvm parameters in gradle project settings; it's somehow configurable in 
actions, but hard to achieve
   - Micronaut projects generated by Micronaut launcher do not activate 
serialization cache 
   - **ONLY** projects generated by `gradle init` and gradle >= 8.11 enable 
serialization cache by default
   - that means it is broken from gradle 8.11, that is from around 11/24
   - workaround exists (disable serialization cache in `gradle.properties`)
   
   @mbien @MartinBalin @ebarboni pls decide if it is severe enough for another 
RC.


-- 
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-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-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