-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python changes have no impact #71
Comments
Thanks for your interest :) |
Thank you for a quick response! I tried {
"unitLevel": "file",
"unitMapping": {
"helloer/__init__.py": 3,
"helloer/pkg1/__init__.py": 4,
"helloer/pkg1/myfunc.py": 0,
"helloer/pkg2/__init__.py": 1,
"helloer/pkg2/fnuser.py": 2
},
"impactUnits": [
2,
0
],
"transImpactUnits": [
2,
0
],
"entries": [
4,
1,
2,
3
],
"impactEntries": [
2
]
} |
It looks like I have forgotten the implementation of https://github.com/williamfzc/srctx/blob/main/graph/file/api_draw.go I will fix it soon and thanks for pointing it out :) |
Thank you. I also noticed |
The func level graph depends on opensibyl/sibyl2. To be honest I prefer using the file graph in production in my own cases, which only depending on the LSIF/SCIP, much more stable. |
At the current moment, I would suggest that you directly utilize the generated dot file (--outputDot a.dot) for consumption, if you are going to consume the diff data programmatically. Sorry for the bad design in the past. |
I am wondering why did you choose to use a separate tree-sitter extractor for the functions? I think it should be possible using just LSIF |
Because the
Range
There is another conception named |
I see that makes sense now. I wonder if SCIP does have this information directly and also what was the motivation behind using LSIF instead of SCIP? My intuition is that LSIF indexers are available for more languages but maybe your reason was different? Looks like SCIP does ineed have this information under |
You are right. I also noticed that it's really new which was added in one week ago. (sourcegraph/scip-python@1572f2f) There is no any other special reasons. Only because when I started this project, SCIP is also young. So I choose the stable one. |
I have created another issue for the native SCIP support. It should not be hard but it really takes some times. Thanks for the information :) |
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:
I'm trying it like this:
scip-python index . srctx diff --lang PYTHON --scip index.scip --outputHtml out.html --nodeLevel func
The full output:
Change in this function impacts this reference.
The rendered graph has no edges:
stat.json
:Is how I'm using it wrong?
The text was updated successfully, but these errors were encountered: