freckle / bcp47

BCP-47 for Haskell
https://freckle.github.io/bcp47/
2 stars 1 forks source link

Fixes and updates for use in our Languages API #10

Closed pbrisbin closed 4 years ago

pbrisbin commented 4 years ago
pbrisbin commented 4 years ago

Really not sure what's up on CI:

Progress 1/2: bcp47                   bcp47        > 
Progress 1/2: bcp47                   bcp47        > library/Data/BCP47/Internal/Parser.hs:9:1: error:
Progress 1/2: bcp47                   bcp47        >     Could not load module ‘Text.Megaparsec’
Progress 1/2: bcp47                   bcp47        >     It is a member of the hidden package ‘megaparsec-7.0.5’.
Progress 1/2: bcp47                   bcp47        >     You can run ‘:set -package megaparsec’ to expose it.
Progress 1/2: bcp47                   bcp47        >     (Note: this unloads all the modules in the current scope.)
Progress 1/2: bcp47                   bcp47        >     Use -v to see a list of the files searched for.
Progress 1/2: bcp47                   bcp47        >   |
Progress 1/2: bcp47                   bcp47        > 9 | import Text.Megaparsec (Parsec, eof, lookAhead)
Progress 1/2: bcp47                   bcp47        >   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Progress 1/2: bcp47                   bcp47        > 
Progress 1/2: bcp47                   bcp47        > library/Data/BCP47/Internal/Parser.hs:10:1: error:
Progress 1/2: bcp47                   bcp47        >     Could not load module ‘Text.Megaparsec.Char’
Progress 1/2: bcp47                   bcp47        >     It is a member of the hidden package ‘megaparsec-7.0.5’.
Progress 1/2: bcp47                   bcp47        >     You can run ‘:set -package megaparsec’ to expose it.
Progress 1/2: bcp47                   bcp47        >     (Note: this unloads all the modules in the current scope.)
Progress 1/2: bcp47                   bcp47        >     Use -v to see a list of the files searched for.
Progress 1/2: bcp47                   bcp47        >    |
Progress 1/2: bcp47                   bcp47        > 10 | import Text.Megaparsec.Char (char)
Progress 1/2: bcp47                   bcp47        >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Progress 1/2: bcp47                   bcp47        > Test suite doctest failed

I can't reproduce it locally.

eborden commented 4 years ago

Old cache?

pbrisbin commented 4 years ago

I can try busting it, but it doesn't appear to be that (everything seems to build that I'd expect to build). So I'm afraid if busting it works I might've just papered over something that'll bite someone else later.

pbrisbin commented 4 years ago

It seems to be this bug: https://github.com/commercialhaskell/stack/issues/5159 "Doctests in multi-package project interfering with each other"

I can repro locally (only) with:

stack build -j1 bcp47:doctest bcp47-orphans --stack-yaml "stack.yaml" --no-terminal  --pedantic --test                                       

EDIT: This still doesn't reproduce reliably. Locally it almost always works, and on CI it almost always fails.

pbrisbin commented 4 years ago

OK, building the packages independently seems to work around the shared-environment bug. I've cleaned up history (wiping out other failed workarounds), and will merge on Green.