Can't get solargraph working with bundler
OctoSlurp opened this issue · comments
OctoSlurp commented
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.
Qiming zhao commented
Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel
OctoSlurp commented
[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