-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
DuplicateOptionsError (crash on startup) #361
Comments
Did you configure the GitHub API access token? It seems like it is configured twice. Please edit Maybe you meant |
Yes, it's fixed. |
Is there a (straightforward) way we could manage this better? For example removing duplicate entries, or ignoring them and using the latest? Assuming the issue above was that Then again , maybe not worth it since the long-term plan is to allow this to be configurable from the UI. |
I had a look into this, we could catch Mostly when we read from the config file in
In order to catch this error, we would need to make adjustments in the following places (how we want to handle the exception is a different story):
So that covers where we need to make the changes, and how we coulld do it. Basically just wrap these interactions with the config file in a try/except that catches If we go forward with this, the question becomes how we want to handle this. There are some ideas I have:
Personally, I think showing a more human-readable dialog to override the existing dialog, which just pulls in the stacktrace (#313), to better inform the user of what actually went wrong, is a step in the right direction. The two problems here are:
|
Feels a bit sketchy, but we could do something like this: try:
# config code
except DuplicateOperationError:
raise Exception("Hello, this is a user friendly error message") Or ideally just show a message box and then load a default config from
I should note that the user should know how to edit the config as duplicate keys were introduced by the user before.
Removing the duplicate key would probably be the most user friendly option although we would need to remove both instances as we don't know which one is correct and then let the user know. Alternatively, there could be a dialog with the buttons:
Seems to the the most logical option... I feel like the way to go is:
|
I like the "delete" option. This kind of issue should never happen from our side (we always use |
Describe the bug
ProtonUpQt crash on startup
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Launching the app witheout crash.
Screenshots
Sorry, there is nothing more than the shell output.
Desktop (please complete the following information):
Additional context
Happen after installing proton in native steam (for my lutris library)
Terminal output
The text was updated successfully, but these errors were encountered: