clojure-vim/clj-refactor.nvim

Not an editor command error

nimaai opened this issue · 7 comments

Hi everyone

I don't know what I am doing wrong, but for every command I get an error in vim of type:

E492: Not an editor command: ...

How and what I have installed:

  1. node.js (v10.6.0)
  2. latest neovim (v0.3.1-147-g9afed40ea)
  3. refactor-nrepl (by putting [refactor-nrepl "2.3.1"] in my ~/.lein/profiles.clj file
  4. vim-fireplace and this vim plugin

Inside vim I have also done the following things:

  1. :PlugInstall
  2. :UpdateRemotePlugins
  3. restart nvim

Both with expected success result.

I haven't done anything in regard to node-host as it is apparently a part of neovim itself now.

Any help is appreciated.
Matus

What's the output of :checkhealth for you?


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

## Performance
  - OK: Build type: Release

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $TERM_PROGRAM='iTerm.app'
  - INFO: $COLORTERM='truecolor'

## tmux
  - OK: escape-time: 0ms
  - INFO: $TERM: screen-256color

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: pbcopy

## Python 2 provider (optional)
  - INFO: `g:python_host_prog` is not set.  Searching for python2 in the environment.
  - INFO: Executable: /usr/local/bin/python2
  - INFO: Python2 version: 2.7.15
  - INFO: python2-neovim version: 0.2.4 (outdated; from ~/Library/Python/2.7/lib/python/site-packages/neovim)
  - WARNING: Latest python2-neovim is NOT installed: 0.2.6

## Python 3 provider (optional)
  - WARNING: No Python interpreter was found with the neovim module.  Using the first available for diagnostics.
  - ERROR: Python provider error
    - ADVICE:
      - provider/pythonx: Could not load Python 3:
          /usr/local/bin/python3 does not have the "neovim" module. :help |provider-python|
          /usr/local/bin/python3.7 does not have the "neovim" module. :help |provider-python|
          python3.6 not found in search path or not executable.
          python3.5 not found in search path or not executable.
          python3.4 not found in search path or not executable.
          python3.3 not found in search path or not executable.
          /usr/local/bin/python is Python 2.7 and cannot provide Python 3.
  - INFO: Executable: Not found

## Ruby provider (optional)
  - INFO: Ruby: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
  - INFO: Host: /Users/mkmit/.rbenv/shims/neovim-ruby-host
  - OK: Latest "neovim" gem is installed: 0.7.1

## Node.js provider (optional)
  - INFO: Node.js: v10.6.0
  - INFO: Neovim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
  - WARNING: Package "neovim" is out-of-date. Installed: 3.5.2, latest: 4.2.0
    - ADVICE:
      - Run in shell: npm install -g neovim

## Node.js provider (optional)
  - INFO: Node.js: v10.6.0
  - INFO: Neovim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
  - WARNING: Package "neovim" is out-of-date. Installed: 3.5.2, latest: 4.2.0
    - ADVICE:
      - Run in shell: npm install -g neovim

Please update the node.js provider.

I did what you said:

## Node.js provider (optional)
  - INFO: Node.js: v10.6.0
  - INFO: Neovim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
  - OK: Latest "neovim" npm/yarn package is installed: 4.2.0

But, still same error.

I suspect you will need to go through the :UpdateRemotPlugins dance again.

hukka commented

I just got clj-refactor.nvim working with

## Node provider (optional)
  - INFO: Node: v8.10.0
  - INFO: Host: /home/hukka/.node_modules/bin/neovim-node-host
  - OK: Latest "neovim" npm is installed: 4.2.0

The output is somewhat different, which might be related to older Node or different neovim (0.2.2 here). Perhaps it's worth a shot to try Node v8 (LTS)?

Yes, :UpdateRemotePlugins did it. It works now. Thanks.