shilangyu / scoop-search

Fast `scoop search` drop-in replacement 🚀
MIT License
289 stars 10 forks source link

Scoop-search --hook doesn't return anything #51

Closed longhoang0304 closed 9 months ago

longhoang0304 commented 9 months ago

Test environment

Description:

image

&scoop-search --hook return empty string and cannot work with Invoke-Expression

I've tried with scoop-search --hook but still had the same problem.

Expected output:

function scoop { if ($args[0] -eq "search") { scoop-search.exe @($args | Select-Object -Skip 1) } else { scoop.ps1 @args } }

I've tried to build it on my machine and it works as expected (zig v0.11). After investigation, it seems that the release binary has a bug in it. One instructor is mis-compiled and triggered the kernel exception on my machine.

My built binary: scoop-search.zip Virus total: https://www.virustotal.com/gui/file/ff01575f8ab0777c56e848d9ae8862ac90f98b90d3eab0433af1f600093464ef?nocache=1

shilangyu commented 9 months ago

Duplicate of #46. The conclusion is the same, some instruction is mis-compiled. Unfortunately I have absolutely no idea why that is happening and how to avoid it, any ideas?

longhoang0304 commented 9 months ago

any ideas?

So sorry I didn't go that far. But let me follow up with the other issue. Thank you.