VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

terraform executable from wsl2 #386

Open yotam-h opened 2 years ago

yotam-h commented 2 years ago

Thank you for opening an issue. In this template paragraph text could be removed, however please retain headers.

Prerequisites

Installation details

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?

image image1

gbloquel commented 2 years ago

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.

yotam-h commented 2 years ago

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. image

henkka commented 2 years ago

Having the same error, the proposed workaround is not working for me either

Yunus1903 commented 2 years ago

Any updates on this?