Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot search with Telescope #2

Closed
piotr-serafin-red opened this issue Oct 26, 2021 · 5 comments
Closed

Cannot search with Telescope #2

piotr-serafin-red opened this issue Oct 26, 2021 · 5 comments

Comments

@piotr-serafin-red
Copy link

Describe the bug
Cannot search notes with telescope, following errors are shown:

error caught while executing async callback:
NvimError("Error executing lua: ...escope-fzf-native.nvim/lua/telescope/_extensions/fzf.lua:25: attempt to index field 'prompt_cache' (a nil value)")
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pynvim/api/nvim.py", line 320, in exec_lua
    return self.request('nvim_execute_lua', code, args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Error executing lua: ...escope-fzf-native.nvim/lua/telescope/_extensions/fzf.lua:25: attempt to index field 'prompt_cache' (a nil value)

the call was requested at
  File "/Users/piotr_serafin/.local/share/nvim/site/pack/packer/start/gkeep.nvim/rplugin/python3/gkeep/thread_util.py", line 56, in w
    func(*args, **kwargs)
  File "/Users/piotr_serafin/.local/share/nvim/site/pack/packer/start/gkeep.nvim/rplugin/python3/gkeep/status.py", line 43, in d
    return f(*args, **kwargs)
  File "/Users/piotr_serafin/.local/share/nvim/site/pack/packer/start/gkeep.nvim/rplugin/python3/gkeep/api.py", line 186, in run_search
    callback()
  File "/Users/piotr_serafin/.local/share/nvim/site/pack/packer/start/gkeep.nvim/rplugin/python3/gkeep/plugin.py", line 501, in respond
    self._vim.async_call(

To Reproduce
Steps to reproduce the behavior:

  1. Perform succesfull GkeepLogin
  2. Add telescope integration by adding: require('telescope').load_extension('gkeep')
  3. Execute :Telescope gkeep
  4. See error

Expected behavior
List of notes available in Telescope window

Version information

  • OS: mac
  • Neovim:
NVIM v0.5.1
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/config -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/src/nvim/auto -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/include
Compiled by brew@BigSur

Features: +acl +iconv +tui
See ":help feature-compile"

  system vimrc file: "$VIM/sysinit.vim"
 fall-back for $VIM: "/usr/local/Cellar/neovim/0.5.1/share/nvim"
  • Gkeep:

health#gkeep#check
========================================================================
## gkeep
 - OK: gkeepapi 0.13.6 installed
 - OK: keyring installed
 - OK: Logged in as pio*************@gmail.com
 - INFO: Log file: /Users/piotr_serafin/.cache/nvim/gkeep.log

Additional context
Configured telescope extensions

require('telescope').load_extension('fzf')
require('telescope').load_extension('dap')
require('telescope').load_extension('gkeep')

Screenshots
image

@piotr-serafin-red
Copy link
Author

It seems that there is a problem with fzf extension. When removed (by commenting require('telescope').load_extension('fzf')) gkeep search in telescope works perfectly.

@stevearc
Copy link
Owner

It sounds like you found the source of the issue inside Telescope itself. Is there any action you need from me?

@piotr-serafin-red
Copy link
Author

piotr-serafin-red commented Oct 28, 2021

Not at all. Will find/rise an issue in telescope fzf and leave link here. BTW really appreciate this project, thx!

@piotr-serafin-red
Copy link
Author

nvim-telescope/telescope-fzf-native.nvim#40 - reported for fzf-native extension

@piotr-serafin-red
Copy link
Author

As commented in nvim-telescope/telescope-fzf-native.nvim#40 there is potential issue with gkeep.nvim just forwarding info from fzf-native maintainer.

nvim-telescope/telescope-fzf-native.nvim#40 (comment)

nvim-telescope/telescope-fzf-native.nvim#40 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants