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

File path is wrong in all_instances_found.json after following readme example #253

Closed
Gnafu opened this issue Jun 9, 2022 · 2 comments
Closed

Comments

@Gnafu
Copy link

Gnafu commented Jun 9, 2022

I'm following the readme and after an install and test I tried the example comand to "Extract all commits of repogit4testv0 that insert a binary operator AST node".

Here's how to reproduce:

git clone https://github.com/SpoonLabs/coming.git
cd coming/
mvn install -DskipTests
cd repogit4testv0/
git fetch
git pull
cd ..
java -classpath ./target/coming-0-SNAPSHOT-jar-with-dependencies.jar fr.inria.coming.main.ComingMain -location  ./repogit4testv0/ -mode mineinstance -action INS -entitytype BinaryOperator   -output ./out

The out/all_instances_found.json file contains a few instances with the following "file" values:

"file": "/home/tester/coming/src/CharSequenceUtils.java",
[...]
"file": "/home/tester/coming/src/Quaternion.java",

but the files actual paths are :

/home/tester/coming/repogit4testv0/src/CharSequenceUtils.java
/home/tester/coming/repogit4testv0/src/Quaternion.java

the "repogit4testv0" directory is missing from the path

@monperrus
Copy link
Contributor

thanks for the report, I can reproduce the bug locally. looking into it.

@monperrus
Copy link
Contributor

fixed in #257

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

2 participants