feat(scip): auto-install indexers and generate compile_commands.json for C/C++#211
Merged
feat(scip): auto-install indexers and generate compile_commands.json for C/C++#211
Conversation
…skill (#210) The lore-enabled benchmark arm was silently getting a dead MCP server because findLoreProjectRoot() checked the cloned repo first. For lore-self benchmarks the clone is at a pinned SHA (660be2b) that predates the realpathSync entry-guard fix (ee708f8), so the old server.js fails the /var vs /private/var check on macOS and main() never runs. Changes: - findLoreProjectRoot() now resolves exclusively from import.meta.dirname (the current checkout), never from the cloned target repo. Throws if dist/server/server.js is missing instead of silently falling through. - Remove redundant --deny-tool for control arm — the MCP isn't registered so lore_* tools simply don't exist. - Remove token count estimator — use actual outputTokens from copilot NDJSON stream only. - Add copilot-benchmark skill (.github/skills/copilot-benchmark/SKILL.md).
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #211 +/- ##
==========================================
- Coverage 88.04% 87.43% -0.61%
==========================================
Files 80 82 +2
Lines 9048 9429 +381
Branches 2798 2925 +127
==========================================
+ Hits 7966 8244 +278
- Misses 1082 1185 +103 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Auto-install SCIP indexers and generate C/C++ compilation databases so users get rich code intelligence without manual setup.
Changes
SCIP indexer auto-install (
src/scip/installer.ts)@sourcegraph/scip-typescriptand@sourcegraph/scip-pythonas npm dependenciesscip-clang,scip-go,scip-rubyfrom GitHub releases to~/.lore/bin/lore install-scipCLI command for explicit installationRegistry resolution (
src/scip/registry.ts)~/.lore/bin/(managed) andnode_modules/.bin/(npm-bundled) before system PATHresolvedPath(full path) instead of bare command name forexecFileC/C++ compilation database generation (
src/scip/compdb.ts)compile_c- Auto-generatecompile_c- Auto-generatecompile_c- Auto-generatecompilete- Auto-ge-co- Auto-generatecompile_c- Auto-generatecompile_c- Auto-generatecompile_c- Auto-generatecompilete- Auto-ge-co- Auto-romScipSymbolt- Auto-generatecompile_c- Auto-generatecompile_c- nd- Auto-generatecompile_c- Auto-generatecompile_c- Auto-generatecompile_c- Autrecogniz- Auto-generatecompile_c- Auto-generatecompile_c- Auto-generatecompile_c- Auto-generad- Auto-generatecompile_c- Auto-generatecompile_c- Auto-generatecompile (- Auto-generatecompile_c- Auto-generatecompile_c- Auto-- Auto-generatecompile_c- Auto-generate `compile_c- Auto-gd############################################End-to-end verified on PostgreSQL:
lore index --root postgres --language cautomatically detects############################################End-to-end verified on Postgre,527 SCIP-resolved call refs in ~37 seconds with zero manual setupparse_analyze_fixedparamscallers now fully resolved: DefineView, pg_analyze_and_rewrite_fixedparams, post_parse_analyze_hookInstall status (
lore install-scip)