Ang Zhou
Ang Zhou
Released in 2.1.0. https://github.com/codefuse-ai/CodeFuse-Query/releases/tag/2.1.0
脚本报错问题,涉及到编译器版本升级问题,预计6月的Release可以切换完成,到时可以不需要加 // script 头
这个问题太宽泛了,类似于“写个淘宝”,请以 示例代码 + 需求描述 + 期望输出 来交流。社区会给出语法和API的相关知识,但不提供写脚本的服务。
首先需要明确下概念, 1. class的field有两种类型,分别为“引用类型(reference type)”和“原始类型(primitive type)”。你的需求中,我理解应该是只关心“引用类型”。 请参考以下脚本 ``` rust // script use coref::java::* pub fn default_java_db() -> JavaDB { return JavaDB::load("coref_java_src.db") } pub fn is_reference_type(type: Type) -> bool { for(r in...
目前只有Java抽取支持文件级别的增量抽取。命令如下: ``` shell sparrow database create -s ./src -lang java -o . --extraction-config java.incremental=true java.cache-dir=./coref-cache java.commit=abc ``` 逐个解释一下参数 - ```incremental=true```:表示开启增量。 - ```cache-dir=./coref-cache```:增量需要用到缓存,必须指定缓存的存储目录。 - ```commit=abc```:增量需要指定版本信息,这里使用的参数是commit,但实际传入的参数可以是任意字符串用来标识代码版本。
这是个已知问题,原因是抽取器使用的解析器(PSI)缺少特定错误处理的依赖,不会影响抽取过程。 This is a known issue. The cause is that the parser (PSI) used by the extractor is missing a specific error handling dependency. It will not affect the extraction...
issue 标题是调用链,“使用了该注解的 类、方法、常量” 是必须在调用链中的吗?
可以参考这个清洗数据的脚本,也是过滤自动生成的文件:https://github.com/codefuse-ai/CodeFuse-Query/blob/main/example/CodeFuse/CommentCodePairsJava.gdl#L9 配合路径过滤的脚本一起看:https://github.com/codefuse-ai/CodeFuse-Query/pull/114
see the example code in this PR: https://github.com/codefuse-ai/CodeFuse-Query/pull/114