redhat-developer / redhat-developer/vscode-java
Code running in WSL:Ubuntu will not load the codestyle.xml located in the Windows filesystem
オープン
まだ誰も着手していません。
documentation
enhancement
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I found that vscode cannot load an eclipse profile if vscode is using WSL as the terminal and the codestyle file is in the Windows filesystem. This I found is true regardless of the url syntax for local files, i.e., D:\path\to\file or /d/path/to/file. I had to copy the file into my WSL filesystem and reference is relative to the WSL root, i.e., /home/path/to/file.
Environment
- Operating System: Windows_NT x64 10.0.19042 + WSLv2 + Ubuntu 20.10
- JDK version: OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10)
- Visual Studio Code version: 1.52.1, Electron 9.3.5
- Java extension version:
Steps To Reproduce
- configure Java › Format › Settings: Url to be drive_letter:\path\to\eclipse_codestyle.xml
- confirm the settings aren't used when formatting file
- configure Java › Format › Settings: Url to be file:///wsl_drive_mnt/path/to/eclipse_codestyle.xml
- confirm the settings aren't used when formatting file
- configure Java › Format › Settings: Url to be file:///path/to/eclipse_codestyle.xml
- confirm file is used when formatting file
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、VS Code が WSL を使用するときに Java › Format › Settings: Url の値がどのように解決されるかを追跡し、手順に記載されている Windows パス形式と WSL パス形式で問題を再現します。完了条件は、Windows ファイルシステム上の Eclipse codestyle.xml が読み込まれ、WSL 環境でのフォーマット時に適用されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript, ubuntu, vscode
- 領域
- operating-systems, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100