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

Error executing luv callback in a large project #7

Closed
NullVoxPopuli opened this issue Jan 15, 2023 · 4 comments
Closed

Error executing luv callback in a large project #7

NullVoxPopuli opened this issue Jan 15, 2023 · 4 comments

Comments

@NullVoxPopuli
Copy link

whenever I execute

nnoremap <C-t> :lua require('telescope').extensions.smart_open.smart_open({cwd_only = true})<CR>

(aka Ctrl + t), I get this error:

Error executing luv callback:
...telescope/_extensions/smart_open/display/entry_maker.lua:94: attempt to perform arithmetic on local 'max_frecency_score' (
a nil value)
stack traceback:
        ...telescope/_extensions/smart_open/display/entry_maker.lua:94: in function 'entry_maker'
        ...m/lua/telescope/_extensions/smart_open/finder/finder.lua:34: in function 'on_insert'
        ...im/lua/telescope/_extensions/smart_open/file_scanner.lua:78: in function <...im/lua/telescope/_extensions/smart_op
en/file_scanner.lua:66>
        [C]: at 0x559809c92b5a
        [C]: in function 'pcall'
        ...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:381: in function 'find'
        ...pen.nvim/lua/telescope/_extensions/smart_open/picker.lua:59: in function 'start'
        ...smart-open.nvim/lua/telescope/_extensions/smart_open.lua:22: in function 'smart_open'
        [string ":lua"]:1: in main chunk}
@NullVoxPopuli
Copy link
Author

For reproduction, I suppose, clone: https://github.com/emberjs/ember.js/
and then open smart_open?

@NullVoxPopuli
Copy link
Author

oh, using this command works without error :Telescope smart_open. I'll use that instead. but is the telescope.extensions.smart_open... supposed to work as well as the shorter command?

my keymap is now:

nnoremap <C-t> <CMD>Telescope smart_open<CR> 
``

@danielfalk
Copy link
Owner

@NullVoxPopuli Ijust pushed a fix. I think the issue is with cwd_only and not with the size of the repository (but thank you for providing a repro repository!) Can you try latest when you get a chance and verify it works?

@NullVoxPopuli
Copy link
Author

oh nice -- thanks for the fix! works great!!

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