VladRassokhin / intellij-hcl

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

Custom path to terraform executable #135

Open jonnyzzz opened 6 years ago

jonnyzzz commented 6 years ago

I have no terraform installed in the OS. Instead, I have an sh script to call the official terraform container It works great from console, but it does not work from an action in the editor

VladRassokhin commented 6 years ago

Check Settings -> Tools -> Terraform -> Terraform path. Is that enough?

jonnyzzz commented 6 years ago

It may suggest something in run configuration. It was only a error in my case

On Jan 22, 2018 11:29, "Vladislav Rassokhin" notifications@github.com wrote:

Check Settings -> Tools -> Terraform is that enough?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/VladRassokhin/intellij-hcl/issues/135#issuecomment-359383214, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPpr3f9i2qIJiGR3NhWS3gwGlLUlwfsks5tNGL_gaJpZM4RmadB .

G-Rath commented 2 years ago

@VladRassokhin for me I'm not able to actually change that path e.g. when I select a new path in the file explorer it just becomes terraform.exe, and the IDE always reports that the "Path to Terraform executable is incorrect".

Let me know if you'd like me to open a new issue, or if this issue is enough.

IDE version information ``` IntelliJ IDEA 2021.3.1 (Ultimate Edition) Build #IU-213.6461.79, built on December 29, 2021 Licensed to Gareth Jones Subscription is active until June 21, 2022. Runtime version: 11.0.13+7-b1751.21 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 3072M Cores: 12 Registry: ide.remote.interpreters.rsync.enabled.on.windows=true show.affected.tests.in.changelists=true Non-Bundled Plugins: org.toml.lang (213.5744.224) org.sylfra.idea.plugins.linessorter (1.0.1) org.jetbrains.plugins.go-template (213.5744.190) org.jetbrains.plugins.go (213.6461.48) net.vektah.codeglance (1.5.4) net.seesharpsoft.intellij.plugins.csv (2.18.2) name.kropp.intellij.makefile (213.5744.224) lermitage.intellij.battery.status (1.22.201) fr.gabrielcolson.prisma.prisma-intellij-plugin (1.2.4) com.sburlyaev.terminal.plugin (0.4.5) com.perl5 (2021.3) org.jetbrains.plugins.vagrant (213.5744.121) com.jetbrains.plugins.ini4idea (213.5744.190) com.intellij.plugins.watcher (213.6461.19) org.intellij.plugins.hcl (0.7.14) com.intellij.javafx (1.0.3) com.intellij.ideolog (203.0.27.0) org.jetbrains.plugins.ruby (213.6461.79) org.jetbrains.kotlin (213-1.6.10-release-923-IJ5744.223) org.jetbrains.plugins.slim (213.5744.224) org.intellij.plugins.postcss (213.5744.190) com.intellij.apacheConfig (213.5744.190) com.alayouni.ansiHighlight (1.2.4) com.intellij.plugin.adernov.powershell (2.0.9) String Manipulation (8.24.203.5981.1) Statistic (4.1.7) PsiViewer (213-SNAPSHOT) Key Promoter X (2021.3) uk.co.ben-gibson.remote.repository.mapper (3.3.6) mobi.hsz.idea.gitignore (4.3.0) Dummy Text Generator (1.2.0) com.intellij.kubernetes (213.6461.19) CMD Support (1.0.5) org.jetbrains.plugins.vue (213.6461.23) Dart (213.5744.122) io.flutter (63.2.4) mdx.js (1.0.213) jones.restarteslintaction.restart-eslint-action (0.0.1) intellij.prettierJS (213.6461.6) cucumber-javascript (213.6461.6) com.jetbrains.lang.ejs (213.5744.190) com.intellij.plugins.webcomponents (213.6461.6) com.intellij.lang.jsgraphql (3.1.2) jones.foldcallblocks.fold-call-blocks (0.0.7-beta) com.intellij.plugins.html.instantEditing (213.5744.122) com.jetbrains.plugins.jade (213.5744.223) com.jetbrains.php (213.6461.83) org.jetbrains.plugins.phpstorm-remote-interpreter (213.5744.125) org.jetbrains.plugins.phpstorm-wsl (213.5744.125) org.jetbrains.plugins.phpstorm-docker (213.5744.125) net.king2500.plugins.PhpAdvancedAutoComplete (1.1.0) com.raket.silverstripe (0.9.2.0) com.kalessil.phpStorm.phpInspectionsEA (4.0.7.1) com.jetbrains.twig (213.5744.224) com.jetbrains.php.wordPress (213.5744.125) com.jetbrains.php.drupal (213.5744.125) com.jetbrains.php.blade (213.6461.21) de.espend.idea.laravel (0.15.4) com.jetbrains.php.behat (213.5744.125) com.dmarcotte.handlebars (213.5744.190) com.deadlock.scsyntax (213.5744.190) Pythonid (213.6461.79) ru.meanmail.plugin.requirements (2021.4.1-213-EAP-SNAPSHOT) ru.adelf.idea.dotenv (2021.3.0.213) aws.toolkit (1.36-213) org.jetbrains.plugins.node-remote-interpreter (213.6461.6) AWSCloudFormation (213.5744.122) Kotlin: 213-1.6.10-release-923-IJ5744.223 ```
SurelyMario commented 2 years ago

Hate to comment on old issues but @G-Rath I recently fixed this by manually typing out the full executable path in the Terraform Executable Path field. image

G-Rath commented 2 years ago

@SurelyMario ah that seems to work for me - thanks!

Guess it's just the file selection process that's broken

2bon commented 2 years ago

Check Settings -> Tools -> Terraform -> Terraform path. Is that enough?

no

rafalfigura commented 2 years ago

@SurelyMario ah that seems to work for me - thanks!

Guess it's just the file selection process that's broken

Thats what I was looking for. Thanks :)

ImIOImI commented 2 years ago

I have a similar issue with using brew on WSL. I use tfenv to manage the version of Terraform and it downloads and manages it via brew. Terraform works via the CLI, but built in commands for terraform get for example which is important for getting modules interfaces and such do not work in the IDE. image