When using a gradle project which is modularized, the launch configuration needs to include proper add-modules arguments for each dependency in order for the compilation to work. These should be automatically added by vscode-java.
Environment
- Operating System: Win 10
- JDK version: 14
- Visual Studio Code version: 1.47
- Java extension version: 0.27.1 (debugger)
Steps To Reproduce
- Open modularized project that uses gradle
- Create default "Launch" config
- Try to run the project
Sample project: JabRef
Current Result
Errors because dependency modules are not found.
Expected Result
Automatically add add-modules statements to the java compiler so that dependencies are found.
Additional Informations
In addition, it would be good if the configuration of org.beryx.jlink is automatically recognized and the right add-opens and add-exports cmd args are added:
https://github.com/JabRef/jabref/blob/00a4fb2136a573e1c6c34fc7b5c779b2d88d9636/build.gradle#L387-L423
When using a gradle project which is modularized, the launch configuration needs to include proper
add-modulesarguments for each dependency in order for the compilation to work. These should be automatically added byvscode-java.Environment
Steps To Reproduce
Sample project: JabRef
Current Result
Errors because dependency modules are not found.
Expected Result
Automatically add
add-modulesstatements to the java compiler so that dependencies are found.Additional Informations
In addition, it would be good if the configuration of org.beryx.jlink is automatically recognized and the right
add-opensandadd-exportscmd args are added:https://github.com/JabRef/jabref/blob/00a4fb2136a573e1c6c34fc7b5c779b2d88d9636/build.gradle#L387-L423