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

improve params errors #2437

Merged
merged 9 commits into from Sep 7, 2023
Merged

improve params errors #2437

merged 9 commits into from Sep 7, 2023

Conversation

lexelby
Copy link
Member

@lexelby lexelby commented Jul 23, 2023

Somewhere along the line, the thing that shows a red error message in the Params window when exceptions occur stopped working. This PR fixes that and makes it way more useful. Now, instead of telling them to close the simulator to see the error, the error is shown directly in the Params window.

image

This way they don't get a spam of errors on stderr that all show up at the end.

@lexelby
Copy link
Member Author

lexelby commented Jul 23, 2023

still needs work, I forgot about the warnings we send to stderr like "rung does not cross both rails" and such

@lexelby
Copy link
Member Author

lexelby commented Jul 26, 2023

And now the electron simulator also shows errors. Lack of any indication of errors has been incredibly confusing for users since the electron simulator was first released.

image

@lexelby
Copy link
Member Author

lexelby commented Aug 7, 2023

@kaalleen Do you think this is ready to go?

Copy link
Collaborator

@kaalleen kaalleen left a comment

Choose a reason for hiding this comment

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

I love the possibility to see the error message within the params and simulator dialogs.
Seems to be working in Linux, macOS and Windows.

Some error messages are hard to read when they are a longer. Therefore I'd like if we would wrap the text if it is too long. Especially in the simulator window users wouldn't be able to read to whole text if their screens are small.

electron/src/renderer/components/Simulator.vue Outdated Show resolved Hide resolved
lib/gui/warnings.py Outdated Show resolved Hide resolved
@kaalleen kaalleen merged commit af96d72 into main Sep 7, 2023
4 checks passed
@kaalleen kaalleen deleted the lexelby/params-errors branch September 7, 2023 17:25
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.

None yet

2 participants