oliverschwendener / ueli

Cross-Platform Keystroke Launcher
https://ueli.app
MIT License
3.48k stars 229 forks source link

[Bug] Application Search does not work #1124

Open NetBender opened 2 weeks ago

NetBender commented 2 weeks ago

Application Search does not work. I've upgraded from v8.29.0 (where it worked) to v9 but now it does not find any program. Downgrading to v8.29.0 makes it work again.

To Reproduce Steps to reproduce the behavior:

  1. Have the Application Search extension enabled
  2. Show Ueli
  3. Type the name of an installed program
  4. See nothing listed

Expected behavior To have a list of matching shortcuts found in the set folders

Environment

zouhair commented 1 week ago

Back to keypirinha for me, too much hassle, I'll go back to it when it's really stable

oliverschwendener commented 1 week ago

Can you open the Settings and go to the "Debug" tab to see if there are any logs that might be helpful? If so, can you share the logs?

Note that the settings from v8 are not compatible with v9. This means, if you have custom settings in v8, you need to apply them manually in v9.

Ripwords commented 1 week ago

@oliverschwendener I have the same issue, the "Debug" is complaining about one of my programs installed, something about icons i think. For context, I've been using ueli for years before v9 with the following program installed without issue.

[6/24/2024, 10:13:51 PM][ERROR] Failed to get search result items for extension with id 'ApplicationSearch.Reason: Exception calling "ExtractAssociatedIcon" with "1" argument(s): "C:\ProgramData\Microsoft\Windows\Start 
Menu\Programs\N.I.N.A. - Nighttime Imaging "
At C:\Users\teohj\AppData\Roaming\ueli\PowershellUtility\1b66a04e-4342-4913-a5fa-eb5287bbb60e.ps1:34 char:5
+     $Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($InFilePath)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileNotFoundException

'

For reference, here's the link to that application

sacp commented 1 week ago

Thanks for the tips. I had encountered the issue and went back to 8.9 while following this topic.

I have unsintalled 8.9 and installed again 9.0. Going to the debug as suggested, I have several complaints, mostly about the "-bit" in 32-bit and 64-bit in the path or name.

[24/06/2024, 18:40:45][ERROR] Failed to get search result items for extension with id 'ApplicationSearch.Reason: Error: Command failed: powershell -NoProfile -NonInteractive -ExecutionPolicy bypass -File "C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1"
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:67 char:129
+ ...  Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk' - ...
+                                                              ~~~~
Unexpected token '-bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:68 char:129
+ ...  Menu\Programs\Administrative Tools\ODBC Data Sources (64-bit).lnk' - ...
+                                                              ~~~~
Unexpected token '-bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:95 char:120
+ ... ows\Start Menu\Programs\CorelDRAW Graphics Suite 2020 (64-bit)\Corel  ...
+                                                              ~~~~
Unexpected token '-bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:95 char:148
+ ... lDRAW Graphics Suite 2020 (64-bit)\Corel CAPTURE 2020 (64-Bit).lnk' - ...
+                                                              ~~~~
Unexpected token '-Bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:96 char:120
+ ... ows\Start Menu\Programs\CorelDRAW Graphics Suite 2020 (64-bit)\Corel  ...
+                                                              ~~~~
Unexpected token '-bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:96 char:153
+ ...  Graphics Suite 2020 (64-bit)\Corel Font Manager 2020 (64-Bit).lnk' - ...
+                                                              ~~~~
Unexpected token '-Bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:97 char:120
+ ... ows\Start Menu\Programs\CorelDRAW Graphics Suite 2020 (64-bit)\Corel  ...
+                                                              ~~~~
Unexpected token '-bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:97 char:152
+ ... W Graphics Suite 2020 (64-bit)\Corel PHOTO-PAINT 2020 (64-Bit).lnk' - ...
+                                                              ~~~~
Unexpected token '-Bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:98 char:120
+ ... ows\Start Menu\Programs\CorelDRAW Graphics Suite 2020 (64-bit)\CorelD ...
+                                                              ~~~~
Unexpected token '-bit' in expression or statement.
At C:\Users\Sergio\AppData\Roaming\ueli\PowershellUtility\38ce89f6-2930-4558-aea5-b504249ef409.ps1:98 char:144
+ ... CorelDRAW Graphics Suite 2020 (64-bit)\CorelDRAW 2020 (64-Bit).lnk' - ...
+                                                              ~~~~
Unexpected token '-Bit' in expression or statement.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

PS: I'm having trouble to paste the debug notes without git reformatiing/breaking all of it. So, I only have the first entry, but most are similar. I also had to escape the "+" of the debug log to avoid it being converted to bullet points

NetBender commented 1 week ago

Can you open the Settings and go to the "Debug" tab to see if there are any logs that might be helpful? If so, can you share the logs?

Here it is

[24/6/2024, 21:39:53][ERROR] Failed to get search result items for extension with id 'ApplicationSearch.Reason: Error: Command failed: powershell -NoProfile -NonInteractive -ExecutionPolicy bypass -File "C:\Users\salva\AppData\Roaming\ueli\PowershellUtility\a2df354d-a688-4431-b40c-b570b31fa6d6.ps1"
In C:\Users\salva\AppData\Roaming\ueli\PowershellUtility\a2df354d-a688-4431-b40
c-b570b31fa6d6.ps1:176 car:136
+ ... indows\Start Menu\Programs\JDownloader\JDownloader 2 Update & Rescue. ...
+                                                                 ~
E commerciale (&) non consentita. L'operatore & � riservato per utilizzi 
futuri. Utilizzare "&" per passare la e commerciale come stringa.
In C:\Users\salva\AppData\Roaming\ueli\PowershellUtility\a2df354d-a688-4431-b40
c-b570b31fa6d6.ps1:213 car:234
+ ... FileImageImageGenerator\ecc5b54908db840dea14cb0aa03dca73b0563daa.png'
+                                                                         ~
Carattere di terminazione mancante nella stringa: '.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordEx 
   ception
    + FullyQualifiedErrorId : AmpersandNotAllowed

'