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

Severall errors trying to translate a new projct #15

Open
FreitasVarejo opened this issue Feb 18, 2025 · 2 comments
Open

Severall errors trying to translate a new projct #15

FreitasVarejo opened this issue Feb 18, 2025 · 2 comments

Comments

@FreitasVarejo
Copy link

FreitasVarejo commented Feb 18, 2025

Good evening,

I was able to translate the projects in the repository.

However, when I tried to translate a new one, I couldn't properly handle the preprocessing and test decomposition.

Would you mind trying to translate the following example repository I created? It only contains four short Java files without corner cases, so it shouldn't take long.

Link of the repo: https://github.com/FreitasVarejo/java_project_example

@FreitasVarejo
Copy link
Author

FreitasVarejo commented Feb 18, 2025

I think the problem resides in the lack of support for other languages in /src/compositional_glue_tests/constants.py

I had to add the following lines tat the end of the file to make ir work:

paths["java_project_example"] = {
    "main": "main/java/org/apache/commons/validator/",
    "test": "test/java/org/apache/commons/validator/",
}

package_names["java_project_example"] = "org.apache.commons.validator"

@FreitasVarejo
Copy link
Author

I also had to change the self.root_dir address in /src/compositional_glue_tests/script_for_class_by_class.py and script_for_class_by_class.py. It was sending the code to a file I couldn't even find.

self.root_dir = "/work/gabriel.pinheiro/AlphaTrans"

I'm not sure if this is related to the fact that my home directory is at /work/gabriel.pinheiro/AlphaTrans—I don't think so—but I still wanted to let you know.

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

1 participant