hawk icon indicating copy to clipboard operation
hawk copied to clipboard

Get error after installing via stack

Open mmynsted opened this issue 8 years ago • 4 comments

Install

stack install haskell-awk

Use

01:28 $ hawk '"hello world"'
error: Won't compile:
        <no location info>:
    Could not find module ‘System.Console.Hawk.Runtime.Base’
    Use -v to see a list of the files searched for.

Does work directly from stack via

stack exec hawk '"hello world"'

Prefixing all calls to hawk with stack exec has not proved useful.

I am told the problem is because hawk is assuming that the executable is located in a position relative to its data files... And that is should do something like:

accessing-data-files-from-package-code

mmynsted avatar May 19 '16 06:05 mmynsted

I already added support for stack in #150, but my last comment in that thread seems to indicate that I've never released the fixed version. I'll do that now. Thanks for reporting the problem!

gelisam avatar May 19 '16 11:05 gelisam

Hmm, the tests don't pass on TravisCI and I don't understand why. They pass on my machine. It might take a little longer before I can release...

gelisam avatar May 22 '16 14:05 gelisam

I "fixed" the tests by disabling them in #173 (I'll re-enable them in #174). This means I can finally release 1.1.2!!

gelisam avatar Mar 08 '18 14:03 gelisam

Huh. I didn't release 1.1.2, then I worked on other things for a while, now I'm coming back to work on hawk, I upgraded to a more recent ghc, I'm ready to release a new version, and I'm like "who disabled the tests?? I can't release like this!". So I'm quite surprised to read in the comment above that I disabled the tests in order to make a release? What?

gelisam avatar Nov 26 '18 02:11 gelisam