redhat-developer / redhat-developer/vscode-java
Imports break on git checkout
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ả
Issue Type: Bug
- Have a java codebase that is heavy on git branches and 3rd party libraries. (The repo in question is at github.com/frc999/frc-2020)
- Switch branches (this always happens if you switch branches in another window: sometimes if you switch within VS code)
- A random assortments of imports will "not be found", causing errors to show up wherever they are used.
- To clear the issue, one must run "clean the java language server workspace"
As the git expert on staff, this is annoying, to the point where I am considering giving the key command a keybinding.
Extension version: 0.55.1
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18362
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: enabled rasterization: enabled skia_renderer: disabled_off surface_control: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 7.88GB (2.62GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 0% |
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
Tái hiện lỗi bằng repository frc-2020 được nêu, các bước chuyển branch và lệnh dọn dẹp workspace của Java language server. Theo dõi cách tiện ích mở rộng VS Code xử lý việc thay đổi branch và phân giải import; công việc được hoàn tất khi các import vẫn được tìm thấy sau khi chuyển branch mà không cần dọn dẹp workspace thủ công.
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, vscode
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 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
- 35/100