intellij-hcl
intellij-hcl copied to clipboard
terraform executable from wsl2
Thank you for opening an issue. In this template paragraph text could be removed, however please retain headers.
Prerequisites
- [x] [Ensure you have latest version of plugin installed
- [x] Search for possible issue duplicates
Installation details
- [x] IDE version (
Help->About->Copy to Clipboard
):
PyCharm 2021.3.3 (Community Edition)
Build #PC-213.7172.26, built on March 16, 2022
Runtime version: 11.0.14.1+1-b1751.46 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2008M
Cores: 8
Non-Bundled Plugins:
org.intellij.plugins.hcl (0.7.15)
com.godwin.json.parser (1.4.1)
aws.toolkit (1.41-213)
AWSCloudFormation (213.5744.122)
- [x] intellij-hcl plugin version (
Settings->Plugins
) 0.7.15 - [x] Terraform version (
terraform -v
) 1.13
I'm working with terraform on ubuntu, running on windows 11 using wsl2.
Maybe I'm missing something but I'm unable to get terraform executable to run with pycharm/intelij
When trying to solve missing modules and running terraform get I keep getting Failed to run terraform get. Path to terraform executable is incorrect.
I know that you can use git executable from wsl, why is terraform different?
I have also this issue.
The workaround is to set the absolute path in the textfield instead of open the folder with the button. It seems that the folder selected is not saved when you use the button.
Thanks for the reply but that doesn't really work.
This is the absolute path for terraform \\wsl$\Ubuntu\usr\local\bin\terraform
but I still get the same error.
Having the same error, the proposed workaround is not working for me either
Any updates on this?