Skip to main content

Dev orchestration: file watch → SCIP indexer → stubborn index --merge

Project description

stubborn-watch

Debounced file watch → external SCIP indexer (scip-java) → stubborn index --merge.

Stubborn does not parse Java source. This package only orchestrates the dev loop described in ADR-009.

Install

pip install stubborn-watch

Requires scip-java on PATH for the default indexer command.

Usage

Watch mode (dev loop)

stubborn index --scip index.scip --out symbols.db   # initial full snapshot
stubborn-watch watch --root . --db symbols.db

On save (debounced, default 2s):

  1. scip-java index
  2. stubborn index --merge for changed relative_path values

One-shot merge (hooks / CI helpers)

stubborn-watch merge-once --root . --db symbols.db \
  --paths com/example/Foo.java,com/example/Bar.java

Use --skip-index when index.scip is already fresh.

Validation scope

This repo owns orchestration-focused validation:

  • CLI smoke for merge-once
  • debounce and path normalization
  • subprocess invocation contracts around scip-java

The canonical ADR-009 runnable demo lives in stubborn-demo:

That keeps stubborn-watch focused on watch behavior, while stubborn-demo owns runnable demo assets and black-box validation projects.

Options

Flag Default Purpose
--root . Project root
--db (required) SQLite symbol graph
--scip index.scip SCIP index path
--debounce 2.0 Seconds to coalesce events
--pattern **/*.java Watched file glob
--scip-cmd scip-java index External indexer command

Related

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stubborn_watch-0.1.0b1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stubborn_watch-0.1.0b1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file stubborn_watch-0.1.0b1.tar.gz.

File metadata

  • Download URL: stubborn_watch-0.1.0b1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for stubborn_watch-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 9767e4d1183a8531ff81f3b776b295aed6eb680f8e5165495ea0b1ecd6702f2c
MD5 a41b50125036c6a2c6f97e1e3317e6ef
BLAKE2b-256 dc9a9c7b5d61890e0fbaee1992f9d9e34ea5caec610f2e2e360ab84f4b731389

See more details on using hashes here.

File details

Details for the file stubborn_watch-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for stubborn_watch-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 fabddbbf0c9ab454a736a5007591bcbc981dff0e37aab2c9d7a6038cfb58910d
MD5 418bde6ce42dc779fbfdd52892a32b89
BLAKE2b-256 312608dc578bdd79af8f3bf6e85214a0191fc3c5235c5819e74848dc1b046055

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page