Open shrkw opened 1 day ago
For the first error, is it possible to share the contents of your Gemfile? (you can redact any parts that are sensitive)
For the second error, please try update to the latest ruby-lsp-rails release.
Both errors are related to an old version of ruby-lsp-rails
. Updating it should do the trick.
Thank you for your comments.
The 2nd error was resolved by updating the gem. Thank you!!
$ gem install ruby-lsp-rails
Fetching ruby-lsp-rails-0.3.15.gem
Successfully installed ruby-lsp-rails-0.3.15
Parsing documentation for ruby-lsp-rails-0.3.15
Installing ri documentation for ruby-lsp-rails-0.3.15
Done installing documentation for ruby-lsp-rails after 0 seconds
1 gem installed
However, the 1st error still remains. My Gemfile related to Rubocop looks like this:
group :development do
gem 'better_errors'
gem 'binding_of_caller', require: false
gem 'rubocop', require: false
gem 'rubocop-rails', require: false
gem 'rubocop-rspec', require: false
gem 'guard-rspec', require: false
end
Thanks,
When I came across this error I tried to run rubocop on a file and it came out that it was failing. After Rubocop update it worked. Perhaps You need to update rubocop?
That's a good point. We only support RuboCop integration starting with v1.4.0 or higher.
If that's not the issue, then we have to start debugging to understand if the formatting requests are properly being set, what is being returned and so on.
Description
Ruby LSP and Rubocop assist does not work.
Ruby LSP Information
VS Code Version
1.93.1
Ruby LSP Extension Version
0.7.20
Ruby LSP Server Version
0.17.17
Ruby LSP Addons
Ruby Version
3.2.4
Ruby Version Manager
none
Installed Extensions
Click to expand
- gitlens (15.5.1) - copilot (1.229.0) - copilot-chat (0.20.1) - vscode-rdbg (0.2.2) - ruby-extensions-pack (0.1.11) - ruby-lsp (0.7.20)Ruby LSP Settings
Click to expand
##### Workspace ```json {} ``` ##### User ```json { "enableExperimentalFeatures": true, "enabledFeatures": { "codeActions": true, "diagnostics": true, "documentHighlights": true, "documentLink": true, "documentSymbols": true, "foldingRanges": true, "formatting": true, "hover": true, "inlayHint": true, "onTypeFormatting": true, "selectionRanges": true, "semanticHighlighting": true, "completion": true, "codeLens": true, "definition": true, "workspaceSymbol": true, "signatureHelp": true, "typeHierarchy": true }, "featuresConfiguration": {}, "addonSettings": {}, "rubyVersionManager": { "identifier": "none" }, "customRubyCommand": "", "formatter": "auto", "linters": null, "bundleGemfile": "", "testTimeout": 30, "branch": "", "pullDiagnosticsOn": "both", "useBundlerCompose": false, "bypassTypechecker": false, "rubyExecutablePath": "", "indexing": {}, "erbSupport": true } ```Reproduction steps
Then show following alert messages.
I have rubocop in the workspace.
Output Ruby LSP tab
When open Ruby file, then appear in Output Window tab.