redhat-developer / redhat-developer/vscode-java

Incorrect source level detected using tiles-maven-plugin

オープン
#594 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug Maven upstream
主要言語
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
  1. clone https://github.com/HalBuilder/halbuilder-core from github
  2. "code ." in the root directory, wait for project parsing etc.
Current Result
  1. Open NamespaceManager.java - lambda calls show as errors
Expected Result
  1. lambda calls show correctly as valid, using the desired source/target levels.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。