-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[PT Run] Calculator logs exception on some invalid queries #17320
Comments
@jaimecbernardo |
Sounds good 👍 Thank you |
Log and the settings file: PowerToys version: 0.56.2 If only action char is entered and search term is empty:
If input is invalid and converted to an string error message in
Happens on invalid expressions:
If query is
Happens if result is to large for the decimal type:
|
@jaimecbernardo
|
Nice to have. Doesn't impact the user much, but would help in debugging in the future. |
Perhaps an actual error result when Calculator is called with keyword would be nice as well. |
Should this show the error message from exception in subtitle? |
Released with v0.59.0 |
https://github.com/microsoft/PowerToys/blob/main/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Main.cs#L31-L34
This code above causes exceptions in the log file that say
=
or<query>
is not a valid operation that can be parsed.We should simply return
List<Result>(0)
if query is empty, null, whitespace, equals the action key or equals=
.The text was updated successfully, but these errors were encountered: