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

Can't get solargraph working with bundler #60

Open
OctoSlurp opened this issue Jun 3, 2021 · 2 comments
Open

Can't get solargraph working with bundler #60

OctoSlurp opened this issue Jun 3, 2021 · 2 comments

Comments

@OctoSlurp
Copy link

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
Copy link
Member

chemzqm commented Jun 3, 2021

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

@OctoSlurp
Copy link
Author

OctoSlurp commented Jun 3, 2021

[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

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

2 participants