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

Telescope commands not working (Error) #3428

Open
Frusadev opened this issue Mar 13, 2025 · 5 comments
Open

Telescope commands not working (Error) #3428

Frusadev opened this issue Mar 13, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@Frusadev
Copy link

Frusadev commented Mar 13, 2025

Description

Just as the title says... There's an error each time i try to run telescope commands

Neovim version

NVIM v0.10.4
Build type: RelWithDebInfo
LuaJIT 2.1.1720049189

Operating system and version

Fedora Workstation 41

Telescope version / branch / rev

0.1.x

checkhealth telescope

==============================================================================
telescope: health#telescope#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.1.0

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

Telescope Extension: `neovim-project` ~
- No healthcheck provided

Steps to reproduce

  1. :Telescope find_files
    Or any other Telescope command

Expected behavior

Should open a popup window and list files in the current working dir.

Actual behavior

Here's the actual error:

Error  06:16:28 PM msg_show.lua_error   Telescope colorscheme Error executing Lua callback: ...Scope.nvim/lua/telescope/finders/async_static_finder.lua:7: attempt to call field 'islist' (a nil value)
stack traceback:
	...Scope.nvim/lua/telescope/finders/async_static_finder.lua:7: in function 'new_table'
	...lazy/teleScope.nvim/lua/telescope/builtin/__internal.lua:995: in function 'v'
	...lazy/teleScope.nvim/lua/telescope/builtin/__internal.lua:1409: in function 'v'
	.../nvim/lazy/teleScope.nvim/lua/telescope/builtin/init.lua:543: in function <.../nvim/lazy/teleScope.nvim/lua/telescope/builtin/init.lua:502>
	...share/nvim/lazy/teleScope.nvim/lua/telescope/command.lua:188: in function 'run_command'
	...share/nvim/lazy/teleScope.nvim/lua/telescope/command.lua:259: in function 'load_command'
	...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:107>
Video_2025-03-13_18-21-59.mp4

Minimal config

## Telescope installation

  {
    "nvim-telescope/teleScope.nvim",
    tag = "0.1.8",
    config = function()
      return require("configs.telescope")
    end,
  },


## Telescope config


require("telescope").setup({
  file_ignore_patterns = { "node%_modules/.*", ".git/*" },
  defaults = {
    sorting_strategy = "ascending",
    preview = {
      enable = true,
    },
    layout_config = {
      horizontal = {
        preview_width = 0.55,
        preview_cutoff = 0,
      },
      width = 0.87,
      height = 0.80,
    },
  },
  pickers = {
    git_files = {
       show_untracked = true, -- Includes untracked files
    },
  },
})
@Frusadev Frusadev added the bug Something isn't working label Mar 13, 2025
@DanyloVolchenko
Copy link

DanyloVolchenko commented Mar 14, 2025

have the same issue with :Telescope keymaps<CR>:

Error executing Lua callback: ...ges/start/telescope.nvim/lua/telescope/actions/utils.lua:0: attempt to index a nil value
stack traceback:
	...ges/start/telescope.nvim/lua/telescope/actions/utils.lua: in function ''
	...ckages/start/telescope.nvim/lua/telescope/make_entry.lua: in function <...ckages/start/telescope.nvim/lua/telescope/make_entry.lua:0>
	...scope.nvim/lua/telescope/finders/async_static_finder.lua: in function 'new_table'
	...tart/telescope.nvim/lua/telescope/builtin/__internal.lua: in function ''
	...tart/telescope.nvim/lua/telescope/builtin/__internal.lua: in function ''
	...ages/start/telescope.nvim/lua/telescope/builtin/init.lua: in function <...ages/start/telescope.nvim/lua/telescope/builtin/init.lua:0>
	...mPackages/start/telescope.nvim/lua/telescope/command.lua: in function ''
	...mPackages/start/telescope.nvim/lua/telescope/command.lua: in function 'load_command'
	...telescope.nvim-scm-1-unstable-scm-1/plugin/telescope.lua: in function <...telescope.nvim-scm-1-unstable-scm-1/plugin/telescope.lua:0 

same with pure function call:

:lua require('telescope.builtin').keymaps()
E5108: Error executing lua ...ges/start/telescope.nvim/lua/telescope/actions/utils.lua:0: attempt to index a nil value
stack traceback:
	...ges/start/telescope.nvim/lua/telescope/actions/utils.lua: in function ''
	...ckages/start/telescope.nvim/lua/telescope/make_entry.lua: in function <...ckages/start/telescope.nvim/lua/telescope/make_entry.lua:0>
	...scope.nvim/lua/telescope/finders/async_static_finder.lua: in function 'new_table'
	...tart/telescope.nvim/lua/telescope/builtin/__internal.lua: in function ''
	...tart/telescope.nvim/lua/telescope/builtin/__internal.lua: in function ''
	...ages/start/telescope.nvim/lua/telescope/builtin/init.lua: in function 'keymaps'
	[string ":lua"]:1: in main chunk

config:

_: {
  plugins.telescope = {
    enable = true;
    extensions = {
      file-browser = {
        enable = true;
      };
      ui-select = {
        enable = true;
      };
      frecency = {
        enable = true;
        settings.disable_devicons = true;
      };
      fzf-native = {
        enable = true;
      };
    };
    settings = {
      defaults = {
        layout_config = {
          horizontal = {
            prompt_position = "top";
          };
        };
        sorting_strategy = "ascending";
      };
    };
    keymaps = {
...
};

  extraConfigLua = ''
    require("telescope").setup{
      pickers = {
        colorscheme = {
          enable_preview = true
        }
      }
    }
    require('telescope').load_extension('projects')
  '';
}
:checkhealth telescope

==============================================================================
telescope: health#telescope#check

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

Checking external dependencies ~
- OK rg: found ripgrep 11.0.2
- WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities

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

Telescope Extension: `file_browser` ~
- No healthcheck provided

Telescope Extension: `frecency` ~
- OK Neovim version is 0.10 or higher.
- OK nvim-web-devicons installed.
- OK ripgrep installed.

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

Telescope Extension: `git_worktree` ~
- No healthcheck provided

Telescope Extension: `lazygit` ~
- No healthcheck provided

Telescope Extension: `projects` ~
- No healthcheck provided

Telescope Extension: `ui-select` ~
- No healthcheck provided
vi --version
NVIM v0.10.4
Build type: Release
LuaJIT 2.1.1713773202

OS: ubuntu 20.04 LTS

@Frusadev
Copy link
Author

I've found the source of the error.
@DanyloVolchenko maybe check for the presence of this in your config.

  {
    "nvim-telescope/teleScope.nvim",
    tag = "0.1.8",
    config = function()
      return require("configs.telescope")
    end,
  },

It seems to be installing 0.1.8 version of telescope. Removing that and running Lazy sync solved the issue.

@Frusadev Frusadev reopened this Mar 14, 2025
@Frusadev
Copy link
Author

Frusadev commented Mar 14, 2025

I reopened because the 0.1.8 version does seem to be broken. I started getting the errors after a system update. But the Master branch works perfectly.

@DanyloVolchenko
Copy link

@Frusadev Thank you for answer.

@DanyloVolchenko
Copy link

DanyloVolchenko commented Mar 21, 2025

I reopened because the 0.1.8 version does seem to be broken. I started getting the errors after a system update. But the Master branch works perfectly.

can't report the same, the error changed, but it's still present.

telescope version:

		package = pkgs.fetchFromGitHub {
						owner = "nvim-telescope";
						repo = "telescope.nvim";
						rev = "a4ed82509cecc56df1c7138920a1aeaf246c0ac5"; # last commit from master branch
						hash = "sha256-e1ulhc4IIvUgpjKQrSqPY4WpXuez6wlxL6Min9U0o5Q=";
					};

all the remaining info left as is

Error:
   Error  12:53:39 msg_show.lua_error   Telescope keymaps Error executing Lua callback: ...vimPackages/start/source/lua/telescope/actions/utils.lua:127: attempt to index local 'fname' (a nil value)
stack traceback:
	...vimPackages/start/source/lua/telescope/actions/utils.lua:127: in function 'get_desc'
	...NeovimPackages/start/source/lua/telescope/make_entry.lua:854: in function 'entry_maker'
	...art/source/lua/telescope/finders/async_static_finder.lua:17: in function 'new_table'
	...ckages/start/source/lua/telescope/builtin/__internal.lua:1183: in function 'v'
	...ckages/start/source/lua/telescope/builtin/__internal.lua:1409: in function 'v'
	...ovimPackages/start/source/lua/telescope/builtin/init.lua:543: in function <...ovimPackages/start/source/lua/telescope/builtin/init.lua:502>
	.../myNeovimPackages/start/source/lua/telescope/command.lua:188: in function 'run_command'
	.../myNeovimPackages/start/source/lua/telescope/command.lua:259: in function 'load_command'
	...460j15nq6zc05bl4pkg109vwlhkv-source/plugin/telescope.lua:108: in function <...460j15nq6zc05bl4pkg109vwlhkv-source/plugin/telescope.lua:107>

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

2 participants