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

Missleading error message when there is no binary on the path. #305

Open
popara opened this issue Jul 14, 2024 · 1 comment
Open

Missleading error message when there is no binary on the path. #305

popara opened this issue Jul 14, 2024 · 1 comment
Labels
linear Created by Linear-GitHub Sync

Comments

@popara
Copy link

popara commented Jul 14, 2024

What happened?

It seems that when running a non-existant command gives out wrong error message.

I am using stackage based repo, and I didn't had hpack installed. But error message gave wrong clue

What did you expect to happen?

To tell me that I am missing hpack.

Steps to reproduce the issue

Make sure you DONT have hpack in you PATH.

❯ ghciw  --before-startup-shell hpack 
• Running before-startup command command=hpack
• $ hpack
Error:   × Tasks failed:
  │ • run_ghci: Failed to start `ghci`

make: *** [gwdev] Error 1

~/projects/zoo trunk*
❯ ghci
GHCi, version 9.2.8: https://www.haskell.org/ghc/  :? for help
^[[ALoaded GHCi configuration from /Users/popara/projects/zoo/.ghci
GHCI >> 1 + 2
3

The version of ghciwatch with the bug

ghciwatch 1.0.0

@github-actions github-actions bot added the linear Created by Linear-GitHub Sync label Jul 14, 2024
@popara popara changed the title Wrong error message Missleading error message when there is no binary on the path. Jul 14, 2024
@9999years
Copy link
Member

Yeah that's pretty bad, I'll have to look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants