Skip to content

Conversation

@Forsigg
Copy link

@Forsigg Forsigg commented Feb 21, 2024

Add type check for item.detail that contains description, In that case while navigating in menu for select snippet item.detail contains table, but expected string

#1832

@ghost
Copy link

ghost commented Mar 16, 2024

@hrsh7th, can you please merge this as quickly as possible? I got the same error as him(#1832). When I added the codes that he wrote into my local nvim cmp codes, it worked without making any errors. Please check it and merge it. @Forsigg THank you!

@hrsh7th
Copy link
Owner

hrsh7th commented Mar 17, 2024

IMO, the item.detail as table is not compliant fir LSP spec. So I tgink it should be fixed in source side.

@rbjorklin
Copy link

I also just hit this and the commit in this PR works as a work-around.

@hrsh7th What is the "source side" in this scenario? Should this bug be reported against another project? If so, which one?

@Shougo
Copy link

Shougo commented Apr 29, 2024

@hrsh7th What is the "source side" in this scenario? Should this bug be reported against another project? If so, which one?

If it is source side problem, the source should check the item.detail instead.

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

Successfully merging this pull request may close these issues.

4 participants