juliosueiras / vim-terraform-completion

A (Neo)Vim Autocompletion and linter for Terraform, a HashiCorp tool
MIT License
336 stars 24 forks source link

Editing a value in output or variables blocks freezes vim #36

Closed nicholasjackson closed 6 years ago

nicholasjackson commented 6 years ago

When I attempt to edit the value in the below block Nvim freezes

output "resource_group_name" {                                                                                     
  value = "${azurerm_resource_group.default.name}"                                                                                                                                                                                                                                                                        
}   

With the following displayed at the bottom:

search hit TOP, continuing at BOTTOM

This also happens when editing descriptions in variable blocks.

Setup: NVim: v0.2.1 vim-terraform-completion: latest Deoplete All Nvim plugins up to date

juliosueiras commented 6 years ago

does this still happen on a new terraform file with only azurerm_resource_group and the above block, does it still freeze Nvim?

nicholasjackson commented 6 years ago

Yes I get the same issue whenever I try to create a new variable block, I just started a new folder and file and the plugin froze when I started to type the following:

  1 variable "myvar" {                                                                                                      
  2   v                                                                                                                                                                                                                                                                                                                       

Is there any debug logs that would be useful?

juliosueiras commented 6 years ago

9250ca2e110717555efaa8c69a52f3bd1576762e should fixed the issue, it was cause by the logic for backtracking the block word not including the extra root levels words(was missing outputs, locals, variable)

nicholasjackson commented 6 years ago

Awesome, all working again :) Epic work