redhat-developer / redhat-developer/vscode-java
Extension overwrites JAVA_HOME set by Nix with SDKMAN!
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 use Nix to manage my JDKs. All Nix packages for the different JDK distributions also configure the JAVA_HOME environment variable. This configuration takes precedence over SDKMAN!. In fact, from a Terminal window, everything works correctly. However, when opening the project in Visual Studio Code, the "Language Support for Java(TM) by Red Hat" extension seems to overwrite the value set by Nix with the one from SDKMAN!, even if there's no .sdkmanrc file in that project and the whole session is within the Nix environment context.
I have created a repo with a minimal setup and detailed instructions to reproduce the error (issue number 2 in the README).
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 với repository tái hiện tối thiểu được liên kết trong issue, làm theo issue 2 trong README của repository đó. So sánh JAVA_HOME trong một terminal với giá trị khi mở project trong Visual Studio Code, bao gồm ngữ cảnh Nix của session và việc không có file .sdkmanrc. Được coi là hoàn thành khi extension không còn ghi đè JAVA_HOME của Nix trong thiết lập này.
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, nixos, typescript, vscode
- Lĩnh vực
- developer-experience, 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
- 45/100