-
Notifications
You must be signed in to change notification settings - Fork 522
Description
Describe the bug
Java projects without build tools are being skipped during auto-import due to the presence of Java projects with build tools in the same workspace. This results in missing imports and project configuration issues.
To Reproduce
Steps to reproduce the behavior:
- Create a workspace containing both Java projects with build tools (e.g., Maven, Gradle) and Java projects without build tools.
- Clean the Java language server workspace to trigger auto-import on startup.
- The Java projects without build tools fail to auto-import properly or are ignored/skipped by the extension, as they are not visible in the list of projects to import and do not import at all when opening any Java file in such projects.
Expected behavior
Java projects without build tools should be available as options to select in the import java projects list, allowing a non-build-tooled Java project to be imported correctly instead of skipped.
Environment
- Operating System: Windows
- JDK version: 21
- Visual Studio Code version: 1.111.0
- Java extension version: 1.53.0
Additional Information
When opening a Java file in a Java project without build tools, it will be automatically imported and added to the Java projects list, therefore auto-importing works fine as long as build tools projects aren't in the same workspace.
The best solution seems to be to add these types of projects to the list of importable Java projects and allow selection of non-build-tooled projects.