defects4j icon indicating copy to clipboard operation
defects4j copied to clipboard

Cannot Generate testcase for Lang-21 to Lang-41

Open jmueducn opened this issue 9 months ago • 5 comments

I can see from the documents is that the build.xml file is missing in these projects

BUILD FAILED /data3/cpy/MutAGENTest/mutantsgen/Wukong/defects4j/framework/projects/defects4j.build.xml:88: The following error occurred while executing this line: /data3/cpy/MutAGENTest/mutantsgen/Wukong/defects4j/framework/projects/Lang/Lang.build.xml:43: Cannot find /tmp/gen_tests.pl_428404_1742475293/build.xml imported from /data3/cpy/MutAGENTest/mutantsgen/Wukong/defects4j/framework/projects/Lang/Lang.build.xml

jmueducn avatar Mar 20 '25 13:03 jmueducn

I use defects4j checkout -p Lang -v 21f -w ./defects4j_fixed/Lang/Lang_21_fixed to download the project. but the project come without the build.xml file. This only happens between lang-21(both bug and fixed) and lang-41(both)

jmueducn avatar Mar 20 '25 13:03 jmueducn

I use defects4j checkout -p Lang -v 21f -w ./defects4j_fixed/Lang/Lang_21_fixed to download the project. but the project come without the build.xml file. This only happens between lang-21(both bug and fixed) and lang-41(both)

A weired debug info like this cp: cannot stat '.../defects4j/framework/projects/Lang/build_files/55f642725742513824975af0e5e91cb1920b6d72/*': No such file or directory It seems that is a postfix procedure. However failed. can anyone explain this?

jmueducn avatar Mar 20 '25 13:03 jmueducn

I use defects4j checkout -p Lang -v 21f -w ./defects4j_fixed/Lang/Lang_21_fixed to download the project. but the project come without the build.xml file. This only happens between lang-21(both bug and fixed) and lang-41(both)

A weired debug info like this cp: cannot stat '.../defects4j/framework/projects/Lang/build_files/55f642725742513824975af0e5e91cb1920b6d72/*': No such file or directory It seems that is a postfix procedure. However failed. can anyone explain this?

It seems that the missing build.xml file is the crutial problem.

jmueducn avatar Mar 20 '25 13:03 jmueducn

Similar proplem happens also for JacksonXml projects and Jsoup projects

jmueducn avatar Sep 30 '25 22:09 jmueducn

Hi @jmueducn,

Thanks for reporting this. Unfortunately, I cannot reproduce the issue. Can you please let me know:

  • are you using the most recent version of Defects4J?
  • what OS, Java version, Git version are you using?
  • what steps reproduce the problem on your end (starting with git clone https://github.com/rjust/defects4j)?

Also, do you see different behavior when using relative vs. absolute paths for the working directory?

rjust avatar Oct 01 '25 07:10 rjust