Plugin incorrectly assumes that it is running in an environment where a "browser" is available, making enrollment impossible
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- vim
調査の方向性
:Copilot のセットアップエントリーポイントから始め、xdg-open が利用できない場合の失敗を再現します。ブラウザーを起動する認証リクエストを追跡し、issue に記載されている代替のデバイスフローと比較します。ブラウザーランチャーが利用できない場合でもセットアップが使用可能な手順を提供し、認証を完了できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Vim Script
- スター
- 11.7k
- フォーク
- 812
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot.vim のほかの issue
-
No link to DeepWiki オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
github/copilot.vim#303 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/copilot.vim#276 · コメント 1 件 · リアクション 1 件 ·
-
Neomarley オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
github/copilot.vim#304 ·
-
Readme. オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
github/copilot.vim#302 · コメント 4 件 ·
-
Micky オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
github/copilot.vim#301 ·
github/copilot.vim の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
canonical/paas-charm#368 · コメント 1 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
palladius/rails8-app-on-gcp#142 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
StevenBlack/hosts#3256 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
corsairdev/corsair#1764 ·
-
oblt-aw/detector/security
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100