gpt4 book ai didi

vim - 未知函数 : elm#FindRootDirectory

转载 作者:行者123 更新时间:2023-12-04 14:39:24 24 4
gpt4 key购买 nike

我收到此错误消息:Unknown function: elm#FindRootDirectory当我在 neovim 中打开一个 elm 文件时。

我使用 ElmCast/elm-vim 作为插件来编写 elm 代码。

我知道我可以简单地删除这个插件,但我想使用它。

我还发现我无法使用来自 ElmCast/elm-vim 的任何命令,例如 :ElmFormat例如,即使它们在wildmenu 中被建议,但是这个插件的语法高亮是有效的。

我已经通过 vim-plug 安装了插件:

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".

最佳答案

我发现插件的加载顺序是问题所在。我也在用 vim-polyglot .

第一次加载时 vim-polyglot之前 elmcast/elm-vim它导致上述错误。

如果我先加载 elmcast/elm-vim之前 vim-polyglot它像以前一样工作。

关于vim - 未知函数 : elm#FindRootDirectory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46514052/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com