Skip to content

Remove SCIP backend and make Tree-sitter the sole frontend - #52

Merged
XiangpengHao merged 1 commit into
mainfrom
remove-scip
Nov 28, 2026
Merged

XiangpengHao merged 1 commit into
mainfrom
remove-scip

Conversation

@XiangpengHao

Copy link
Copy Markdown
Member

Summary

Removes the rust-analyzer / SCIP / cargo metadata backend so Tree-sitter is the single in-process frontend for Rust, TypeScript/JavaScript, Go, and Python, and deep-cleans the codebase (~5,400 net lines removed).

Changes

  • Delete SCIP backend: removed src/scip/, src/indexing.rs, src/workspace.rs, src/model/from_index/, and the SCIP-only tests/fixtures/build_script/ fixture.
  • Simplify CLI & configuration:
    • Removed --backend and Backend from src/main.rs; run() calls treesitter::build(...) directly.
    • Stripped rust-analyzer / cargo subprocess methods (settings(), check(), cfgs()) from src/configuration.rs.
  • Flatten model: collapsed src/model/mod.rs + src/model/tree.rs into a single leaf module src/model.rs (avoiding a shallow-module now that from_index is gone) and removed unused ItemKind::Other.
  • Consolidate end-to-end tests: merged tests/treesitter.rs and tests/end_to_end.rs into a single fast tests/end_to_end.rs (25 tests, ~0.10s) covering all 4 languages, mixed workspaces, RUSTFLAGS, --json, --sarif, --allow, layout checks, and empty-PATH execution.
  • Update toolchain, CI, and docs: removed rust-src and rust-analyzer from flake.nix and .github/workflows/ci.yml, and updated Cargo.toml, README.md, and stale SCIP comments.

Test plan

  • cargo fmt --check
  • cargo clippy --release --all-targets --locked -- -D warnings
  • cargo test --release --locked (223 unit tests + 25 end-to-end tests)
  • cargo build --release --locked && ./target/release/deslop-please (deslop-please: ok)

@XiangpengHao
XiangpengHao merged commit 79a6b36 into main Nov 28, 2026
2 checks passed
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