stack 1.5.1 broken on 18.04 (AesonException)

Bug #1786197 reported by Janne Blomqvist
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
haskell-stack (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Installing the package "haskell-stack" and then trying to run the ghci interpreter results in

❯ stack ghci
Writing implicit global project config file to: /home/janne/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-12.5
Downloaded lts-12.5 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

Per https://github.com/commercialhaskell/stackage/issues/2759 and https://github.com/commercialhaskell/stack/issues/3345 this is apparently a bug in stack which has subsequently been fixed. Indeed downloading and installing the latest stack per the instructions at https://docs.haskellstack.org/en/stable/README/ works.

More info as requested in bug reporting guidelines:

1)

❯ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

2) haskell-stack version 1.5.1-1

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in haskell-stack (Ubuntu):
status: New → Confirmed
Revision history for this message
Ahmad Jagot (ahmadjagot) wrote :

Any update? This bug still exists.

Revision history for this message
Oliver Anteros (olian04) wrote :

Just ran into this issue. Are there any updates on this?

Revision history for this message
Tin Aung Win (tinaungwin) wrote :

Exact same problem in Ubuntu 18.04 - except it was for lts-13.2. No issues for Windows version though.
Look like the bug lives through the versions.

Revision history for this message
Camilla (kiwiremote) wrote :

Same problem. Ubuntu 18.04, LTS-13.16

Revision history for this message
WUTOU (anchroom) wrote :

Still have it, same problem too.

Revision history for this message
Alexandre Horst (alehorst) wrote :

I have the same problem with Ubuntu 18.04, lts-13.17. (Linux Subsystem on Windows 10).

Revision history for this message
mathiajusth (mathiajusth) wrote :

Had the same problem. This worked

1. uninstalling haskell-cabal with apt

2. installing it agains with curl

    curl -sSL https://get.haskellstack.org/ | sh

as it is recommended (https://docs.haskellstack.org/en/stable/README/#how-to-install)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.