Skip to content

navigator don't work correctly with nvim-notify ,print following "dohighlight" error constantly when typing anything in insert mode #234

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

Closed
ancion opened this issue Sep 25, 2022 · 7 comments

Comments

@ancion
Copy link

ancion commented Sep 25, 2022

Error executing vim.schedule lua callback: ...k/packer/start/nvim-notify/lua/notify/render/default.lua:6: bad argument #1 to 'max' (number expected, got no value)
stack traceback:
[C]: in function 'max'
...k/packer/start/nvim-notify/lua/notify/render/default.lua:6: in function 'render'
...ker/start/nvim-notify/lua/notify/service/buffer/init.lua:102: in function 'render'
...ack/packer/start/nvim-notify/lua/notify/service/init.lua:53: in function 'push'
...m/site/pack/packer/start/nvim-notify/lua/notify/init.lua:214: in function 'notify'
...acker/start/navigator.lua/lua/navigator/dochighlight.lua:247: in function 'handler'
/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1025: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>

ray-x added a commit that referenced this issue Sep 26, 2022
@ray-x
Copy link
Owner

ray-x commented Sep 26, 2022

Submitted a fix for it.

@ancion
Copy link
Author

ancion commented Sep 26, 2022

notify alert error

failed to highlight symbol{
  code = -32801,
  message = "Request cancelled because the document was modified",
  <metatable> = {
    __tostring = <function 1>
  }
}

@ray-x
Copy link
Owner

ray-x commented Sep 26, 2022

sounds like a lsp error.
What Lsp/language you are using?

@ancion
Copy link
Author

ancion commented Sep 26, 2022 via email

@ray-x
Copy link
Owner

ray-x commented Sep 26, 2022

What I know from the message is that the clang server was updating while the highlight request was sent.
I add an update to ignore those errors. Not sure if it will solve the issue.

@ray-x
Copy link
Owner

ray-x commented Oct 4, 2022

@ancion Could you check if the latest version fixes the issue?

@ancion
Copy link
Author

ancion commented Oct 4, 2022

this error is not show again, but that error info is still in lsp log file. These are not really interfering with my work. Thank you very much !!

@ray-x ray-x closed this as completed Oct 11, 2022
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