vim-terraform-completion icon indicating copy to clipboard operation
vim-terraform-completion copied to clipboard

Vim 8: Unknown function: terraformcomplete#Complete

Open ftpd opened this issue 4 years ago • 6 comments

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?

ftpd avatar Mar 16 '20 23:03 ftpd

same issue for me

makeev avatar Mar 23 '20 12:03 makeev

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.

galbacarys avatar Aug 25 '20 12:08 galbacarys

I don't want to use Neovim.

ftpd avatar Aug 25 '20 12:08 ftpd

I'm facing same issue. Any clues?

yermulnik avatar Jul 09 '21 11:07 yermulnik

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.

yermulnik avatar Jul 09 '21 12:07 yermulnik

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.

mansab avatar Jan 06 '22 15:01 mansab