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

IllegalStateException in "Generate function from goal" intention #565

Open
sxhya opened this issue Oct 17, 2024 · 1 comment
Open

IllegalStateException in "Generate function from goal" intention #565

sxhya opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels

Comments

@sxhya
Copy link
Collaborator

sxhya commented Oct 17, 2024

Replace the usage of simplify tactic in Module.*c_zro-left with {?}.
Then call "Generate function from goal" intention on the goal.

java.lang.IllegalStateException: Minimization of expression (E) is likely diverged. Please report it to maintainers.
 Errors: 
[]
	at org.arend.term.prettyprint.MinimizedRepresentation.generateMinimizedRepresentation(MinimizedRepresentation.java:69)
	at org.arend.intention.AbstractGenerateFunctionIntention.getMinimizationPrettyPrinter$lambda$11(AbstractGenerateFunctionIntention.kt:185)
	at org.arend.intention.AbstractGenerateFunctionIntention.buildNewFunctionRepresentation$lambda$5(AbstractGenerateFunctionIntention.kt:138)
	at kotlin.text.StringsKt__AppendableKt.appendElement(Appendable.kt:84)
	at kotlin.collections.CollectionsKt___CollectionsKt.joinTo(_Collections.kt:3493)
	at kotlin.collections.CollectionsKt___CollectionsKt.joinToString(_Collections.kt:3510)
	at kotlin.collections.CollectionsKt___CollectionsKt.joinToString$default(_Collections.kt:3509)
	at org.arend.intention.AbstractGenerateFunctionIntention.buildNewFunctionRepresentation$intellij_arend(AbstractGenerateFunctionIntention.kt:136)
	at org.arend.intention.AbstractGenerateFunctionIntention.performRefactoring$intellij_arend(AbstractGenerateFunctionIntention.kt:98)
	at org.arend.intention.AbstractGenerateFunctionIntention.invoke(AbstractGenerateFunctionIntention.kt:87)
	at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.invoke(IntentionActionWrapper.java:77)
@sxhya sxhya added the bug label Oct 17, 2024
@sxhya sxhya assigned knisht and unassigned knisht Dec 3, 2024
@sxhya
Copy link
Collaborator Author

sxhya commented Dec 3, 2024

@knisht Could you provide any comment regarding what is going wrong here?

@sxhya sxhya self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants