bekicot / solargraph-standardrb

Solargraph reporter for standard rb
https://github.com/bekicot/solargraph-standardrb
MIT License
27 stars 7 forks source link

solar graph-standardrb not being loaded #5

Open mariochavez opened 2 years ago

mariochavez commented 2 years ago

I'm using Neovim head and solargraph-standardrb is not being loaded when Solargraph server is loaded. I tried adding the gem in my project Gemfile and globally but still not being loaded.

The log shows the following:

[START][2021-10-12 15:23:54] LSP logging initiated
[ERROR][2021-10-12 15:24:00] .../vim/lsp/rpc.lua:401    "rpc"   "/Users/xxxx/.local/share/nvim/lsp_servers/solargraph/bin/solargraph"   "stderr"    "Solargraph is listening on stdio PID=9645\n"
[ERROR][2021-10-12 15:24:00] .../vim/lsp/rpc.lua:401    "rpc"   "/Users/xxxx/.local/share/nvim/lsp_servers/solargraph/bin/solargraph"   "stderr"    "[WARN] Failed to load plugin 'solargraph-standardrb'\n"

I'm totally lost trying to figure out why is this happening.

bekicot commented 2 years ago

Hi please use rubocop inherited_gem config instead https://github.com/testdouble/standard#usage-via-rubocop

require: standard

inherit_gem:
  standard: config/base.yml

AllCops:
  DisabledByDefault: true

Solargraph will automatically pick the standardrb configuration.