You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the folder as a multi project workspace like this:
Make the module main depend on sub1 and sub2
(no errors from linter) run the main
Current Result
Error: Cannot resolve the modulepaths/classpaths automatically, please specify the value in the launch.json
Expected Result
Runs the main modules Main with sub1 and sub2
Additional Informations
I already tried to set the module and classpath variables in multiple ways: as relative paths from main project, as absolute paths with ${workspaceFolder}... , and with and without $auto as part of the lists. I couldn't find good information about these 2 options and how to set them correctly.
I am mimicking a eclipse multi project solution with modules and cross requirements since I discovered A: that the VSCode extension is based on eclipse and B: neither of them support "normal" single projects with multiple modules. But the nice menu to add in workspace dependencies to the other projects from eclipse is missing in vscode,
The text was updated successfully, but these errors were encountered:
You should use "Open Workspace from File..." menu to open it as a multi-root workspace.
If you just open it as a folder, then VS Code Java extension will consider them as one project. There is a limitation that one project can only have at most one module-info.java.
If it's opened as a multi-root workspace, then each root will be initialized as a standalone project and be able to own a module-info.java.
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.
[provide a description of the issue]
Environment
Steps To Reproduce
Current Result
Error: Cannot resolve the modulepaths/classpaths automatically, please specify the value in the launch.json
Expected Result
Runs the main modules Main with sub1 and sub2
Additional Informations
I already tried to set the module and classpath variables in multiple ways: as relative paths from main project, as absolute paths with ${workspaceFolder}... , and with and without $auto as part of the lists. I couldn't find good information about these 2 options and how to set them correctly.
I am mimicking a eclipse multi project solution with modules and cross requirements since I discovered A: that the VSCode extension is based on eclipse and B: neither of them support "normal" single projects with multiple modules. But the nice menu to add in workspace dependencies to the other projects from eclipse is missing in vscode,
The text was updated successfully, but these errors were encountered: