kquick / mywork

Tool to keep track of what you have been working on, and where and when work should continue
ISC License
6 stars 1 forks source link

No cabal file found. Please create a package description file <pkgname>.cabal #6

Open Shrilboss opened 11 months ago

Shrilboss commented 11 months ago

I am getting the following error message when I use cabal run in WSL 2.0 in Windows.-


cabal run mywork
Build profile: -w ghc-9.2.8 -O1
In order, the following will be built (use -v for more details):
 - QuickCheck-2.14.3 (lib) (requires build)
 - ansi-terminal-1.0 (lib) (requires build)
 - case-insensitive-1.2.1.0 (lib) (requires build)
 - data-fix-0.3.2 (lib) (requires build)
 - indexed-traversable-0.1.3 (lib) (requires build)
 - scientific-0.3.7.0 (lib) (requires build)
 - temporary-1.3 (lib) (requires build)
 - text-short-0.1.5 (lib) (requires build)
 - text-zipper-0.12 (lib) (requires build)
 - these-1.2 (lib) (requires build)
 - time-compat-1.9.6.1 (lib) (requires build)
 - unordered-containers-0.2.19.1 (lib) (requires build)
 - uuid-types-1.0.5.1 (lib) (requires build)
 - vty-5.37 (lib) (requires build)
 - comonad-5.0.8 (lib) (requires build)
 - megaparsec-9.6.1 (lib) (requires build)
 - attoparsec-0.14.4 (lib) (requires build)
 - strict-0.5 (lib) (requires build)
 - indexed-traversable-instances-0.1.1.2 (lib) (requires build)
 - bifunctors-5.6.1 (lib) (requires build)
 - config-ini-0.2.7.0 (lib) (requires build)
 - ini-0.4.2 (lib) (requires build)
 - witherable-0.4.2 (lib) (requires build)
 - semigroupoids-6.0.0.1 (lib) (requires build)
 - profunctors-5.6.2 (lib) (requires build)
 - brick-1.4 (lib) (requires build)
 - semialign-1.3 (lib) (requires build)
 - invariant-0.6.2 (lib) (requires build)
 - free-5.2 (lib) (requires build)
 - brick-panes-1.0.0.4 (lib) (requires build)
 - aeson-2.1.2.1 (lib) (requires build)
 - adjunctions-4.4.2 (lib) (requires build)
 - path-0.9.5 (lib) (requires build)
 - kan-extensions-5.2.5 (lib) (requires build)
 - path-io-1.7.0 (lib) (requires build)
 - lens-5.2.3 (lib) (requires build)
 - mywork-1.0.1.0 (lib) (first run)
 - mywork-1.0.1.0 (exe:mywork) (first run)
Starting     data-fix-0.3.2 (lib)
Starting     temporary-1.3 (lib)
Starting     uuid-types-1.0.5.1 (lib)
Starting     text-short-0.1.5 (lib)
Starting     case-insensitive-1.2.1.0 (lib)
Starting     these-1.2 (lib)
Starting     indexed-traversable-0.1.3 (lib)
Starting     scientific-0.3.7.0 (lib)
Starting     text-zipper-0.12 (lib)
Starting     ansi-terminal-1.0 (lib)
Starting     unordered-containers-0.2.19.1 (lib)
Starting     QuickCheck-2.14.3 (lib)
Building     data-fix-0.3.2 (lib)
Building     text-short-0.1.5 (lib)
Building     temporary-1.3 (lib)
Building     uuid-types-1.0.5.1 (lib)
Building     case-insensitive-1.2.1.0 (lib)
Building     these-1.2 (lib)
Building     indexed-traversable-0.1.3 (lib)
Building     scientific-0.3.7.0 (lib)
Building     QuickCheck-2.14.3 (lib)
Building     text-zipper-0.12 (lib)
Building     unordered-containers-0.2.19.1 (lib)
Starting     time-compat-1.9.6.1 (lib)
Installing   temporary-1.3 (lib)
Installing   data-fix-0.3.2 (lib)
Completed    temporary-1.3 (lib)
Building     time-compat-1.9.6.1 (lib)
Completed    data-fix-0.3.2 (lib)
Installing   case-insensitive-1.2.1.0 (lib)
Completed    case-insensitive-1.2.1.0 (lib)
Installing   uuid-types-1.0.5.1 (lib)
Installing   text-zipper-0.12 (lib)
Completed    uuid-types-1.0.5.1 (lib)
Completed    text-zipper-0.12 (lib)
Installing   these-1.2 (lib)
Completed    these-1.2 (lib)
Installing   text-short-0.1.5 (lib)
Completed    text-short-0.1.5 (lib)
Installing   indexed-traversable-0.1.3 (lib)
Installing   scientific-0.3.7.0 (lib)
Completed    indexed-traversable-0.1.3 (lib)
Completed    scientific-0.3.7.0 (lib)
Installing   time-compat-1.9.6.1 (lib)
Completed    time-compat-1.9.6.1 (lib)
Installing   unordered-containers-0.2.19.1 (lib)
Completed    unordered-containers-0.2.19.1 (lib)
Installing   QuickCheck-2.14.3 (lib)
Completed    QuickCheck-2.14.3 (lib)

Failed to build ansi-terminal-1.0. The failure occurred during the configure
step.
Build log (
/home/shrilmody/.cabal/logs/ghc-9.2.8/ansi-terminal-1.0-bb7f014fe3b78abd6e6656d04a2e49f83c757b62f5c9944fa963428815ef0ed1.log
):
cabal-3.6.2.0-p1: No cabal file found.
Please create a package description file <pkgname>.cabal

cabal: Failed to build ansi-terminal-1.0 (which is required by exe:mywork from
mywork-1.0.1.0). See the build log above for details.```
kquick commented 11 months ago

It is likely that the environment is still being identified as Windows despite your being in a WSL environment: there is no ansi-terminal package for Windows.

However, I've just pushed a couple of updates that allow the use of newer versions (> 2.0) of the brick dependency, which may support native Windows (and MacOS) configurations. I don't have a Windows system to try this on, but you may wish to pull the latest from this repo and try a $ cabal update; cabal run.