redhat-developer / redhat-developer/vscode-java
Type checking and other features not working with Gradle project
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I used this extension to work on a Maven project originally, and it worked very well. The main features I'm interested in are type-checking (getting a warning if I call a method with bad arguments, or if I call a method that doesn't exist, say) and import warnings (being told I need to import something before using it, and being able to add the import with a single click).
Now I'm working on a Gradle project (an Android project), and these features no longer work. When I open the developer console, I see this type of error every time I open a .java file:
Error: src/main/java/com/google/android/exoplayer/demo [in demo] is not on its project's build path
Environment
- Operating System: Ubuntu 18.10
- JDK version: 1.8
- Visual Studio Code version: 1.31.1
- Java extension version: 0.39.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue に記載された環境の詳細を使って、Gradle ベースの Android プロジェクトで Java ファイルを開いたときに報告されたエラーを再現します。プロジェクトの build path がどのように検出されるかを追跡し、動作している Maven のケースと比較します。build path のエラーなしで型チェックとインポートの警告が機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, java
- 領域
- mobile-dev, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100