Windows Powershell error: `exec: "less": executable file not found in %PATH%`
Created by: Eibwen
Following https://docs.sourcegraph.com/cli/explanations/windows
along with https://docs.sourcegraph.com/cli/quickstart#run-a-code-search
For every search I try to do, I get the error
Here is a log of my console:
PS> src login
✔️ Authenticated as {my user} on https://{server address}
PS> src version
Current version: 3.28.3
Recommended version: 3.28.3 or later
PS> src search 'name'
exec: "less": executable file not found in %PATH%
PS> src search 'super specific thing'
exec: "less": executable file not found in %PATH%
PS> src search 'lang:c#'
exec: "less": executable file not found in %PATH%
It appears that tool doesn't exist on my system, and I'm not seeing any guidance about how to get that installed in your docs. Including that in the docs might be worthwhile
Attempted solution
Find-Package pscx | Install-Package -AllowClobber
after modifying the command from https://stackoverflow.com/a/1080103/356218
This did not seem to work well. There was no error, but the display doesn't seem to show results as I was expecting, it is only a black screen until I type q
or otherwise exit less