Support HCL2 and Terraform 0.12 #155
Comments
seems like it's time to get started ;-) |
We use this plugin on a daily basis. |
+1, I don't like "First-Class Expressions" being marked as mistake |
+1 for HCL2/TF0.12 support! |
@cehrig what do you mean? |
I'm referring to this: https://www.hashicorp.com/blog/terraform-0-12-preview-first-class-expressions |
Check out https://www.youtube.com/watch?v=ZgXFlTZZaIg&list=PL4z1WbdlT5GKw1l2w0U-8YijoTwZp_GvU&index=5 Even if Terraform provides a migration tool, I'm sure we have plenty of places for useful inspections |
Terraform 0.12-beta1 now available! It will be nice to see HCL2 support in favourite IDE )) |
@VladRassokhin we're heavy users of this great plugin and looking forward to Terraform 0.12. Is there any way how we can help to sponsor development? |
if i can donate for resolving this issue - i will donate! |
HCL2 (Terraform 0.12+) support will be part of IntelliJ-Terraform plugin for IntelliJ 2019.2 as plugin will become part of IntelliJ. You can kinda-sponsor development - buy any JetBrains product. |
Looking forward to seeing this! Is 0.12 support part of the 2019.2 EAP? |
Don't see this in the 2019.2 intellij/pycharm releases ? |
TF 0.12 has been released: https://www.hashicorp.com/blog/announcing-terraform-0-12 |
@VladRassokhin is there any estimated release date or an issue tracker? |
There aren't any references within their tracker. https://youtrack.jetbrains.com/issues Edit: It hasn't been added as part of the 2019.1.3 RC either. |
It appears there is an hcl2 branch for this plugin so @VladRassokhin has/had started working on it: https://github.com/VladRassokhin/intellij-hcl/tree/hcl2 but it was last updated in Aug, 2018 so not sure what state it's in. |
As I've stated a bit early
Unfortunately not yet in 2019.2 EAP 1, though I'll investigate whether it's possible to publish plugin on plugins.jetbrains.com (build compatible with 2019.2 EAP or 2019.1.2) All necessary code for HCL2 is already there, however it's not open-source |
This will be awesome. Unfortunately (or fortunately), I've found the Terraform integration in Intellij to be much better than VS Code and that's pretty much due to how well this plugin works. |
As some guys told that already above, TF/HCL support in IJ is awesome, thanks a lot for your great work! Having that said @VladRassokhin do you have any sort of ETA when a new plugin may come up, either for 2019.1.2 or 2019.2 EAP as you mentioned already, apart from final 2019.2 release that is scheduled for July :( ? |
I've uploaded version 0.7.0 to plugins repository. Possible caveats: new templates syntax ( |
@VladRassokhin looks like TF 0.12 is supported only partially, code navigation or inspections do not work. Anyway, thank you for uploading it, at least it does not try to mark every template as broken now :) |
@bohdanyurov-gl Examples maybe? It's hard to see what you mean since I'm not developing Terraform configs daily. |
Thanks for your work on this plugin! A couple of things I noticed that have some issues:
|
@VladRassokhin IDEA does not see "locals.foo" as a reference to the local variable. I'm using latest IDEA (2019.1.3 Ultimate) and TF (v0.7.2) plugin |
Update: sorry for confusion. Looks like I was using v0.7.1, latest one works |
Please open new issues if problems arises |
A preview of Terraform 0.12 and HCL2 with a bunch of new features and breaking compatibility changes have been announced.
They are planning to release it later this summer.
Our plugin needs to support it at some point.
The text was updated successfully, but these errors were encountered: