You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==============================================================================
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 13.0.0
- OK fd: found fd 8.6.0
Steps to reproduce
Steps to reproduce
Create a new file named:
[Ar-h] foo bar (cpp)"
Run :Telescope find_files
Expected behavior
no error when cursor goes onto the file into the picker
Actual behavior
E5108: Error executing lua Vim:E944: Reverse range in character class
stack traceback:
[C]: in function 'expand'
....vim/plugged/telescope.nvim/lua/telescope/from_entry.lua:33: in function 'path'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:428: in function 'define_preview'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:388: in function 'preview'
...en/.vim/plugged/telescope.nvim/lua/telescope/pickers.lua:1075: in function 'refresh_previewer'
...en/.vim/plugged/telescope.nvim/lua/telescope/pickers.lua:1028: in function 'set_selection'
...en/.vim/plugged/telescope.nvim/lua/telescope/pickers.lua:792: in function 'move_selection'
...vim/plugged/telescope.nvim/lua/telescope/actions/set.lua:39: in function 'run_replace_or_original'
....vim/plugged/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'shift_selection'
...im/plugged/telescope.nvim/lua/telescope/actions/init.lua:81: in function 'run_replace_or_original'
....vim/plugged/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
...n/.vim/plugged/telescope.nvim/lua/telescope/mappings.lua:352: in function 'execute_keymap'
[string ":lua"]:1: in main chunk
Minimal config
vim.cmd[[set runtimepath=$VIMRUNTIME]]vim.cmd[[set packpath=/tmp/nvim/site]]localpackage_root='/tmp/nvim/site/pack'localinstall_path=package_root..'/packer/start/packer.nvim'localfunctionload_plugins()
require('packer').startup {
{
'wbthomason/packer.nvim',
{
'nvim-telescope/telescope.nvim',
requires= {
'nvim-lua/plenary.nvim',
{ 'nvim-telescope/telescope-fzf-native.nvim', run='make' },
},
},
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config= {
package_root=package_root,
compile_path=install_path..'/plugin/packer_compiled.lua',
display= { non_interactive=true },
},
}
end_G.load_config=function()
require('telescope').setup()
require('telescope').load_extension('fzf')
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUEendifvim.fn.isdirectory(install_path) ==0thenprint("Installing Telescope and dependencies.")
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
endload_plugins()
require('packer').sync()
vim.cmd[[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
The text was updated successfully, but these errors were encountered:
so I managed to fixed the issue by doing this change, it seems like everything else is working as well as expected so I don't think I broke anything, but obviously I don't really know the project well.
@Conni2461 do you have any comments or suggestions? I'm asking you because there is a TODO with your name on that file so you might have some comments
diff --git a/lua/telescope/from_entry.lua b/lua/telescope/from_entry.lua
index 486b57c..11c4792 100644
--- a/lua/telescope/from_entry.lua
+++ b/lua/telescope/from_entry.lua
@@ -30,7 +30,8 @@ functionfrom_entry.path(entry, validate, escape)
-- TODO(conni2461): we are not going to return the expanded path because
-- this would lead to cache misses in the perviewer.
-- Requires overall refactoring in previewer interface
- local expanded = vim.fn.expand(path)
+ local escaped_path = vim.fn.escape(path, '?*[]')
+ local expanded = vim.fn.expand(escaped_path)
if (vim.fn.filereadable(expanded) + vim.fn.isdirectory(expanded)) == 0 thenreturn
end
Description
Telescope find_files doesn't handle well file names containing specific regex like substrings.
Neovim version
Operating system and version
macOs 12.6.2
Telescope version / branch / rev
04af51d
checkhealth telescope
Steps to reproduce
Steps to reproduce
[Ar-h] foo bar (cpp)"
Expected behavior
no error when cursor goes onto the file into the picker
Actual behavior
E5108: Error executing lua Vim:E944: Reverse range in character class
stack traceback:
[C]: in function 'expand'
....vim/plugged/telescope.nvim/lua/telescope/from_entry.lua:33: in function 'path'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:428: in function 'define_preview'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:388: in function 'preview'
...en/.vim/plugged/telescope.nvim/lua/telescope/pickers.lua:1075: in function 'refresh_previewer'
...en/.vim/plugged/telescope.nvim/lua/telescope/pickers.lua:1028: in function 'set_selection'
...en/.vim/plugged/telescope.nvim/lua/telescope/pickers.lua:792: in function 'move_selection'
...vim/plugged/telescope.nvim/lua/telescope/actions/set.lua:39: in function 'run_replace_or_original'
....vim/plugged/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'shift_selection'
...im/plugged/telescope.nvim/lua/telescope/actions/init.lua:81: in function 'run_replace_or_original'
....vim/plugged/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
...n/.vim/plugged/telescope.nvim/lua/telescope/mappings.lua:352: in function 'execute_keymap'
[string ":lua"]:1: in main chunk
Minimal config
The text was updated successfully, but these errors were encountered: