I tried to run the command "LuaCacheProfile" and I was getting this error
Error executing Lua callback: ...share/nvim/lazy/impatient.nvim/lua/impatient/profile.lua:200: attempt to index a nil value
stack traceback:
...share/nvim/lazy/impatient.nvim/lua/impatient/profile.lua:200: in function 'print_profile'
...share/nvim/lazy/impatient.nvim/lua/impatient/profile.lua:327: in function <...share/nvim/lazy/impatient.nvim/lua/impatient/profile.lua:326>
I didn't see much through the whole code, but the one causing this problem was accessing a file that doesn't exists. so this pull request checks if the file exists or not before accessing the "size" of the file.
I tried to run the command "LuaCacheProfile" and I was getting this error
I didn't see much through the whole code, but the one causing this problem was accessing a file that doesn't exists. so this pull request checks if the file exists or not before accessing the "size" of the file.