neoclide / coc-solargraph

Solargraph extension for coc.nvim
202 stars 10 forks source link

Can't get solargraph working with bundler #60

Open OctoSlurp opened 3 years ago

OctoSlurp commented 3 years ago

Hello, I'm trying to get solargraph to work with bundler. I got this in my Gemfile

source 'https://rubygems.org'

gem 'httparty'
gem 'solargraph', group: :development

and I enabled bundler in my-project/.vim/coc-settings.json

{
    "solargraph.useBundler": true
}

Solargraph starts fine, I can see it with ps

~ ❯ ps aux | grep solargraph
octoslu+   77015  1.8  1.8 505880 92788 ?        Sl   14:26   0:03 /path/to/project/vendor/bundle/ruby/3.0.0/bin/solargraph socket --port 0

but I don't get completion in neovim.

chemzqm commented 3 years ago

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

OctoSlurp commented 3 years ago
[Trace - 2:47:29 PM] Sending request 'textDocument/completion - (1)'.
Params: {
    "textDocument": {
        "uri": "file:///path/to/project/src/main.rb"
    },
    "position": {
        "line": 0,
        "character": 7
    },
    "context": {
        "triggerKind": 1
    }
}

[Trace - 2:47:30 PM] Sending notification '$/cancelRequest'.
Params: {
    "id": 1
}

This is what I get when I try to get completion