Saghen / blink.cmp

Performant, batteries-included completion plugin for Neovim
MIT License
1.47k stars 82 forks source link

Fail to install on Ubuntu 22.04 #425

Closed robsonpeixoto closed 20 hours ago

robsonpeixoto commented 20 hours ago

Make sure you have done the following

Bug Description

Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:10: Error while downloading blink.cmp pre-built binary: Failed to download pre-build binaries: curl: option --retry=2: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

stack traceback:
    [C]: in function 'error'
    .../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:10: in function ''
    vim/_editor.lua: in function <vim/_editor.lua:0>
❯ /usr/bin/curl --version
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.18
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd
❯ /usr/bin/curl --help
Usage: curl [options...] <url>
 -d, --data <data>          HTTP POST data
 -f, --fail                 Fail silently (no output at all) on HTTP errors
 -h, --help <category>      Get help for commands
 -i, --include              Include protocol response headers in the output
 -o, --output <file>        Write to file instead of stdout
 -O, --remote-name          Write output to a file named as the remote file
 -s, --silent               Silent mode
 -T, --upload-file <file>   Transfer local FILE to destination
 -u, --user <user:password> Server user and password
 -A, --user-agent <name>    Send User-Agent <name> to server
 -v, --verbose              Make the operation more talkative
 -V, --version              Show version number and quit

This is not the full help, this menu is stripped into categories.
Use "--help category" to get an overview of all categories.
For all options use the manual or "--help all".

Relevant configuration

No response

neovim version

v0.10.2

blink.cmp version: branch, tag, or commit

0.7.0

mohammad-amin-khajeh commented 20 hours ago

I'm having the same problem on arch linux

rienmack commented 20 hours ago

Same issue on MacOS 👍 Occurs on update and clean install as well

adelarsq commented 20 hours ago

Same issue on Windows. Occurs on both update and clean install. Using curl 8.11

robsonpeixoto commented 20 hours ago

For some reason, nvim.system ignores the PATH variable and always uses the system curl command.

❯ command -v curl
/home/linuxbrew/.linuxbrew/bin/curl

❯ $(command -v curl) --version
curl 8.11.0 (x86_64-pc-linux-gnu) libcurl/8.11.0 OpenSSL/3.4.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libssh2/1.11.1 nghttp2/1.64.0 librtmp/2.3 OpenLDAP/2.6.9
Release-Date: 2024-11-06
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

❯ /usr/bin/curl --version
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.18
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

The curl installed from homebrew/linuxbrew has all "required" parameters.

adelarsq commented 20 hours ago

@Saghen This fix was just as fast as the plugin itself. Good job!

I have confirmed that its working on Windows.

robsonpeixoto commented 19 hours ago

Thanks @Saghen. Is working on Ubuntu 22.04.