redhat-developer / redhat-developer/vscode-java
Code running in WSL:Ubuntu will not load the codestyle.xml located in the Windows filesystem
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 546
- Merge trung bình
- 20 giờ 1 phút
- Pull request đã merge (30 ngày)
- 11
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách truy vết cách giá trị Java › Format › Settings: Url được phân giải khi VS Code sử dụng WSL, tái hiện sự cố với các dạng đường dẫn Windows và WSL được liệt kê trong các bước. Hoàn thành có nghĩa là một Eclipse codestyle.xml trên hệ thống tệp Windows được tải và áp dụng trong quá trình định dạng dưới WSL.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, typescript, ubuntu, vscode
- Lĩnh vực
- operating-systems, tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100