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

bug: 参数列表过长 #42

Open
eye-gu opened this issue Oct 25, 2023 · 6 comments
Open

bug: 参数列表过长 #42

eye-gu opened this issue Oct 25, 2023 · 6 comments

Comments

@eye-gu
Copy link

eye-gu commented Oct 25, 2023

增量的时候, 代码变动太多, shell命令就会很长, 操作系统会报参数列表过长

@xinjiekou
Copy link

我试用的时候也发现这个问题了果断弃坑,这个项目已经不维护了,可能写代码的人都不在dd了

@eye-gu
Copy link
Author

eye-gu commented Nov 21, 2023

反编译改了一下代码, 勉强用着

@rockyxiashilong
Copy link

public int execute(PrintWriter out, PrintWriter err) throws IOException {
try {
if (this.diffFile != null) {
DiffHelper.modify("diffFilePath", this.diffFile);
new DiffHelper();
}
} catch (Exception var5) {
var5.printStackTrace();
}

  ExecFileLoader loader = this.loadExecutionData(out);
  IBundleCoverage bundle = this.analyze(loader.getExecutionDataStore(), out);
  this.writeReports(bundle, loader, out);
  return 0;

}
反编译后,发现 new DiffHelper(); 没有赋值给任何对象,请问一下,有遇到类似问题么

@rockyxiashilong
Copy link

反编译改了一下代码, 勉强用着

同样有反编译需求,求指导

@lupingp
Copy link

lupingp commented Dec 11, 2023

推荐一种解决方案,滴滴的代码diff是在工程里做的,把diff逻辑增加到jacoco的源码中,这样在执行shell命令时,假设传1代表计算增量,0是计算全量,应该可行,目前我的项目中还没遇到,可能项目代码量比较少,后续遇到这个问题,我试着修改下

@eye-gu
Copy link
Author

eye-gu commented Dec 14, 2023

一处是项目里的UnitTester,有个jacoco.diffFile参数,将内容写文件,替换为文件路径。还有一处是反编译后改DiffHelper,改成读文件

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

4 participants