Closed iftheshoefritz closed 3 years ago
Agreed that this should be a globally installed gem like solargraph itself
Answer: yes it can run outside of bundler.
It was my own setup with rbenv that was causing hassles. I needed to make sure that solargraph -v
returned 0.40.0
(or later) which requires building solargraph from source until Castwide has released v0.40.0+. Then also building this gem from source (at least until this goes into rubygems).
After all that gem install solargraph --local /path/to/solargraph-0.40.0.gem
and gem install --local /path/to/solargraph_rails-0.1.0
(substituting whatever versions you have).
Bottom line: solargraph needs to be accessible without bundle exec
and it needs to be able to require solargraph_rails
without any help from the Gemfile.
First closed issue! Wewt!
In my own setup I've only tested this when including
solargraph
andsolargraph_rails
in my Rails project Gemfile. The Solargraph client starts the server usingbundle exec solargraph stdio
.Ideally a project source would not know anything about an individual developer's editor, so it would be best to keep these out of the Gemfile.