Plugin incorrectly assumes that it is running in an environment where a "browser" is available, making enrollment impossible
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- vim
- Ambito
- authentication, developer-experience
Direzione di ricerca
Inizia dal punto di ingresso della configurazione di :Copilot e riproduci il problema quando xdg-open non è disponibile. Segui la richiesta di autenticazione che invoca il browser, quindi confrontala con il flusso alternativo del dispositivo descritto nell’issue. Il lavoro è completo quando la configurazione fornisce istruzioni utilizzabili se non è disponibile alcun launcher del browser e l’autenticazione può comunque essere completata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Vim Script
- Stelle
- 11.7k
- Fork
- 812
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/copilot.vim
-
No link to DeepWiki Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
github/copilot.vim#303 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
github/copilot.vim#276 · 1 commento · 1 reazione ·
-
Neomarley Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
github/copilot.vim#304 ·
-
Readme. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 20/100
github/copilot.vim#302 · 4 commenti ·
-
Micky Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
github/copilot.vim#301 ·
Tutte le issue di github/copilot.vim
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
canonical/paas-charm#368 · 1 commento ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
palladius/rails8-app-on-gcp#142 ·
-
addition to tracking list Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
StevenBlack/hosts#3256 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
corsairdev/corsair#1764 ·
-
oblt-aw/detector/security
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100