redhat-developer / redhat-developer/vscode-java
Multi-module Maven project does not work
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 546
- Ø Merge
- 20 Std. 1 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
I created a multi-module Maven project and tried to open the root folder in Visual Studio Code. When I try to work with any of the sub-modules, I do not get any linting, formatting, refactoring, etc... I tried Add Folder to Java Source Path but that does not work either. I have no issues working with this project in other IDE's, including Eclipse.
Environment
- Operating System: Windows 10
- JDK version: 1.8.0.201
- Visual Studio Code version: 1.14.1
- Java extension version: 0.55.1
Steps To Reproduce
- Clone example project:
git clone https://github.com/hashdelta/stix-pattern-evaluator-examples.git
cd stix-pattern-evaluator-examples
git checkout develop
- Open project in VSCode
Current Result
The plugin does not recognize the children modules, thus does not provide any kind of Java semantics support - no linting, formatting, refactoring, etc...
Expected Result
You should be able to get semantics support for any Java class when you open the parent. It should be one cohesive project.
Additional Informations
The only way to work with the sub modules is by opening the module in its own VSCode instance. This does not work for me, as one of my projects consists of over 20+ modules.
I have verified in Eclipse, NetBeans, and IntelliJ that the GitHub project has no issues.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Klonen Sie das Repository stix-pattern-evaluator-examples, wechseln Sie zu develop und öffnen Sie seinen Stammordner in VS Code. Vergleichen Sie das auf Stammebene geöffnete Projekt damit, ein Modul separat zu öffnen, und überprüfen Sie Linting, Formatierung und Refactoring über die untergeordneten Module hinweg. Als abgeschlossen gilt die Aufgabe, wenn die Java-Semantik für Klassen in jedem Untermodul kohärent funktioniert; keine Quelldatei oder kein Test ist angegeben, daher muss zuerst der relevante Pfad für den Projektimport gefunden werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, typescript, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100