Before this pull I would get this error with the following config:
Error:
E5108: Error executing lua: ...s/saint/.local/share/nvim/lazy/xbase/lua/xbase/state.lua:14: attempt to get length of local 'devices' (a nil value)
stack traceback:
...s/saint/.local/share/nvim/lazy/xbase/lua/xbase/state.lua:14: in function 'assert_devices'
...s/saint/.local/share/nvim/lazy/xbase/lua/xbase/state.lua:41: in function 'devices'
.../.local/share/nvim/lazy/xbase/lua/xbase/pickers/util.lua:90: in function 'iterate'
.../.local/share/nvim/lazy/xbase/lua/xbase/pickers/util.lua:112: in function 'generate_entries'
...al/share/nvim/lazy/xbase/lua/xbase/pickers/telescope.lua:50: in function 'find'
...al/share/nvim/lazy/xbase/lua/xbase/pickers/telescope.lua:76: in function <...al/share/nvim/lazy/xbase/lua/xbase/pickers/telescope.lua:73>
Press ENTER or type command to continue
Config:
require'xbase'.setup({
sourcekit = {
},
simctl = {
iOS = {
"iPhone 14"
},
watchOS = {}, -- all available devices
tvOS = {}, -- all available devices
},
})
With this commit, it fixes the issue and works as expected, without error.
Before this pull I would get this error with the following config:
Error:
Config:
With this commit, it fixes the issue and works as expected, without error.