danielfalk / smart-open.nvim

Neovim plugin for fast file-finding
MIT License
498 stars 25 forks source link

virtual_name.lua:26: attempt to perform arithmetic on local 'last' (a nil value) #70

Open stevenctl opened 4 months ago

stevenctl commented 4 months ago
Error executing Lua callback: ...azy/smart-open.nvim/lua/smart-open/util/virtual_name.lua:26: attempt to perform arithmetic on local 'last' (a nil value)
stack traceback:
...azy/smart-open.nvim/lua/smart-open/util/virtual_name.lua:26: in function 'get_pos'
...azy/smart-open.nvim/lua/smart-open/util/virtual_name.lua:30: in function 'get_virtual_name'
...m/lua/telescope/_extensions/smart_open/finder/finder.lua:36: in function 'Finder'
...pen.nvim/lua/telescope/_extensions/smart_open/picker.lua:33: in function 'start'
...smart-open.nvim/lua/telescope/_extensions/smart_open.lua:23: in function <...smart-open.nvim/lua/telescope/_extensions/smart_open.lua:10>                                               .../nvim-data/lazy/telescope.nvim/lua/telescope/command.lua:193: in function 'run_command'
.../nvim-data/lazy/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
...Local/nvim-data/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...Local/nvim-data/lazy/telescope.nvim/plugin/telescope.lua:107>
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info
PS C:\Users\Steven\gamedev\short-dungeon\godot> nvim -V1 --version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068

Running on Windows 11. It worked for a little while, I'm not really sure what exactly broke. I'm giving it no custom options. The same config works fine on my Linux setup.

janpeterd commented 4 months ago

I have the same issue on my windows 11 machine

danielfalk commented 3 months ago

I don't have a windows machine to support windows. I'd take a PR.