redhat-developer / redhat-developer/vscode-java
"No build tools" Java projects auto-import skipped due to presence of "build tools" Java projects in same workspace
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 2.3k
- Forks
- 546
- Merge moyen
- 20 h 1 min
- PR mergées (30 j)
- 11
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Reproduisez le problème dans Visual Studio Code avec un workspace contenant à la fois des projets Maven ou Gradle et des projets sans outils de build, puis nettoyez le workspace du Java language server afin de déclencher l’importation automatique au démarrage. Suivez la liste des projets importables et vérifiez que les projets sans outils de build y apparaissent et peuvent être sélectionnés et importés sans ouvrir d’abord un fichier Java.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java, typescript, vscode
- Domaine
- developer-experience, tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100