Open CombeeMike opened 3 years ago
Thank you for reporting that! Could you please send us a bug report?
How to generate the report: 1. Right-click on the PowerToys icon in the tray menu and select Report Bug. 2. The report is saved as .zip file on your desktop. Please drag and drop the report into a GitHub comment.
@htcfreek
Sure, here's the bug report: PowerToysReport_2021-09-20-13-13-00.zip
@CombeeMike Can you please try if it helps to disable calculator plugin. I found two types of exceptions and one is from calculator plugin.
[2021-09-20 12:50:11.8309] [ERROR] [S:\src\modules\launcher\Plugins\Microsoft.PowerToys.Run.Plugin.Calculator\Main.cs::63]
-------------------------- Begin exception --------------------------
Message: Exception when query for <{query}>
Exception full name : Mages.Core.ParseException
Exception message : The given source code contains errors.
Exception stack trace:
at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.IValidationContext.Report(ParseError error)
at Mages.Core.Ast.Expressions.InvalidExpression.Validate(IValidationContext context)
at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(InvalidExpression expression)
at Mages.Core.Ast.Expressions.InvalidExpression.Accept(ITreeWalker visitor)
at Mages.Core.Ast.Walkers.OperationTreeWalker.Handle(BinaryExpression expression, Function function)
at Mages.Core.Ast.Walkers.OperationTreeWalker.<>c.<.cctor>b__57_20(OperationTreeWalker walker, BinaryExpression expr)
at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(BinaryExpression expression)
at Mages.Core.Ast.Expressions.BinaryExpression.Accept(ITreeWalker visitor)
at Mages.Core.Ast.Walkers.OperationTreeWalker.Handle(BinaryExpression expression, Function function)
at Mages.Core.Ast.Walkers.OperationTreeWalker.<>c.<.cctor>b__57_21(OperationTreeWalker walker, BinaryExpression expr)
at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(BinaryExpression expression)
at Mages.Core.Ast.Expressions.BinaryExpression.Accept(ITreeWalker visitor)
at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(SimpleStatement statement)
at Mages.Core.Ast.Statements.SimpleStatement.Accept(ITreeWalker visitor)
at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(BlockStatement block)
at Mages.Core.Ast.Statements.BlockStatement.Accept(ITreeWalker visitor)
at Mages.Core.Ast.StatementExtensions.MakeRunnable(IEnumerable`1 statements)
at Mages.Core.Engine.Interpret(String source)
at Microsoft.PowerToys.Run.Plugin.Calculator.CalculateEngine.Interpret(String input, CultureInfo cultureInfo)
at Microsoft.PowerToys.Run.Plugin.Calculator.Main.Query(Query query)
Exception source : Mages.Core
Exception target site: Void Mages.Core.Ast.IValidationContext.Report(Mages.Core.ParseError)
Exception HResult : -2146233088
-------------------------- End exception --------------------------
(The other type is because the config of various built-in apps are not found. I think you have removed them.)
@htcfreek Sure, just disabled the calc plugin & tested -> Same behavior
@CombeeMike Can you please try if it helps to disable calculator plugin. I found two types of exceptions and one is from calculator plugin.
[2021-09-20 12:50:11.8309] [ERROR] [S:\src\modules\launcher\Plugins\Microsoft.PowerToys.Run.Plugin.Calculator\Main.cs::63] -------------------------- Begin exception -------------------------- Message: Exception when query for <{query}> Exception full name : Mages.Core.ParseException Exception message : The given source code contains errors. Exception stack trace: at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.IValidationContext.Report(ParseError error) at Mages.Core.Ast.Expressions.InvalidExpression.Validate(IValidationContext context) at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(InvalidExpression expression) at Mages.Core.Ast.Expressions.InvalidExpression.Accept(ITreeWalker visitor) at Mages.Core.Ast.Walkers.OperationTreeWalker.Handle(BinaryExpression expression, Function function) at Mages.Core.Ast.Walkers.OperationTreeWalker.<>c.<.cctor>b__57_20(OperationTreeWalker walker, BinaryExpression expr) at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(BinaryExpression expression) at Mages.Core.Ast.Expressions.BinaryExpression.Accept(ITreeWalker visitor) at Mages.Core.Ast.Walkers.OperationTreeWalker.Handle(BinaryExpression expression, Function function) at Mages.Core.Ast.Walkers.OperationTreeWalker.<>c.<.cctor>b__57_21(OperationTreeWalker walker, BinaryExpression expr) at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(BinaryExpression expression) at Mages.Core.Ast.Expressions.BinaryExpression.Accept(ITreeWalker visitor) at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(SimpleStatement statement) at Mages.Core.Ast.Statements.SimpleStatement.Accept(ITreeWalker visitor) at Mages.Core.Ast.Walkers.OperationTreeWalker.Mages.Core.Ast.ITreeWalker.Visit(BlockStatement block) at Mages.Core.Ast.Statements.BlockStatement.Accept(ITreeWalker visitor) at Mages.Core.Ast.StatementExtensions.MakeRunnable(IEnumerable`1 statements) at Mages.Core.Engine.Interpret(String source) at Microsoft.PowerToys.Run.Plugin.Calculator.CalculateEngine.Interpret(String input, CultureInfo cultureInfo) at Microsoft.PowerToys.Run.Plugin.Calculator.Main.Query(Query query) Exception source : Mages.Core Exception target site: Void Mages.Core.Ast.IValidationContext.Report(Mages.Core.ParseError) Exception HResult : -2146233088 -------------------------- End exception --------------------------
(The other type is because the config of various built-in apps are not found. I think you have removed them.)
@jaimecbernardo
{query}
) in logged exception?@htcfreek, I believe this is because of the addition of calculator in global results in the settings. The calculator engine throws an exception so we catch and log it, but I assume it's an expected exception in this case. I don't think issues are needed for these, we're mostly just logging everything.
The same behavior in my environment. It seems that the results from the Windows Search plugin are not highlighted. Can see this by searching with direct activation command ?
.
This is an interesting bug. I can't reproduce either the inconsistent highlighting or incorrect selection highlighting from a normal search. How often does it occur for you @CombeeMike?
Using the ?
activation phrase, no highlighting occurs at all on my device. The other activation phrases seem to work though.
This is an interesting bug. I can't reproduce either the inconsistent highlighting or incorrect selection highlighting from a normal search. How often does it occur for you @CombeeMike?
@dedavis6797 This happens when the first result is the output from the Windows Search plugin and the second result is something else.
This is an interesting bug. I can't reproduce either the inconsistent highlighting or incorrect selection highlighting from a normal search. How often does it occur for you @CombeeMike?
Using the
?
activation phrase, no highlighting occurs at all on my device. The other activation phrases seem to work though.
@dedavis6797
Not sure how to properly quantify this but both issues (missing & incorrect highlighting) happen on a very regular basis for me. I think @yuru7 is right in assuming that this only happens for search plugin results so I'd guess the following (only a wild guess):
I am also experiencing this exact bug, and the above summaries appear to be consistent with my observations (the first result must be from the search plugin to observe the issue).
I've attached a bug report zip of my own in case it helps to diff the two: PowerToysReport_2022-01-11-11-33-33.zip
This is what I see, which looks like the same behavior as OP's second screen recording (pressing enter will open the search result, not the URL):
I'm still having this problem which is really annoying in combination with stuff like this TBH.
However, I think this is now easier to reproduce with the "Global sort order score modifier":
Global sort order score modifier
of Windows Search
plugin to some very large number.
E.g. 200
did the trick for me.Windows Search
& Program
Windows Search
plugin is shown first in list ✅, but the first one from Program
is actually selected 🔥FYI, like I also stated in #12856 multiple times:
I literally never started the Groove Music
app from PT run, whilst I run Show Music Tab.exe
on an almost daily basis which makes it really annoying that the Groove Music
app is always selected first when searching for music
...
Is this still an issue with the latest version? /needinfo
@Jay-o-Way Yes, this is still happening to me but slightly different:
https://github.com/microsoft/PowerToys/assets/30658772/9a1f3292-ca89-445d-8791-82acd27cb04f
Windows Search
plugin.
I haven't opened Postman
in more than a year, whilst I open FinanceControl
almost daily -> FinanceControl
should be initially selectedPostman
in this screencast).Pinging @htcfreek
Microsoft PowerToys version
0.45.0
Running as admin
Area(s) with issue?
PowerToys Run
Steps to reproduce
Inconsistent selection highlighting
I have no 1:1 reproduction steps as this behavior is most probably highly dependant on the indexed files & search history but I can explain what happens:
When typing something, most of the time the first entry in the result list is highlighted so that I know at one glance that this will be executed when pressing enter without moving the selection at all. However, sometimes nothing is selected:
https://user-images.githubusercontent.com/30658772/133963383-e5a3e183-4d5f-49c3-bc5f-c484bde6f236.mp4
As you can see in this video:
fire
, the first entry is selected.finan
, the first entry is not selected as expected. However, when pressing enter in this state, the first entry is still executed.Incorrect selection highlighting
Sometimes it even happens, that the wrong entry is selected:
https://user-images.githubusercontent.com/30658772/133963867-6998278a-16f0-4169-8233-890e6181d366.mp4
Here, I only typed
fin
and did not move the selection, however, it is still the second entry which is highlighted. What is even more confusing then: When I press enter in the shown state, the first entryFinanceControl
gets executed, not the highlighted one 🤷♂️✔️ Expected Behavior
enter
❌ Actual Behavior
Other Software
No response