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

false "No Declaration found" #1698

Closed
1 task
uhofstoetter opened this issue Feb 26, 2024 · 4 comments
Closed
1 task

false "No Declaration found" #1698

uhofstoetter opened this issue Feb 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@uhofstoetter
Copy link

Extension Version

v2.29.4

VS Code Version

Version: 1.86.2 (user setup)
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:40:56.878Z
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.19045

Operating System

Windows 10 Pro Version 22H2

Terraform Version

Terraform v1.7.4 on windows_amd64

Steps to Reproduce

locals {
mymap = {
"key1" = "value2",
"key2" = "value2",
}

mylist = join(" ", [for key, value in local.mymap : "${key} = ${value},"])
}

image

"No Declaration found" is reported although the declaration is there and evaluated correctly on terraform

image

Expected Behavior

no false error is reported

Actual Behavior

false error is reported

Terraform Configuration

No response

Project Structure

No response

Gist

No response

Anything Else?

No response

Workarounds

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@uhofstoetter uhofstoetter added the bug Something isn't working label Feb 26, 2024
@chrisweis
Copy link

chrisweis commented Mar 11, 2024

Workaround: Disable the setting "terraform.validation.enableEnhancedValidation" and the error is hidden (along with other actual errors unfortunately)

image

@dbanck
Copy link
Member

dbanck commented Mar 12, 2024

We just released a new version 2.29.5. This fixes the reported bug. The update should appear automatically in VS Code.

Thank you for the report @uhofstoetter


In case you experience any different validation related bug, please do let us know through a new issue.

@dbanck dbanck closed this as completed Mar 12, 2024
@chrisweis
Copy link

@dbanck I confirm it's working well for me now, awesome! thanks

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants