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

broken forc in cpp.lua #8

Open
olivertzeng opened this issue Aug 17, 2024 · 4 comments
Open

broken forc in cpp.lua #8

olivertzeng opened this issue Aug 17, 2024 · 4 comments

Comments

@olivertzeng
Copy link

code ref: https://github.com/mireq/luasnip-snippets/blob/main/lua/luasnip_snippets/cpp.lua?#L329
Error

Error executing vim.schedule lua callback: ...ng/.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/str.lua:81: bad argument #1 to 'byte' (string expected, got table)
stack traceback:
	[C]: in function 'byte'
	...ng/.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/str.lua:81: in function 'trim'
	...rtzeng/.local/share/nvim/lazy/nvim-cmp/lua/cmp/entry.lua:457: in function 'get_documentation'
	...ocal/share/nvim/lazy/nvim-cmp/lua/cmp/view/docs_view.lua:48: in function 'open'
	...ertzeng/.local/share/nvim/lazy/nvim-cmp/lua/cmp/view.lua:299: in function 'callback'
	.../.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/async.lua:138: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>

To reproduce this issue:

  1. type and cmp is shown
  2. tabbing all the way
  3. error shown

Screen Record:
image

@mireq
Copy link
Owner

mireq commented Sep 7, 2024

@olivertzeng i don't see any string "loop focusing on iteration times" in this project. It looks, like you are using friendly-snippets. Can you check, error is really from this snippet library? Thanks.

@olivertzeng
Copy link
Author

@olivertzeng i don't see any string "loop focusing on iteration times" in this project. It looks, like you are using friendly-snippets. Can you check, error is really from this snippet library? Thanks.

I only use luasnip-snippets
the "broken" is meant to be about the error, not about the tooltip

@mireq
Copy link
Owner

mireq commented Sep 7, 2024

I have tried with your config, but i can't reproduce problem.

Screenshot_20240907_175708

Can you try with minimal config?

@olivertzeng
Copy link
Author

I have tried with your config, but i can't reproduce problem.

Screenshot_20240907_175708

Can you try with minimal config?

Alr will try that later when I get home

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