Plugin incorrectly assumes that it is running in an environment where a "browser" is available, making enrollment impossible
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- vim
- Lĩnh vực
- authentication, developer-experience
Hướng nghiên cứu
Bắt đầu với điểm vào thiết lập :Copilot và tái hiện lỗi khi xdg-open không khả dụng. Theo dõi yêu cầu xác thực gọi trình duyệt, sau đó so sánh với luồng thiết bị thay thế được mô tả trong issue. Hoàn thành có nghĩa là thiết lập cung cấp hướng dẫn có thể sử dụng khi không có trình khởi chạy trình duyệt và việc xác thực vẫn có thể hoàn tất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It seems that the GitHub Copilot Vim plug-in was developed with the assumption that it is running in a fully graphical desktop environment where tools such as "a browser" and xdg-open are available, making the use of the plug-in impossible unless these (otherwise not mentioned in the README!) features are satisfied.
System version(s):
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
❯ nvim -v
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
77 ──────────────────────────────────────────────────────────────────────────────
78 vim.lsp: require("vim.lsp.health").check()
79
80 - LSP log level : WARN
81 - Log path: /home/whisperity/.local/state/nvim/lsp.log
82 - Log size: 4 KB
83
84 vim.lsp: Active Clients
85 - GitHub Copilot (id=1, root_dir=nil)
After installing the plug-in and executing :Copilot setup, the following happens:
Error detected while processing function copilot#Command[33]..function copilot#Command[25]..17[35]..<SNR>174_RequestWait:
line 2:
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/lsp.lua:76: Vim:LSP[GitHub Copilot]: Error SERVER_REQUEST_HANDLER_ERROR: "Vim:E475: Invalid value for argument cmd:
'xdg-open' is not executable"
stack traceback:
[C]: in function 'nvim_command'
/usr/share/nvim/runtime/lua/vim/lsp.lua:76: in function 'err_message'
/usr/share/nvim/runtime/lua/vim/lsp.lua:1086: in function 'cb'
vim/_editor.lua:263: in function <vim/_editor.lua:262>
Press ENTER or type command to continue
Other tools, such as the gh cli shows an alternate flow to authenticate:
! First copy your one-time code: XXXX-YYYY
Press Enter to open https://github.com/login/device in your browser...
Opening this page and pasting the token and then running :Copilot status thankfully reports Ready, so the solution here would be to detect the failure of calling xdg-open or the browser and then creating an interactive message that leads the developer to open the browser on whatever other device they have and do the authentication flow there.
- Ngôn ngữ chính
- Vim Script
- Star
- 11.7k
- Fork
- 812
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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.
Issue khác của github/copilot.vim
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot.vim#276 · 1 bình luận · 1 reaction ·
-
Readme. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 20/100
github/copilot.vim#302 ·
-
Micky Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
github/copilot.vim#301 ·
-
What ? $ issues amount to credit Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
github/copilot.vim#300 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
github/copilot.vim#299 ·
Tất cả issue của github/copilot.vim
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
avniproject/avni-client#2135 ·
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
api7/lua-resty-saml#63 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100