-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Labels
enhancementNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomershelp-wantedExtra attention is neededExtra attention is needed
Description
I have checked that this feature is not already implemented
- This feature does not exist
Use case
When trying to debug why a certain library was detected (ie. Rubocop) it would be nice to indicate how the detection happened.
Description
When starting ruby-lsp in a project, I encountered the following log entries:
[2025-11-28 20:29:40] [LOG] Auto detected formatter: rubocop_internal
[2025-11-28 20:29:40] [LOG] Auto detected linters: rubocop_internal
[2025-11-28 20:29:40] [LOG] Detected test library: rails
[2025-11-28 20:29:40] [LOG] Ruby LSP detected this is a Sorbet project and will defer to the Sorbet LSP for some functionality
The problem is that none of these are true. The project doesn't use Rubocop (albeit not directly), nor does it use Sorbet.
I actually don't think this is a problem in ruby-lsp. I use a small shim script to run my local fork correctly and I assume that it's detecting some of these as the ruby-lsp project.
But it would be great to know why they were detected. ie.
Auto detected formatter: rubocop_internal (presence of rubocop.yml in project root)
Implementation
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomershelp-wantedExtra attention is neededExtra attention is needed