-
Notifications
You must be signed in to change notification settings - Fork 9
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
[BugReport]解析python代码,函数调用关系不完整 #12
Comments
你是直接打开文件的话只会展示当前文件的调用关系,对着方法右键才会显示其他文件的。 |
可否安装 PsiViewer 插件,点击引用处看下是不是 PyReferenceExpression,然后进入方法,看看是不是 PyFunction,调用关系查找的原理很简单,就是查找方法内的 PyReferenceExpression 然后 resolve 到 PyFunction 然后继续查找。 https://plugins.jetbrains.com/plugin/227-psiviewer draw-graph/src/main/kotlin/com/github/linwancen/plugin/graph/parser/python/PythonParser.kt Lines 44 to 46 in a637dd9
draw-graph/src/main/kotlin/com/github/linwancen/plugin/graph/parser/Call.kt Lines 14 to 18 in a637dd9
|
安装了PsiViewer插件, 操作1: 操作4: |
下午好, 期待您解决这个问题 |
|
python版本3.6
插件版本1.22.2025.01.11_00.25
系统版本 windows10专业版
pycharm版本 2021.3.3 (Professional Edition)
源码为 test1调用了test2和test3
生成后,缺少了test2
区别 test3为self调用
test2为其他模块(目录) ,在当前.py文件的顶部有引用
from xxx import preset_api
The text was updated successfully, but these errors were encountered: