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

Error while fetching completions in cmdline mode #1052

Closed
2 tasks done
mhdna opened this issue Jan 21, 2025 · 0 comments
Closed
2 tasks done

Error while fetching completions in cmdline mode #1052

mhdna opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mhdna
Copy link

mhdna commented Jan 21, 2025

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

Related to #925.

Trying to run a specific command such as :Tabularize from the tabular package and potentially other packages, shows this error message:

Error while fetching completions: Vim:E120: Using <SID> not in a script context: <SID>CompleteTabularizeCommand

Surprisingly, completion for commands from the vim-eunuch package mentioned in the PR work just fine.

Relevant configuration

-- Run with `nvim -u repro.lua`

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

---@diagnostic disable-next-line: missing-fields
require("lazy.minit").repro({
	spec = {
		{
			"saghen/blink.cmp",
			-- please test on `main` if possible
			-- otherwise, remove this line and set `version = '*'`
			build = "cargo build --release",
			opts = {},
		},
		{ "godlygeek/tabular"},
	},
})

neovim version

v0.10.3

blink.cmp version

main, 5b83998

@mhdna mhdna added the bug Something isn't working label Jan 21, 2025
@Saghen Saghen closed this as completed in b19436e Jan 22, 2025
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

1 participant