2017-10-01 28 views
3

이 오류 메시지가 나타납니다. Unknown function: elm#FindRootDirectory neovim에서 elm-file을 열었을 때.알 수없는 함수 : elm # FindRootDirectory

나는 elm 코드를 작성하는 플러그인으로 ElmCast/elm-vim을 사용하고 있습니다.

이 플러그인을 단순히 제거 할 수는 있지만 사용하고 싶습니다.

또한 예를 들어 wildmenu에서 제안했지만이 플러그인의 구문 강조 표시가 작동한다고해도 :ElmFormat과 같은 ElmCast/elm-vim의 명령을 사용할 수 없다는 것을 알았습니다.

나는 정력 플러그를 통해 플러그인을 설치 한 :

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

는 또한 :PlugUpdate:PlugUpgrade 여러 번 실행. 그것은 나타납니다

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-vimvim-polyglot 앞에로드하면 이전과 같이 작동합니다.

+0

끝내 주셔서 고마워요. – arcseldon

+0

'vim-polyglot' _includes_'ElmCast/elm-vim' 이후로 왜 이것이 권장 답변인지 이해할 수 없습니다. 이전 버전을 사용하고 있다면'.vimrc' 파일에서 후자를 지우지 않을까요? 그것이 내가 취한 접근법이며, 나는 어떤 결과도 발견하지 못했습니다. – hkgumbs

0

당신이 당신의 실행 경로에 autoload/elm.vim가 없습니다 :

neovim CheckHealth이 말한다.

어떻게 플러그인을 설치 했습니까?

처리하려면 vim-plug과 같은 것을 사용하는 것이 좋습니다.

+0

이미 vim-plug를 사용하고 있다는 질문을 업데이트했습니다. – mstruebing