We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CompletionItem.documentation
I get the following error while trying to structure a CompletionItem that provides a documentation field
CompletionItem
documentation
>>> converter.structure(dict(label='example', documentation='This is documented'), CompletionItem) + Exception Group Traceback (most recent call last): | File "<stdin>", line 1, in <module> | File "/.../site-packages/cattrs/converters.py", line 309, in structure | return self._structure_func.dispatch(cl)(obj, cl) | File "<cattrs generated structure lsprotocol.types.CompletionItem>", line 117, in structure_CompletionItem | if errors: raise __c_cve('While structuring ' + 'CompletionItem', errors, __cl) | cattrs.errors.ClassValidationError: While structuring CompletionItem (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "<cattrs generated structure lsprotocol.types.CompletionItem>", line 35, in structure_CompletionItem | res['documentation'] = __c_structure_documentation(o['documentation'], __c_type_documentation) | File "/.../site-packages/cattrs/converters.py", line 377, in _structure_error | raise StructureHandlerNotFoundError(msg, type_=cl) | cattrs.errors.StructureHandlerNotFoundError: Unsupported type: typing.Union[str, lsprotocol.types.MarkupContent, NoneType]. Register a structure hook for it. | Structuring class CompletionItem @ attribute documentation +------------------------------------
The text was updated successfully, but these errors were encountered:
Add missing markup content hook. (#107)
af9c3a4
Fixes #102
karthiknadig
Successfully merging a pull request may close this issue.
I get the following error while trying to structure a
CompletionItem
that provides adocumentation
fieldThe text was updated successfully, but these errors were encountered: