nvim-telescope / telescope-smart-history.nvim

A history implementation that memorizes prompt input for a specific context
MIT License
141 stars 5 forks source link

Error when search for a function declaration #6

Closed steliyan closed 1 year ago

steliyan commented 2 years ago
  1. Open a directory
  2. Use Telescope's live_grep
  3. Enter x()
  4. Press Enter (twice, if no matches are found)

Expected: Nothing happens. Actual: Error is shown.

It seems sqlite.lua tries to invoke the function.

E5108: Error executing lua ....local/share/nvim/plugged/sqlite.lua/lua/sqlite/stmt.lua:35: sqlite.lua: sql statement parse, , stmt:
 `insert into history (content, cwd, picker) values(x(), :cwd, :picker)`, err: `(`no such function: x`)`
stack traceback:
        [C]: in function 'assert'
        ....local/share/nvim/plugged/sqlite.lua/lua/sqlite/stmt.lua:35: in function 'parse'
        ...n/.local/share/nvim/plugged/sqlite.lua/lua/sqlite/db.lua:447: in function 'fn'
        ....local/share/nvim/plugged/sqlite.lua/lua/sqlite/defs.lua:639: in function 'wrap_stmts'
        ...n/.local/share/nvim/plugged/sqlite.lua/lua/sqlite/db.lua:445: in function 'insert'
        .../.local/share/nvim/plugged/sqlite.lua/lua/sqlite/tbl.lua:380: in function 'insert'
        ...history.nvim/lua/telescope/_extensions/smart_history.lua:68: in function '_append'
        ...plugged/telescope.nvim/lua/telescope/actions/history.lua:108: in function 'append'
        ...im/plugged/telescope.nvim/lua/telescope/actions/init.lua:245: in function <...im/plugged/telescope.nvim/lua/telescope/ac
tions/init.lua:244>
        ...nvim/plugged/telescope.nvim/lua/telescope/actions/mt.lua:58: in function 'key_func'
        ...e/nvim/plugged/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk