Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install on Ubuntu 22.04 #425

Closed
2 tasks done
robsonpeixoto opened this issue Dec 2, 2024 · 6 comments
Closed
2 tasks done

Fail to install on Ubuntu 22.04 #425

robsonpeixoto opened this issue Dec 2, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@robsonpeixoto
Copy link

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

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

@robsonpeixoto robsonpeixoto added the bug Something isn't working label Dec 2, 2024
@mohammad-amin-khajeh
Copy link

I'm having the same problem on arch linux

@rienmack
Copy link

rienmack commented Dec 2, 2024

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

@adelarsq
Copy link

adelarsq commented Dec 2, 2024

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

@robsonpeixoto
Copy link
Author

robsonpeixoto commented Dec 2, 2024

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
Copy link

adelarsq commented Dec 2, 2024

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

I have confirmed that its working on Windows.

@robsonpeixoto
Copy link
Author

Thanks @Saghen. Is working on Ubuntu 22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants