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

   ### Apache NetBeans version
   
   Apache NetBeans 16 release candidate
   
   ### What happened
   
   This issue discussed in dev,
   https://lists.apache.org/thread/372jso34sfp42fotvfkhp2vj5r8vvq0h
   The thread includes the suggestion to use a `composit build` with 
`includeBuild` and various suggestions on how to get debug to work. The problem 
is that although the `Run` button works on a composite build, the `Debug` 
button does not and results in the following error.
   
   ```
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Problem configuring task :run from command line.
   > Unknown command-line option '--debug-jvm'.
   ```
   
   ### How to reproduce
   
   zip file has trivial projects, `lib, app, compose` that demo the issues:
   https://github.com/apache/netbeans/files/9847401/gradle-projects-compose.zip
   
   0.  clean userdir/cachedir
   1.  jar -xf attached-zip-file; lib,app,compose; chmod +x */gradlew
   2.  Open app,lib projects - trust yes, resolve problem
       Only lib can resolve, app depends on maven local
   3.  lib:publishToMavenLocal
   4.  app prime build, set as MainProject, run and see `=== Lib ===` output
   6.  Modify Lib.java message (in lib project)
   7.  Run app, note change to message not seen
   8.  Open project compose, set compose as main project
   9.  Run app, note change to message seen
   10. Debug app
   Observe:
   
   ```
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Problem configuring task :run from command line.
   > Unknown command-line option '--debug-jvm'.
   ```
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### 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 version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 
11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to