-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Show a startup error dialog in case of invalid syntax of the config.json #1220
Comments
Is it throwing an error in terminal ? |
I haven't open it in the terminal, just use the desktop (Gnome Dock) shortcut. |
Yes, it does.
|
I mean, we could make the app crash instead if that is the preferred approach. |
The problem would be that the user won't get a clue of the problem. |
aye @dxps, I leave it open but I consider it lower priority that other parts of the system that are currently just not working due the changes from MS from moving from angular to react. Thanks for reporting. If you want to work on this, do let us know and I can give you some pointers on where to look at. |
@IsmaelMartinez Yeah, absolutely, it's a low prio thing. Thanks! Sure, I may try to contribute, even though nowadays I'm a little bit obsessed and caught in the Rust space. |
I tried to implement it but am not really a big electron developer. |
Hi @woernsn , thanks a lot for contributing! I can see the approach you have taken and, in general, it should work, but you will need to not fix that config path or it will only work for you. Thanks again for the PR! |
With 1.4.38, if you don't have a config.json file at all, you see: $ [WARN] No config file found, using default values on the console, and then a "Configuration error" dialog box. That seems unexpected? Is one forced to have a config.json nowadays? If so, why doesn't the app create a minimal empty one for you automatically? |
Good catch! |
@palves, can you test 1.4.39 again when it is available? |
Sure thing. Thanks for fixing! |
It should be ready under https://github.com/IsmaelMartinez/teams-for-linux/releases/tag/v1.4.39 (pre-release as I like to keep the blast radius smaller). Thanks for testing it! |
Thanks for the URL. I just tried it (deb on Ubuntu 22.04), and it starts fine now, no dialog box. Thanks again. |
Is your feature request related to a problem? Please describe.
I just noticed an issue that should be quick to solve and improve the UX part by telling to the user what's the problem.
If by mistake you leave a comma at the end of the last key in the JSON config file, like this:
and you start the app, nothing visually appears: no systray icon, nor Gnome Dock symbol that tells if the app is started (as it's the case for others, see the white dots below the icons for the apps that are started/running).
But the app's processes are running:
Of course, removing that last comma and doing a
killall teams-for-linux
it makes all back to normal. The app starts and shows the main window.Describe the solution you'd like
I would expect to get an popup message with the root cause of the problem.
The text was updated successfully, but these errors were encountered: