Hey, I love the project. I might be using it wrong but I can't make any changes in my small test have any impact. I included the index.scip in the repo.
I made and committed a change:
diff --git a/helloer/pkg1/myfunc.py b/helloer/pkg1/myfunc.py
index 64f393e..2c6f279 100644
--- a/helloer/pkg1/myfunc.py
+++ b/helloer/pkg1/myfunc.py
@@ -1,2 +1,2 @@
def my_func(name: str) -> str:
- return f"Hello {name}!"
+ return f"Hello there {name}"
diff --git a/index.scip b/index.scip
index 2dd2556..3252213 100644
Binary files a/index.scip and b/index.scip differ
I'm trying it like this:
scip-python index .
srctx diff --lang PYTHON --scip index.scip --outputHtml out.html --nodeLevel func
The full output:
INFO[0000] srctx version v0.11.0 (https://github.com/williamfzc/srctx)
INFO[0000] no config: config file does not exist at /home/pah/ocxmr-repos/opt/examplepy/srctx_cfg.json
INFO[0000] start diffing: /home/pah/ocxmr-repos/opt/examplepy
INFO[0000] func level main entry
INFO[0000] using SCIP as index
INFO[0000] scip -> lsif converted
INFO[0000] read lsif file: /home/pah/ocxmr-repos/opt/examplepy/dump.lsif
INFO[0000] index parser ready
INFO[0000] cache type: file
INFO[0000] creating fact graph
INFO[0000] creating rel graph, reference result map size: 8
INFO[0000] base graph ready. fact: 14, rel 12
INFO[0000] file count: 5
INFO[0000] createing fact with sibyl2
{"level":"info","ts":1701063763.176803,"caller":"core/runner.go:22","msg":"valid file count: 5"}
{"level":"info","ts":1701063763.1772585,"caller":"sibyl2@v0.16.4/extract_fs.go:107","msg":"extract cost: 1 ms"}
{"level":"info","ts":1701063763.178545,"caller":"core/runner.go:22","msg":"valid file count: 5"}
{"level":"info","ts":1701063763.1786468,"caller":"sibyl2@v0.16.4/extract_fs.go:107","msg":"extract cost: 1 ms"}
INFO[0000] fact ready. creating func graph ...
INFO[0000] edges building
INFO[0000] detect entries: 0
INFO[0000] func graph ready. nodes: 2, edges: 2
INFO[0000] file helloer/pkg1/myfunc.py line [2] hit no func
INFO[0000] file index.scip line [] hit no func
INFO[0000] diff finished.
INFO[0000] creating output html: out.html
INFO[0000] creating stat json: stat.json
INFO[0000] everything done.
Change in this function impacts this reference.
The rendered graph has no edges:

stat.json:
{
"unitLevel": "file",
"unitMapping": {
"helloer/pkg1/myfunc.py:#1-#2:||my_func||": 0,
"helloer/pkg2/fnuser.py:#4-#5:||fn_user||": 1
}
}
Is how I'm using it wrong?
Hey, I love the project. I might be using it wrong but I can't make any changes in my small test have any impact. I included the
index.scipin the repo.I made and committed a change:
I'm trying it like this:
scip-python index . srctx diff --lang PYTHON --scip index.scip --outputHtml out.html --nodeLevel funcThe full output:
Change in this function impacts this reference.
The rendered graph has no edges:
stat.json:{ "unitLevel": "file", "unitMapping": { "helloer/pkg1/myfunc.py:#1-#2:||my_func||": 0, "helloer/pkg2/fnuser.py:#4-#5:||fn_user||": 1 } }Is how I'm using it wrong?