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

vim.lsp.util.jump_to_location got deprecated in neovim HEAD #3336

Open
bellini666 opened this issue Oct 23, 2024 · 1 comment · May be fixed by #3335
Open

vim.lsp.util.jump_to_location got deprecated in neovim HEAD #3336

bellini666 opened this issue Oct 23, 2024 · 1 comment · May be fixed by #3335
Labels
bug Something isn't working

Comments

@bellini666
Copy link

Description

Using require("telescope.builtin").lsp_definitions() I got while running neovim HEAD:

- WARNING vim.lsp.util.jump_to_location is deprecated. Feature will be removed in Nvim 0.12
  - ADVICE:
    - stack traceback:
        /Users/thiago/.local/share/nvim/lazy/telescope.nvim/lua/telescope/builtin/__lsp.lua:245
        /opt/homebrew/Cellar/neovim/HEAD-230b0c7_1/share/nvim/runtime/lua/vim/lsp.lua:941
        /opt/homebrew/Cellar/neovim/HEAD-230b0c7_1/share/nvim/runtime/lua/vim/lsp/client.lua:681
        vim/_editor.lua:0

Neovim version

NVIM v0.11.0-dev-4183+g230b0c7f0-Homebrew
Build type: Release
LuaJIT 2.1.1727870382

Operating system and version

macOS 15.0.1

Telescope version / branch / rev

telescope HEAD

checkhealth telescope

telescope:                                 require("telescope.health").check()

Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.

Checking external dependencies ~
- OK rg: found ripgrep 14.1.1 (rev 4649aa9700)
- OK fd: found fd 10.2.0

===== Installed extensions ===== ~

Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured

Telescope Extension: `notify` ~
- No healthcheck provided

Steps to reproduce

  1. install neovim from HEAD or latest nightly
  2. run require("telescope.builtin").lsp_definitions()

Expected behavior

No deprecation warnings

Actual behavior

Deprecation warnings

Minimal config

local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "cache" } do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
  vim.fn.system {
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  }
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "nvim-telescope/telescope.nvim",
    dependencies = {
      "nvim-lua/plenary.nvim",
    },
    config = function()
      -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
      require("telescope").setup {}
    end,
  },
}

require("lazy").setup(plugins, {
  root = root .. "/plugins",
})
@bellini666 bellini666 added the bug Something isn't working label Oct 23, 2024
@searleser97
Copy link

kind of related to this issue, could you take a look at this one @jamestrew ? #3322

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

Successfully merging a pull request may close this issue.

2 participants