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: nil expr panics #376

Merged
merged 6 commits into from
Feb 29, 2024
Merged

fix: nil expr panics #376

merged 6 commits into from
Feb 29, 2024

Conversation

ansgarm
Copy link
Member

@ansgarm ansgarm commented Feb 20, 2024

When Terraform provider defined functions are incomplete (e.g. when completing provider::), hcl returns a nil Expr which causes all kinds of panics.

This PR handles such nil values for different things.

@ansgarm ansgarm changed the title fix nil expr panics fix: nil expr panics Feb 20, 2024
go.mod Outdated Show resolved Hide resolved
@ansgarm ansgarm marked this pull request as ready for review February 22, 2024 10:56
@ansgarm ansgarm requested a review from a team as a code owner February 22, 2024 10:56
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.

LGTM! Minor suggestion to suppress completion

decoder/candidates_test.go Outdated Show resolved Hide resolved
decoder/candidates.go Show resolved Hide resolved
@ansgarm ansgarm requested a review from dbanck February 28, 2024 12:43
@dbanck dbanck changed the base branch from main to pre-release February 29, 2024 10:17
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.

2 participants