2017-10-01 23 views
3

このエラーメッセージが表示されます。Unknown function: elm#FindRootDirectory neovim内でelm-fileを開くと、次のエラーメッセージが表示されます。不明な関数:elm#FindRootDirectory

私はelmコードを書き込むためのプラグインとしてElmCast/elm-vimを使用しています。

私はこのプラグインを単に削除することができますが、私はそれを使いたいと思っています。

はまた、私は、私は彼らがwildmenuで提案されているが、このプラグインの構文の強調表示が機能している場合でも、例えば:ElmFormatようElmCast/ELM-VIMから任意のコマンドを使用することはできませんよということを考え出しました。私はvimのプラグを経由してプラグインをインストールした

call plug#begin('~/.vim/vim-plug-plugins') 
     Plug 'elmcast/elm-vim' 
call plug#end() 

私も:PlugUpdate:PlugUpgradeを複数回実行しました。

neovim CheckHealthはこれを言う:

health#deoplete#check 
======================================================================== 
## deoplete.nvim 
    - SUCCESS: has("nvim") was successful 
    - SUCCESS: has("python3") was successful 
    - INFO: If you're still having problems, try the following commands: 
    $ export NVIM_PYTHON_LOG_FILE=/tmp/log 
    $ export NVIM_PYTHON_LOG_LEVEL=DEBUG 
    $ nvim 
    $ cat /tmp/log_{PID} 
    and then create an issue on github 

health#nvim#check 
======================================================================== 
## Configuration 
    - SUCCESS: no issues found 

## Performance 
    - SUCCESS: Build type: Release 

## Remote Plugins 
    - SUCCESS: Up to date 

## terminal 
    - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H 
    - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~ 

## tmux 
    - SUCCESS: escape-time: 10ms 
    - INFO: $TERM: screen-256color 

health#provider#check 
======================================================================== 
## Clipboard (optional) 
    - SUCCESS: Clipboard tool found: xsel 

## Python 2 provider (optional) 
    - INFO: `g:python_host_prog` is not set. Searching for python2 in the environment. 
    - INFO: Executable: /usr/bin/python2 
    - INFO: Python2 version: 2.7.14 
    - INFO: python2-neovim version: 0.1.13 
    - SUCCESS: Latest python2-neovim is installed: 0.1.13 

## Python 3 provider (optional) 
    - INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment. 
    - INFO: Executable: /usr/bin/python3 
    - INFO: Python3 version: 3.6.2 
    - INFO: python3-neovim version: 0.1.13 
    - SUCCESS: Latest python3-neovim is installed: 0.1.13 

## Ruby provider (optional) 
    - INFO: Ruby: ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux] 
    - WARNING: Missing "neovim" gem. 
    - SUGGESTIONS: 
     - Run in shell: gem install neovim 
     - Is the gem bin directory in $PATH? Check `gem environment`. 
     - If you are using rvm/rbenv/chruby, try "rehashing". 
+0

プラグインの問題追跡ツールを使用します。 – romainl

答えて

4

プラグインの読み込み順序が問題であることが分かりました。私はvim-polyglotも使用しています。

最初にvim-polyglotをロードするときは、elmcast/elm-vimの前に、前述のエラーが発生します。

最初にelmcast/elm-vimをロードしてからvim-polyglotにすると、前と同じように動作します。

+0

素晴らしい、ありがとう。 – arcseldon

+0

これは 'vim-polyglot' _includes_' ElmCast/elm-vim'の後にこれが推奨される答えである理由は分かりません。前者を使用している場合は、 '.vimrc'から後者を削除するべきではありませんか?それは私が取ったアプローチであり、私は何らの結果に気づいていません。 – hkgumbs

0

あなたがあなたのランタイムパスにautoload/elm.vimを持っていない表示されます。

どのようにしてプラグインをインストールしましたか?

vim-plugのようなものを使用することをお勧めします。

+0

私はすでにvim-plugを使用していると言われるように質問を更新しました。 – mstruebing

関連する問題