Skip to content
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

hub help <cmd> (man page help) always fails on Windows #2677

Open
j30ng opened this issue Dec 20, 2020 · 2 comments
Open

hub help <cmd> (man page help) always fails on Windows #2677

j30ng opened this issue Dec 20, 2020 · 2 comments
Labels

Comments

@j30ng
Copy link

j30ng commented Dec 20, 2020

Command attempted:
hub help browse, hub help api etc.

What happened:
The following is printed.

exec: "less": executable file not found in %PATH%

More info:
Hi there, came across a little inconvenience while using hub on Windows. It's probably because less does not come built-in on Windows. Can I submit a PR addressing this issue? I think the fix should be as simple as to check GOOS to determine the default pager.

@j30ng j30ng added the bug label Dec 20, 2020
@mislav
Copy link
Owner

mislav commented Dec 22, 2020

@j30ng Thanks for reporting and offering to fix! Funny enough, on the same day that you noticed this, I also noticed it while testing on Windows and I already have a fix in a branch. It will be there in the next release. 🤘

@AdrianoCahete
Copy link

AdrianoCahete commented Jul 4, 2021

Edit: For anyone who finds this issue from search:

  • Download this tool: https://github.com/jftuga/less-Windows
  • Move the "less.exe" to any folder on your pc that has default access
  • Go to the Start menu and search for "Environ", the "Edit Environment Variables" should appear
  • Click on the bottom right "Environment Variables" button, go to the section "System Variables" and search for the Path entry. Do a double click in that entry
  • Add the path to the folder that has the less executable at the end of this list. Click Ok on any of the opened screens.

if you have an opened VSCode/command line, close and reopen to try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants