Skip to content

Commit

Permalink
doc: update unknown function FAQ answer
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Dec 23, 2019
1 parent b1b9a1b commit 1589ec7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion doc/vim-go.txt
Expand Up @@ -2353,12 +2353,25 @@ and |'g:go_def_mode'| can be set to use other tools for now (though some of
the alternatives to `gopls` are effectively at their end of life and support
for them from within vim-go may be removed soon).

I get "Unknown function: go#config#..." error when I open a Go file.~
I get a "Unknown function: go#config#..." error~

This often happens to vim-polyglot users when new config options are added to
vim-go. Run vim-polyglot's `build` script or make sure that vim-go is loaded
before vim-polyglot.

It can also happen when multiple versions of vim-go are installed and the
version loaded by Vim doesn't have a function introduced by a later version.
To see where vim-go is being loaded from run
>
:verbose function go#config#SetFmtAutosave
<

The output will show the path to the `autoload/go/config.vim` that was loaded
by Vim. Make sure the root of the path to output by the command is the path
from which vim-go is expected to sourced. If it is not rooted as expected,
then there are multiple copies of vim-go installed; remove the unexpected
copies.

I get "not an editor command" error when I invoke :GoXXX~

This happens if vim-go is not installed properly. Be sure you have added this
Expand Down

0 comments on commit 1589ec7

Please sign in to comment.