juliosueiras / vim-terraform-completion

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

Vim 8: Unknown function: terraformcomplete#Complete #65

Open ftpd opened 4 years ago

ftpd commented 4 years ago

I have problem similar to #49 and #50, but those cases were about Neovim. I'm trying to have this completion working in standard vim (8.2.319, running on macOS 10.15.3). I've copied 'minimal configuration' from readme (and deleted all Syntastic stuff, as I'm using Ale). Should I do anything more?

makeev commented 4 years ago

same issue for me

galbacarys commented 3 years ago

I fixed this by fixing my ruby (of all things)! Try running a sudo gem install neovim and reload your terminal. See if that makes completion work.

ftpd commented 3 years ago

I don't want to use Neovim.

yermulnik commented 3 years ago

I'm facing same issue. Any clues?

yermulnik commented 3 years ago

Googled it and here's what's the fix (I'm on Ubuntu):

> vim --version | fgrep ruby
+cursorshape       -lua               -ruby              +wildmenu

> sudo apt install vim-nox
[…]
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/ex (ex) in auto mode

> vim --version|fgrep ruby
+cscope            +localmap          +ruby              +wildmenu
[…]

So Vim with Ruby support is the thing.

mansab commented 2 years ago

I have the following:

vim --version | fgrep ruby
+cursorshape       -lua               +ruby/dyn          +wildmenu
 ruby -v
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-darwin20]

And face the same issue.