Skip to content

Remove dead code and fix spurious f in log message#1200

Open
Asher- wants to merge 3 commits intooraios:mainfrom
Asher-:fix/dead-code-and-cosmetics
Open

Remove dead code and fix spurious f in log message#1200
Asher- wants to merge 3 commits intooraios:mainfrom
Asher-:fix/dead-code-and-cosmetics

Conversation

@Asher-
Copy link

@Asher- Asher- commented Mar 21, 2026

Dead code removed (all verified zero refs in src/ and test/):

  • SolidLanguageServer.request_text_document_diagnostics
  • SolidLanguageServer.request_signature_help
  • SolidLanguageServer.request_container_of_symbol
  • LanguageServerCodeEditor._get_code_file_content
  • LanguageServerSymbolRetriever.find_by_location
  • SERENA_ICON_DIR constant

Cosmetic: fix f-string producing f/Users/... instead of /Users/...

Net: +1/-110 lines. Format/type-check clean.

Asher- and others added 3 commits March 20, 2026 19:07
…kit-lsp

sourcekit-lsp was launched with no arguments, giving it no location to store
its background index. Without --scratch-path, textDocument/references always
returns empty because there is no index store for cross-file symbol resolution.

- Pass --scratch-path <repo>/.build/sourcekit-lsp when launching
- Increase local indexing delay from 5s to 10s (real projects need more time)
- Add retry logic for local runs when references are empty, not just CI

Fixes root cause of issue oraios#876.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
On macOS, bare sourcekit-lsp resolves to Command Line Tools version which
has limited indexing capabilities. xcrun without DEVELOPER_DIR also
resolves to CLT. Setting DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
gives the full Xcode sourcekit-lsp with proper background indexing support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dead code removed (verified zero references in src/ and test/):
- SolidLanguageServer.request_text_document_diagnostics (never called)
- SolidLanguageServer.request_signature_help (never called)
- SolidLanguageServer.request_container_of_symbol (never called)
- LanguageServerCodeEditor._get_code_file_content (never called)
- LanguageServerSymbolRetriever.find_by_location (never called)
- SERENA_ICON_DIR constant (never referenced)

Cosmetic fix:
- agent.py get_log_inspection_instructions: fix f"...f{log_path}"
  which produced "f/Users/..." instead of "/Users/..."
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

Successfully merging this pull request may close these issues.

1 participant