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

fix(schema): crash when completing LiteralType{Type: cty.Tuple} #255

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Apr 13, 2023

As discovered in manual testing and in #251

Completion of an attribute of cty.Tuple type would previously cause a crash.

I also decided to add some more tests to cover the (clearly non-trivial enough to hide a bug) EmptyCompletionData() method on LiteralType.

UX Before

2023-04-13 15 16 26

UX After

2023-04-13 15 17 13

@radeksimko radeksimko added the bug Something isn't working label Apr 13, 2023
@radeksimko radeksimko self-assigned this Apr 13, 2023
@radeksimko radeksimko changed the title fix: crash when completing LiteralType{Type: cty.Tuple} fix(schema): crash when completing LiteralType{Type: cty.Tuple} Apr 13, 2023
@radeksimko radeksimko marked this pull request as ready for review April 13, 2023 14:17
@radeksimko radeksimko requested a review from a team as a code owner April 13, 2023 14:17
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@dbanck dbanck merged commit cf2813f into main Apr 18, 2023
@dbanck dbanck deleted the b-lit-type-empty-completion-data-tuple-crash branch April 18, 2023 09:11
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

Successfully merging this pull request may close these issues.

None yet

2 participants