Skip to content
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

codefuse-query运行自定义Godel踩坑记录 #45

Open
gzcmr opened this issue Apr 15, 2024 · 2 comments
Open

codefuse-query运行自定义Godel踩坑记录 #45

gzcmr opened this issue Apr 15, 2024 · 2 comments
Assignees

Comments

@gzcmr
Copy link

gzcmr commented Apr 15, 2024

脚本编译失败,报错:“line 1:9 mismatched input '::'expecting '('line 1:15 mismatchedinput1expecting {'operator', IDENTIFIER}input.line 3:18:extraneous'expecting')expecting {'{',"_"}line:3:21 mismatchedinput.">.....”。
需排查脚本文件头是否有“// script”注释,编译器的原因,等待后续修复。

@gzcmr
Copy link
Author

gzcmr commented Apr 15, 2024

获取java代码的方法调用关系可以使用Godel内置的CallableBinding模块,其中getCaller方法返回的是调用表达式CallExpression,可以通过CallExpression的getEnlosingCallable方法获取到Callable对象进行调用方法信息的获取

@zhouang777 zhouang777 self-assigned this Apr 15, 2024
@zhouang777
Copy link
Collaborator

脚本报错问题,涉及到编译器版本升级问题,预计6月的Release可以切换完成,到时可以不需要加 // script 头

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

No branches or pull requests

2 participants