redhat-developer / redhat-developer/vscode-java
Incorrect source level detected using tiles-maven-plugin
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
We use the tiles-maven-plugin ( caveat, I'm also a maintainer ) for our projects and include the maven-compiler-plugin settings in a tile, which gets resolved as a parent pom in the effective-pom.
vscode-java however seems to be only looking at the XML file, and not the effective pom when detecting source/target levels - this causes a lot of strange and confusing compile/test issues when building in a terminal, and tabbing back into vscode which seems to rewrite the .class files, causing Maven a lot of confusion ( after quitting vscode - all my odd build issues go away ).
Environment
- Operating System: Mac OS
- JDK version: JDK 1.8
- Visual Studio Code version: 1.25.1
- Java extension version: 0.28
Steps To Reproduce
- clone https://github.com/HalBuilder/halbuilder-core from github
- "code ." in the root directory, wait for project parsing etc.
Current Result
- Open
NamespaceManager.java- lambda calls show as errors
Expected Result
- lambda calls show correctly as valid, using the desired source/target levels.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
halbuiler-core を使って記載された手順に従い、プロジェクトの解析動作を再現し、ラムダ呼び出しが誤って報告される NamespaceManager.java を調査します。まず、XML と有効な POM の source/target レベルを、tiles-maven-plugin によって提供される maven-compiler-plugin の設定も含めて比較します。目的のレベルが検出され、ラムダ呼び出しが有効として扱われ、最終的なビルドで競合が発生しなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system, developer-experience
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100