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

hh shorthand opens HTML help on windows #5040

Open
kanej opened this issue Mar 27, 2024 · 1 comment
Open

hh shorthand opens HTML help on windows #5040

kanej opened this issue Mar 27, 2024 · 1 comment
Labels
status:ready This issue is ready to be worked on

Comments

@kanej
Copy link
Member

kanej commented Mar 27, 2024

If you use the hh shorthand cli tool on Windows, it opens the HTML help app:

image

Initially raised in this discussion: #4971

Reproduction steps

  1. Install the hh shorthand based on the setup instructions of the Hardhat guide: npm install --global hardhat-shorthand
  2. In a Hardhat project run hh compile or hh test
  3. The HTML Help app will be inexplicable opened
@github-actions github-actions bot added the status:ready This issue is ready to be worked on label Mar 27, 2024
@jwbda
Copy link
Contributor

jwbda commented Mar 28, 2024

Hi, this is not really a bug.
The reason why you type hh some strange web come up, is that hh in windows is point to C:\Windows\hh.exe .
C:\Windows\hh.exe is the executable file for the helper program (HTML Helper) in Windows. When you open a Help file (usually a file ending with a .chm extension) on Windows, hh.exe is used to open and display the Help content.

So it is conflict with hh of hardhat-shorthand.

How to solve this

  1. Install hardhat hh through npm install --global hardhat-shorthand, and find it with npm list -g --depth 0 .
  2. And change the name hh/hh.cmd to ht/ht.cmd(any name you like), or change the hh.exe of windows to other name.
  3. Use the name [ht/ht.cmd with step 2 ].

Hope this answer will help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
Status: Backlog
Development

No branches or pull requests

2 participants