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

Improved line adjustment logic for federated programs #1760

Merged
merged 1 commit into from
May 21, 2023

Conversation

petervdonovan
Copy link
Collaborator

This fixes a bug in which, when a reaction body of a federated reactor all fits on one line, it does not get a (correct) CodeMap.Correspondence tag. This issue was observed here.

It is bad that I had to modify ToLf to do this since the logic isn't really in ToLf. The problem was that the line adjustment relies on tagging the target code (without the fat braces), and the target code is not recorded separately from the fat braces if they are entered into the MalleableString machinery as all one string.

@petervdonovan petervdonovan requested a review from lhstrh May 21, 2023 16:25
@lhstrh
Copy link
Member

lhstrh commented May 21, 2023

The resulting unit test failures are a bit puzzling...

It is bad that I had to modify ToLf to do this since the logic isn't
really in ToLf. The problem was that the line adjustment relies on
tagging the target code (without the fat braces), and the target code is
not recorded separately from the fat braces if they are entered into the
MalleableString machinery as all one string.
@petervdonovan petervdonovan force-pushed the fix-fed-line-adjustment branch from 1e9297d to c44f91e Compare May 21, 2023 19:41
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@lhstrh lhstrh merged commit 1fe81ca into master May 21, 2023
@lhstrh lhstrh deleted the fix-fed-line-adjustment branch May 21, 2023 22:40
@petervdonovan petervdonovan added enhancement Enhancement of existing feature bugfix and removed enhancement Enhancement of existing feature labels Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants