Infinite recursion with `vim.tbl_extend` / `vim.tbl_deep_extend`
It looks like if the code includes vim.tbl_extend or vim.tbl_deep_extend, the exported .json just keeps on writing to disk without end.
`nvim -l reproduction.lua`
Reproduction file:
```lua
vim.opt.rtp:append(".")
local profile = require("profile")
profile.start("*")
local options = {}
for index=1,1 do
vim.tbl_extend("force", options, { {foo={another=8}} })
-- vim.tbl_deep_extend("force", options, { {foo={another=8}} })
end
profile.export("out.json")
```
Neovim version:
```
:version
NVIM v0.11.0-dev-1075+gb34e137e43
Build type: RelWithDebInfo
LuaJIT 2.1.1727870382
Run ":verbose version" for more info
```
关闭于 2024-11-09 0 条评论