program-repair / RepairThemAll

Automatic Repair Framework that abstract repair tools and bug benchmarks
MIT License
68 stars 23 forks source link

Why I fail to download Defects4J bugs using the framework in benchmark folder? #29

Closed Kaka727 closed 5 years ago

Kaka727 commented 5 years ago

I try to download Defects4J bugs using the framework in benchmark folder. Below is the command line information. The framework works well when I use repair.py to start but why it fails here.

kaka@ubuntu:~$ defects4j checkout -p Math -v 5b -w /home/kaka/math/math_5_buggy
Use of uninitialized value $work_dir in concatenation (.) or string at /data/RepairThemAll/benchmarks/defects4j/framework/core/Project.pm line 331.
Use of uninitialized value $work_dir in -d at /data/RepairThemAll/benchmarks/defects4j/framework/core/Vcs.pm line 258.
Failed to create working directory: No such file or directory at /data/RepairThemAll/benchmarks/defects4j/framework/core/Vcs.pm line 287.
    Vcs::checkout_vid(Vcs::Git=HASH(0x1b00548), "5f", undef) called at /data/RepairThemAll/benchmarks/defects4j/framework/core/Project.pm line 357
    Project::checkout_vid(Project::Math=HASH(0x1b004d0), "5b") called at /data/RepairThemAll/benchmarks/defects4j/framework/bin/d4j/d4j-checkout line 94
    require /data/RepairThemAll/benchmarks/defects4j/framework/bin/d4j/d4j-checkout called at /data/RepairThemAll/benchmarks/defects4j/framework/bin/defects4j line 155
Compilation failed in require at /data/RepairThemAll/benchmarks/defects4j/framework/bin/defects4j line 155.
tdurieux commented 5 years ago

It happens because this folder: /home/kaka/math/ does not exist