Plugin incorrectly assumes that it is running in an environment where a "browser" is available, making enrollment impossible
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 58/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- vim
- Domínio
- authentication, developer-experience
Direção de pesquisa
Comece pelo ponto de entrada de configuração do :Copilot e reproduza a falha quando xdg-open não estiver disponível. Rastreie a solicitação de autenticação que invoca o navegador e compare-a com o fluxo alternativo de dispositivo descrito na issue. Considera-se concluído quando a configuração fornecer instruções utilizáveis quando nenhum launcher de navegador estiver disponível e a autenticação ainda puder ser concluída.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Vim Script
- Estrelas
- 11.7k
- Forks
- 812
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de github/copilot.vim
-
No link to DeepWiki Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
github/copilot.vim#303 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
github/copilot.vim#276 · 1 comentário · 1 reação ·
-
Neomarley Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 1/100
github/copilot.vim#304 · 1 reação ·
-
Readme. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 20/100
github/copilot.vim#302 · 4 comentários ·
-
Micky Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 1/100
github/copilot.vim#301 ·
Todas as issues de github/copilot.vim
Issues semelhantes
-
good first issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
AOSSIE-Org/DebateAI#582 · 2 comentários ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
oasisprotocol/oasis-sdk#2523 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
cost:cheap severity:medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
fairagro/m4.2_sql_to_arc#227 ·