Workspace not scanning
When lsp starts up it exchanges capabilities and initializes, but doesn't scan workspace and send back progress to editor. I can get lsp support for the currently open file, eg. find references and definitions within the file. If I go global workspace symbol search only the currently open file symbols are listed. But, since it didn't scan workspace it can't go to definitions in other files etc.
Solargraph version: 0.50 Ruby version: 3.3
Here is log
2024-06-11T17:12:58.114 helix_lsp::transport [INFO] solargraph -> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"general":{"positionEncodings":["utf-8","utf-32","utf-16"]},"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"disabledSupport":true,"isPreferredSupport":true,"resolveSupport":{"properties":["edit","command"]}},"completion":{"completionItem":{"deprecatedSupport":true,"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{}},"hover":{"contentFormat":["markdown"]},"inlayHint":{"dynamicRegistration":false},"publishDiagnostics":{"tagSupport":{"valueSet":[1,2]},"versionSupport":true},"rename":{"dynamicRegistration":false,"honorsChangeAnnotations":false,"prepareSupport":true},"signatureHelp":{"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown"],"parameterInformation":{"labelOffsetSupport":true}}}},"window":{"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeConfiguration":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":false},"executeCommand":{"dynamicRegistration":false},"fileOperations":{"didRename":true,"willRename":true},"inlayHint":{"refreshSupport":false},"symbol":{"dynamicRegistration":false},"workspaceEdit":{"documentChanges":true,"failureHandling":"abort","normalizesLineEndings":false,"resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"helix","version":"24.3 (2cadec0b)"},"processId":22042,"rootPath":"/home/user/project1","rootUri":"file:///home/user/project1","workspaceFolders":[{"name":"project1","uri":"file:///home/user/project1"}]},"id":0}
2024-06-11T17:12:58.207 helix_lsp::transport [INFO] solargraph <- {"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":2,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}},"positionEncoding":"utf-32","completionProvider":{"resolveProvider":true,"triggerCharacters":[".",":","@"]},"signatureHelpProvider":{"triggerCharacters":["(",","]},"hoverProvider":true,"documentSymbolProvider":true,"definitionProvider":true,"renameProvider":{"prepareProvider":true},"referencesProvider":true,"workspaceSymbolProvider":true,"foldingRangeProvider":true,"documentHighlightProvider":true}}}
2024-06-11T17:12:58.207 helix_lsp::transport [INFO] solargraph <- {"capabilities":{"completionProvider":{"resolveProvider":true,"triggerCharacters":[".",":","@"]},"definitionProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"foldingRangeProvider":true,"hoverProvider":true,"positionEncoding":"utf-32","referencesProvider":true,"renameProvider":{"prepareProvider":true},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":2,"workspace":{"workspaceFolders":{"changeNotifications":true,"supported":true}},"workspaceSymbolProvider":true}}
2024-06-11T17:12:58.207 helix_lsp::transport [INFO] solargraph -> {"jsonrpc":"2.0","method":"initialized","params":{}}
2024-06-11T17:12:58.207 helix_term::application [DEBUG] received editor event: LanguageServerMessage((0, Notification(Notification { jsonrpc: None, method: "initialized", params: None })))
Based on the JSON-RPC log, it looks like the workspace should get mapped, so I'm not sure what the problem is. I'm also not familiar with Helix, so I'm afraid I can't make any useful troubleshooting recommendations.
Gem version 0.54.0 includes some scan fixes that may have resolved this issue.
@nightshade427 have you tried to run scan manually. Like solargraph scan -v? I faced the same problem but in emacs, and in my case I had error
'Solargraph::Workspace#load_sources': The workspace is too large to index (5014 files, 5000 max) (Solargraph::WorkspaceTooLargeError)
solargraph has default limit https://github.com/castwide/solargraph/blob/master/lib/solargraph/workspace/config.rb#L12.
As fix, I increased this option in local config .solargraph.yaml to 10000