Closed benortiz closed 2 years ago
When I attempt to debug through, it looks like it is complaining about requiring standard that it's "unable to find a version of standard to activate".
I uninstalled all versions of standard and then re-installed this plugin. From there, it was able to find standard with no issue. My guess is that I had multiple versions of standard installed past 0.4.1 which is the minimum in the gemspec, so it didn't know which to use?
Before I had the folowing versions installed:
After I have: standard (1.5.0)
I'm unsure how solargraph-reek doesn't have the same issue as I have three versions of reek installed. Could it have to do with Solargraph-reek defining reek as a dependency vs a runtime dependency?
Could it have to do with Solargraph-reek defining reek as a dependency vs a runtime dependency?
@dblanken No, both are the same, add_dependency
is an alias of add_runtime_dependency
.
Hmmm, I'm unsure why it couldn't load standard then like the other repo does with reek.
Hmmm. I'm using asdf
to manage ruby versions, what are y'all using? Maybe it's an issue there?
@benortiz I am also using ASDF. Possibly. How about you, @RobertAudi?
I am using chruby
not asdf
.
Hi, I would suggest to use the new rubocop feature. https://github.com/testdouble/standard#usage-via-rubocop
require: standard
inherit_gem:
standard: config/base.yml
This will give you better experience.
I'm about to archive this repo once i have time to write docs on how to migrate.
Solargraph should automatically pick up the configuration.
@bekicot Wonderful! Thanks for sharing that. I haven't been to their page in a while so good to see this can be done!
Amazing, thank you so much @bekicot !
I'm having a difficult time figuring out why I'm getting the above error.
I've gem installed
standard
,solargraph-standardrb
, andsolargraph
.For context, I'm running Solargraph through Neovim using the built in LSP.
My
.solargraph.yml
looks like this:I tried changing
standardrb
tostandard
since that's the name of the gem and no luck. Do you have any ideas on how to track down what's going on? Thanks!