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

fix bug in diff generator #33

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

Vipul-Cariappa
Copy link
Contributor

Fixes a bug in diff generator, where the same line is repeated 2 times.

Example:
Screenshot from 2024-10-02 19-46-45

You can see that #0 main is repeated 2 times, similarly Breakpoint 1.

This PR fixes it.


temp_line += line[-(len(line) - len(tags)):]
temp_line += line[len(tags):]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The main change is this line.

Other changes are minor refactors.

@vgvassilev vgvassilev requested a review from mvassilev October 2, 2024 14:53
@mvassilev
Copy link
Collaborator

Fixes a bug in diff generator, where the same line is repeated 2 times.

Example: Screenshot from 2024-10-02 19-46-45

You can see that #0 main is repeated 2 times, similarly Breakpoint 1.

This PR fixes it.

There are differences in #0 main lines and the Breakpoint 1 lines also. Aren't they supposed to appear just the way they appear? Maybe I am missing something...

@Vipul-Cariappa
Copy link
Contributor Author

Vipul-Cariappa commented Oct 3, 2024

Screencast.from.2024-10-03.08-40-48.mp4

Please have a look at the video. Hope this makes things clear.

EDITED:
In main the line is repeated 2 times, in diff it is not repeated (in the video).

@vgvassilev vgvassilev merged commit 0db3775 into compiler-research:main Oct 3, 2024
@Vipul-Cariappa Vipul-Cariappa deleted the diff branch November 19, 2024 13:08
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