neoclide / coc-solargraph

Solargraph extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get solargraph working with bundler

OctoSlurp opened this issue · comments

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.

[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