Skip to content

bug(#3708): Required tojo methods for caching xmir-to-phi/phi-to-xmir goals#3778

Open
ArtemGet wants to merge 10 commits intoobjectionary:masterfrom
ArtemGet:bug/#3708/tojos
Open

bug(#3708): Required tojo methods for caching xmir-to-phi/phi-to-xmir goals#3778
ArtemGet wants to merge 10 commits intoobjectionary:masterfrom
ArtemGet:bug/#3708/tojos

Conversation

@ArtemGet
Copy link
Contributor

Ref: #3708

@github-actions github-actions bot added the core label Dec 29, 2024
return file.toString().substring(
this.parent.toString().length() + 1
).replaceAll(".eo$", "").replace(File.separator, ".");
).replaceAll(this.extension, "").replace(File.separator, ".");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArtemGet this looks pretty dangerous. What if this.extension will be equal to ( -- you will get runtime exception here. Try using Pattern.quote().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yegor256 Agreed, add Pattern.quote and tests.

@maxonfjvipon
Copy link
Member

@ArtemGet please merge current master to your branch and restart the build

@ArtemGet
Copy link
Contributor Author

@maxonfjvipon Is OPTIMIZED attribute not present now? I am using it in xmir-to-phi cache.

@maxonfjvipon
Copy link
Member

@ArtemGet yes, it was removed here. Also please note that input directory for PhiMojo is 1-parse now, so you would need an XMIR attribute instead of OPTIMIZED

@github-actions github-actions bot removed the core label Dec 30, 2024
@ArtemGet
Copy link
Contributor Author

@maxonfjvipon Changed OPTIMIZED to XMIR. Could you check please?
Also, there is some Codacy check that fails on changing parsing/optimization directories(that is described wrongly, I guess) in eo-maven-plugin's README.

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

Successfully merging this pull request may close these issues.

3 participants