telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

Deprecated `supports_method` and `jump_to_location`

Open onosendi opened this issue 7 months ago • 3 comments

Description

  • WARNING client.supports_method is deprecated. Feature will be removed in Nvim 0.13
    • ADVICE:
      • use client:supports_method instead.
      • stack traceback: /Users/work/.local/share/nvim/lazy/telescope.nvim/lua/telescope/builtin/__lsp.lua:364 /Users/work/.local/share/nvim/lazy/telescope.nvim/lua/telescope/builtin/__lsp.lua:400 /Users/work/.local/share/nvim/lazy/telescope.nvim/lua/telescope/builtin/init.lua:543 /Users/work/.local/share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:188 /Users/work/.local/share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:259 /Users/work/.local/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108

~

  • WARNING vim.lsp.util.jump_to_location is deprecated. Feature will be removed in Nvim 0.12
    • ADVICE:
      • stack traceback: /Users/work/.local/share/nvim/lazy/telescope.nvim/lua/telescope/builtin/__lsp.lua:187 /opt/homebrew/Cellar/neovim/0.11.0/share/nvim/runtime/lua/vim/lsp/client.lua:679 vim/_editor.lua:0

Neovim version

NVIM v0.11.0
Build type: Release
LuaJIT 2.1.1744318430

Operating system and version

macOS 15.4.1

Telescope version / branch / rev

telescope 0.1.8

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
- OK fd: found fd 10.2.0

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

Telescope Extension: `session-lens` ~
- No healthcheck provided

Steps to reproduce

:Telescope lsp_definitions

Expected behavior

No response

Actual behavior

vim.lsp.util.jump_to_location is deprecated. Run ":checkhealth vim.deprecated" for more information

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",
})

onosendi avatar May 09 '25 15:05 onosendi

I think this issue is resolved on the master branch. I don't have the ability to push new releases so until someone who can does, the 0.1.x branch and releases of telescope can be considered loosely broken.

jamestrew avatar May 12 '25 01:05 jamestrew

Came here to report this, because I saw that vim.lsp.util.jump_to_location wasn't used at all in master. Thought I was going crazy.

nwehrlich avatar May 20 '25 00:05 nwehrlich

Looks like this was fixed on the master branch in October, would love to see a new release soon :pray:

haug1 avatar Jun 05 '25 13:06 haug1

@Conni2461 There hasn't been a release for over a year, is there a chance for one soon?

carbolymer avatar Jun 26 '25 14:06 carbolymer

Is this issue resolved or what ?

moeezali2375 avatar Jun 27 '25 19:06 moeezali2375

Is this issue resolved or what ?

A quick fix is to change the "branch" field in your plugin manager from "0.1.x" to "master". For example, in Lazy:

{
    'nvim-telescope/telescope.nvim',  branch = 'master',
      dependencies = { 'nvim-lua/plenary.nvim' }
    }

I believe this can lead to more bugs, since you're cloning the master branch, but while we are waiting for a release, it might help :)

barbosa46 avatar Jul 01 '25 13:07 barbosa46

I believe this can lead to more bugs, since you're cloning the master branch, but while we are waiting for a release, it might help :)

Yeah. I was worried about bringing other "don't want that" stuff in as things develop in master as well.

Happy to report that with Lazy at least (I don't know other package managers), you can do sha pinning. So I've chosen the current tip of master to bring in directly.

{ 'nvim-telescope/telescope.nvim', -- branch = '0.1.x', commit = 'b4da76be54691e854d3e0e02c36b0245f945c2c7', }

pmthexton avatar Jul 05 '25 17:07 pmthexton

Apparently, there has been a release three days ago. Is it working for you?

alecandido avatar Nov 10 '25 04:11 alecandido

is it fixed in the latest 0.1.9 release? PS: I see a merged PR in the release #2478 that fixed this but when i try to clone the 0.1.9 release it fails, and when cloning the 0.1.x branch it is still at the previous release? can someone let me know how do i upgrade?

krishna4040 avatar Nov 14 '25 01:11 krishna4040

can someone let me know how do i upgrade?

Here's what I learned digging into this:

lazy.nvim encodes default package versions in a static repository file that is updated with each lazy.nvim release. So until lazy.nvim gets a new release, it will install v0.1.8 of telescope.nvim by default.

You can override the target package version using the version property as per the lazy.nvim docs here, which IIUC causes Lazy to pull the latest matching package version via LuaRocks, ensuring you get an official release. I set this to ^0.1.9 and added a TODO in my config file to flag mentioning that the version property can be deleted once a new lazy.nvim release is available.

As other folks here have noted, you can alternatively specify a branch or commit, but using version seemed like the safer approach to me since (IIUC) it guarantees you get a released version of telescope.nvim.

wroever avatar Nov 20 '25 03:11 wroever

Change to tag in your return if you had branch like me. Ref: release v0.2.0

5ur avatar Dec 06 '25 13:12 5ur