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

Core-to-PLC plugin prints too much context #742

Closed
j-mueller opened this issue Mar 21, 2019 · 2 comments
Closed

Core-to-PLC plugin prints too much context #742

j-mueller opened this issue Mar 21, 2019 · 2 comments
Assignees

Comments

@j-mueller
Copy link
Contributor

In the default setting the plugin prints out a stack of contexts all the way to the entire script. The default should be to only print the first couple of contexts.

GHC Core to PLC plugin: Error: Used but not defined in the current conversion: Variable >= [ClassOp] Context: Converting expr: >= Context: Converting expr: >= @ Ada Context: Converting expr: >= @ Ada $fOrdAda Context: Converting expr: >= @ Ada $fOrdAda totalInputs_aIaY Context: Converting expr: >= @ Ada $fOrdAda totalInputs_aIaY a_aIck Context: Converting expr: break<199>(a_aIck,totalInputs_aIaY) >= @ Ada $fOrdAda totalInputs_aIaY a_aIck Context: Converting expr: case break<199>(a_aIck,totalInputs_aIaY) >= @ Ada $fOrdAda totalInputs_aIaY a_aIck of { False -> ds_dIJ4 ds_dIJ7; True -> : @ Slot s_aIcj (ds_dIJ4 ds_dIJ7) } Context: Creating alternative: (,) Context: Converting expr: case ds_dIJ6 of { (s_aIcj, a_aIck) -> case break<199>(a_aIck,totalInputs_aIaY) >= @ Ada $fOrdAda totalInputs_aIaY a_aIck of { False
@michaelpj
Copy link
Contributor

IMO we should not print any context. It still just shows you incomprehensible gobs of Core.

@michaelpj
Copy link
Contributor

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants