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

Errors moving between files & showing preview on 0.7 #63

Closed
ahmedelgabri opened this issue Apr 26, 2022 · 5 comments
Closed

Errors moving between files & showing preview on 0.7 #63

ahmedelgabri opened this issue Apr 26, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@ahmedelgabri
Copy link

Neovim version (nvim -v | head -n1)

NVIM v0.7.0

Operating system/version

macOS 12.2.1

How to reproduce the issue

  1. Search for anything :silent! grep 'foo' | cwindow
  2. Move through the list of results j or k
  3. Should see this error every time you go up or down the list
Error executing vim.schedule lua callback: [string "..."]:0: Expected Lua number
stack traceback:
        [C]: in function 'nvim_buf_line_count'
        [string "..."]: in function 'disable'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:359: in function 'is_enabled'
        ...ack/packer/start/nvim-bqf/lua/bqf/preview/treesitter.lua:73: in function 'attach'
        ...m/pack/packer/start/nvim-bqf/lua/bqf/preview/handler.lua:100: in function 'doSyntax'
        ...m/pack/packer/start/nvim-bqf/lua/bqf/preview/handler.lua:211: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue

Expected behavior

To work without an error

Actual behavior

Error executing vim.schedule lua callback: [string "..."]:0: Expected Lua number
stack traceback:
        [C]: in function 'nvim_buf_line_count'
        [string "..."]: in function 'disable'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:359: in function 'is_enabled'
        ...ack/packer/start/nvim-bqf/lua/bqf/preview/treesitter.lua:73: in function 'attach'
        ...m/pack/packer/start/nvim-bqf/lua/bqf/preview/handler.lua:100: in function 'doSyntax'
        ...m/pack/packer/start/nvim-bqf/lua/bqf/preview/handler.lua:211: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
@ahmedelgabri ahmedelgabri added the bug Something isn't working label Apr 26, 2022
@kevinhwang91
Copy link
Owner

I can't reproduce. What's git log -1 say under the root of nvim-treesitter.

@ahmedelgabri
Copy link
Author

I can't reproduce. What's git log -1 say under the root of nvim-treesitter.

commit b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f (HEAD -> master)
Author: Michael Hoffmann <mhoffm@posteo.de>
Date:   Sat Apr 23 11:17:10 2022

    indents(hcl): fix indentation queries
    
    This commit adds tests for hcl indentation and fixes various bugs

@kevinhwang91
Copy link
Owner

Check out your disable function in nvim-treesitter setup. Some API have been changed since 0.7.

@kevinhwang91 kevinhwang91 added invalid This doesn't seem right and removed bug Something isn't working labels Apr 26, 2022
@ahmedelgabri
Copy link
Author

Not sure how is this related, can you point me to an issue or something? Because TS works fine everywhere & this is my disable function https://github.com/ahmedelgabri/dotfiles/blob/5dece5e50824de1edf4dd3301cbab14aa727f841/config/nvim/lua/_/config/treesitter.lua#L32-L35=

@kevinhwang91 kevinhwang91 added bug Something isn't working and removed invalid This doesn't seem right labels Apr 26, 2022
@kevinhwang91
Copy link
Owner

Thanks, fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants