defects4j icon indicating copy to clipboard operation
defects4j copied to clipboard

pathspec 'D4J_Lang_1_BUGGY_VERSION' did not match any file(s) known to git

Open hh-wq opened this issue 5 months ago • 1 comments

in the windows os when I use 、、、 perl D:\pythonProject\defects4j\framework\bin\defects4j checkout -p Lang -v 1b -w D://pythonProject//defects4j//temp//lang_1_buggy 、、、 but 、、、 Check out program version: Lang-1b......................................... FAIL Executed command: cd D:\pythonProject\defects4j\temp\lang_1_buggy && git checkout D4J_Lang_1_BUGGY_VERSION 2>&1 && git clean -xdf 2>&1 error: pathspec 'D4J_Lang_1_BUGGY_VERSION' did not match any file(s) known to git 、、、

In fact, there is indeed no branch under D:\pythonProject\defects4j\temp\lang_1_buggy, only the following branch: 、、、

  • (HEAD detached from d1a45e973)

master

remotes/origin/HEAD -> origin/master

remotes/origin/LANG_1_0_BRANCH

remotes/origin/LANG_2_2_X

remotes/origin/LANG_2_X

remotes/origin/LANG_4_X

remotes/origin/LANG_POST_2_4

remotes/origin/LangTwo-1.x

Remotes/origin/dependabot/maven/com puppycrawl. Tools - checkstyle - 10.5.0

remotes/origin/master

remotes/origin/release 、、、 How can I modify it

hh-wq avatar Aug 05 '25 02:08 hh-wq

Hi @hh-wq,

It looks like the post-checkout step, which creates these additional git tags, is failing. As a result, subsequent steps also fail.

Since Defects4J does not officially support Windows, you might want to try WSL, Docker, VM, or similar set ups, as opposed to debugging this issue.

Best, René

rjust avatar Oct 01 '25 07:10 rjust