false "No Declaration found"
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},"]) }
"No Declaration found" is reported although the declaration is there and evaluated correctly on terraform
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
Workaround: Disable the setting "terraform.validation.enableEnhancedValidation" and the error is hidden (along with other actual errors unfortunately)
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 I confirm it's working well for me now, awesome! thanks
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.