Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metals-vim is not installed #1451

Closed
mrt181 opened this issue Jan 7, 2020 · 8 comments
Closed

metals-vim is not installed #1451

mrt181 opened this issue Jan 7, 2020 · 8 comments

Comments

@mrt181
Copy link

mrt181 commented Jan 7, 2020

Result from CocInfo

## versions                                                                                                                      [0/55]

vim version: NVIM v0.3.8
node version: v12.14.0
coc.nvim version: 0.0.74-cd348f4905
term: screen
platform: linux

## Messages
[coc.nvim] Server metals failed to start: Command "metals-vim" of languageserver.metals is not executable: Error: not found: metals-vim
## Output channel: languageserver.metals

[Error  - 10:03:59 AM] Starting client failed:
Error: Command "metals-vim" of languageserver.metals is not executable: Error: not found: metals-vim
    at LanguageClient.createMessageTransports (/home/r892107/.config/nvim/plugged/coc.nvim/build/index.js:54276:23)

Describe the bug

Followed the instructions for metals-vim (https://scalameta.org/metals/docs/editors/vim.html)
Run :CocInstall coc-metals - there is no output or anything else
restart nvim,
open some build.sbt,
get the not found: metals-vim error

Reproduce the bug

bug happens when using mini.vim

  • Create file mini.vim with:
set nocompatible
set runtimepath^=~/.config/nvim/plugged/coc.nvim
filetype plugin indent on
syntax on
set hidden
  • Start (neo)vim with command: vim -u mini.vim

  • Operate vim.

Addtional information

platform is linux via WSL1
network is using a corp. proxy

@chemzqm
Copy link
Member

chemzqm commented Jan 7, 2020

Add metals-vim to your $PATH or use absolute path.

@chemzqm chemzqm closed this as completed Jan 7, 2020
@caente
Copy link

caente commented Feb 7, 2020

@chemzqm why did you close this? I have the exact same issue, can you at least tell us where metals-vim is when installed with CocInstall coc-metals? metals was working fine until I updated metals :/

@oblitum
Copy link
Member

oblitum commented Feb 7, 2020

@caente extensions generally install their assets in coc data directory. Look for it in docs.

@caente
Copy link

caente commented Feb 7, 2020

you mean here?

❯ ls ~/.config/nvim/bundle/coc.nvim/data
schema.json

@oblitum
Copy link
Member

oblitum commented Feb 7, 2020

No. That's the coc.nvim plugin dir, not the data dir. Look for it in docs and you'll find you can even configure it.

@oblitum
Copy link
Member

oblitum commented Feb 7, 2020

you'll find you can even configure it

My bad on this info, it's not yet possible to configure it, see #1529. But you can find mention for the current fixed location in docs (wiki, etc).

@oblitum
Copy link
Member

oblitum commented Feb 7, 2020

:h g:coc_extension_root.

@caente
Copy link

caente commented Feb 7, 2020

🤦‍♂️ the issue was with an old setting I had in coc-settings.json, from the times before coc-metals
thanks @oblitum and sorry for the extra noise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants