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

Invalid Graph on Combobox #442

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

rosaigor138
Copy link
Member

@rosaigor138 rosaigor138 commented Nov 9, 2023

Closes #433

@rosaigor138 rosaigor138 added the bug Something isn't working label Nov 9, 2023
@rosaigor138 rosaigor138 self-assigned this Nov 9, 2023
@atilaajones
Copy link
Contributor

You should include the issue number in the description. This way we'll do a review to understand the motivation behind the update. Also try to be more specific in the commit name, not just "fixed"

Copy link
Contributor

@atilaajones atilaajones left a comment

Choose a reason for hiding this comment

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

This change solved the problem. But I think you should also change the source of the problem: filtering should not return a file with a blank last line. The same goes for inserting the usual new graph, which also inserts a blank line.

@LBeghini
Copy link
Member

This change solved the problem. But I think you should also change the source of the problem: filtering should not return a file with a blank last line. The same goes for inserting the usual new graph, which also inserts a blank line.

@atilaajones the blank line after filtering was an strategy proposed to fix the issue #397 . We can see the changes on the PR #403

@fsoupimenta
Copy link
Member

fsoupimenta commented Nov 16, 2023

I have observations about this PR:

  1. On Linux (more precisely on Ubuntu 22.04.3 LTS) when a file with a blank line at the end is opened, the software already reads this line and throws it into the combo box, leaving the graph invalid. It's worth noting that this behavior only occurs on Linux.

  1. When you click on an invalid graph in the combo box, the graph counter decreases, leaving duplicates.

Note

Test if this problem is related to this PR to resolve it here

  1. @atilaajones The creation of a new graph does not add a blank line at the end, as can be seen below, it only breaks the line in the case of an insertion in the middle of the list, as this method is reused by save as well

try:
changed_data[current_index] = new_g6 + "\n"
except IndexError:
changed_data.append("\n" + new_g6)

@atilaajones
Copy link
Contributor

atilaajones commented Nov 19, 2023

Test the reported behavior, then try to solve it in PR #444
@rosaigor138

@rosaigor138
Copy link
Member Author

Test the reported behavior, then try to solve it in PR #444 @rosaigor138

I don't understand why that I need to make that changes on the change graph file PR

Copy link
Member

@LBeghini LBeghini left a comment

Choose a reason for hiding this comment

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

Working on macOS Sonoma version 14.1.1 Chip Apple M1

Copy link
Member

@fsoupimenta fsoupimenta left a comment

Choose a reason for hiding this comment

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

@rosaigor138 The blank line at the end is still read by the software in ubuntu

@fsoupimenta fsoupimenta removed the bug Something isn't working label May 8, 2024
Copy link
Contributor

@atilaajones atilaajones left a comment

Choose a reason for hiding this comment

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

@fsoupimenta. I think this PR can be merged, right?

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.

Invalid Graph on Combobox
4 participants