Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

Update stack.yaml

Open daijingz opened this issue 7 months ago • 2 comments

Update stack.yaml to fix one compatible error. Errorenous Command: make dblpend_diff

Error message:

Error: [S-4804]
       Stack failed to construct a build plan.

       While constructing the build plan, Stack encountered the following
       errors:

       In the dependencies for MissingH-1.6.0.1:
           time must match >=1.4 && <1.15, but this GHC boot package has been
                pruned (issue #4510); you need to add the package explicitly to
                extra-deps (latest matching version is 1.14)
       needed due to dblpend-0.1.24.0 -> MissingH-1.6.0.1

       In the dependencies for aeson-2.1.2.1:
           time must match >=1.6.0.1 && <1.13, but this GHC boot package has
                been pruned (issue #4510); you need to add the package
                explicitly to extra-deps (latest matching version is 1.12.2)
       needed due to dblpend-0.1.24.0 -> aeson-2.1.2.1

       In the dependencies for directory-1.3.8.5:
           Win32 must match >=2.13.3 && <2.15, but this GHC boot package has
                 been pruned (issue #4510); you need to add the package
                 explicitly to extra-deps (latest matching version is 2.14.0.0)
           time must match >=1.8.0 && <1.15, but this GHC boot package has been
                pruned (issue #4510); you need to add the package explicitly to
                extra-deps (latest matching version is 1.14)
       needed due to dblpend-0.1.24.0 -> directory-1.3.8.5

       In the dependencies for drasil-gen-0.1.3.0:
           time needed, but this GHC boot package has been pruned (issue #4510);
                you need to add the package explicitly to extra-deps (latest
                matching version is 1.14)
       needed due to dblpend-0.1.24.0 -> drasil-gen-0.1.3.0

       In the dependencies for hslogger-1.3.1.1:
           time must match >=1.2 && <1.15, but this GHC boot package has been
                pruned (issue #4510); you need to add the package explicitly to
                extra-deps (latest matching version is 1.14)
       needed due to dblpend-0.1.24.0 -> hslogger-1.3.1.1

       In the dependencies for process-1.6.20.0:
           Win32 must match >=2.4 && <2.15, but this GHC boot package has been
                 pruned (issue #4510); you need to add the package explicitly to
                 extra-deps (latest matching version is 2.14.0.0)
       needed due to dblpend-0.1.24.0 -> process-1.6.20.0

       In the dependencies for time-compat-1.9.6.1:
           time must
                match >=1.5 && <1.7 || >=1.8 && <1.9 || >=1.9.2 && <1.9.4 || >=1.10 && <1.10.1 || >=1.11 && <1.11.2 || >=1.12 && <1.13,
                but this GHC boot package has been pruned (issue #4510); you
                need to add the package explicitly to extra-deps (latest
                matching version is 1.12.2)
       needed due to dblpend-0.1.24.0 -> time-compat-1.9.6.1
make: *** [Makefile:305: dblpend_gen] Error 1

This error leads to unsuccessful make compiling.

Previous Fixing Attempts:

  1. Use the stack clean command, then re-make.

My final solution is adding two dependency lines inside the "stack.yaml" file.

@JacquesCarette This problem occurs after updating the stack version, and it is serious.

daijingz avatar Aug 01 '24 04:08 daijingz