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
Using Solargraph with JRuby and Bundler #128
Comments
As far as I'm concerned, GitHub is an appropriate place for any bug reports, feature requests, or technical support questions for any of my public projects. Thanks for your participation. Bringing it here can help other people with similar issues. Solargraph shouldn't care if it uses a different Ruby runtime from the software you're developing, e.g., JRuby vs. MRI vs. Rubinius vs. whatever. The biggest issue here is making sure it has access to the same gems. (Compatibility issues are possible but should be uncommon.) One thing to remember: run Since your Gemfile is marked for use with JRuby, you might need to jump through a couple extra hoops to get the same gems installed in YARV. If nothing else, you could manually run Anything I missed or failed to answer, or anything not working as expected, please let me know. |
It is very common for gems that depend on native extensions to break in jruby. see: https://github.com/jruby/jruby/wiki/C-Extension-Alternatives Output from
/usr/local/rvm/gems/jruby-9.4.3.0/extensions/universal-java-11/3.1.0/rbs-2.8.4/mkmf.log
Output from
|
This is more of a support request than a bug, so please forgive me if this is not the appropriate place to open this conversation. My project uses jruby as its runtime, and bundler to manage gems. The documentation is clear enough that I can install the solargraph gem into my bundle in order to access completions for my gems, but if I do this then I end up adding the long startup time of jruby to the startup time of my text editor.
So, my question: is there a way to run solargraph inside YARV ruby (to benefit from the faster startup time), while retaining access to documentation from gems in a gemfile marked for use with jruby?
The text was updated successfully, but these errors were encountered: