Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace not scanning #719

Open
nightshade427 opened this issue Jun 11, 2024 · 1 comment
Open

Workspace not scanning #719

nightshade427 opened this issue Jun 11, 2024 · 1 comment

Comments

@nightshade427
Copy link

nightshade427 commented Jun 11, 2024

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 })))
@castwide
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants