Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer compiles on stackage - guess some dependency update broke it. #100

Closed
alaendle opened this issue Nov 3, 2024 · 1 comment · Fixed by commercialhaskell/stackage#7564

Comments

@alaendle
Copy link

alaendle commented Nov 3, 2024

       While building package sandwich-webdriver-0.2.3.1 (scroll up to its section to see the error)
       using:
       /home/curators/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_HwdwpEmb_3.10.3.0_ghc-9.8.3 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/ghc-9.8.3 build lib:sandwich-webdriver exe:sandwich-webdriver-exe --ghc-options ""
       Process exited with code: ExitFailure 1
       Logs have been written
       to: /home/curators/work/unpack-dir/.stack-work/logs/sandwich-webdriver-0.2.3.1.log

       Preprocessing library for sandwich-webdriver-0.2.3.1..
       Building library for sandwich-webdriver-0.2.3.1..                                                                                                                                                                [ 4 of 20] Compiling Test.Sandwich.WebDriver.Internal.StartWebDriver.Xvfb

       /home/curators/work/unpack-dir/unpacked/sandwich-webdriver-0.2.3.1-5666fe08b9cfdd86ed6cbda2ad660c1f9a02c7453aa78f3714bb1507c9f049f1/unix-src/Test/Sandwich/WebDriver/Internal/StartWebDriver/Xvfb.hs:89:8: error: [GHC-39999]
           • Could not deduce ‘unliftio-core-0.2.1.0:Control.Monad.IO.Unlift.MonadUnliftIO
                                 m’
               arising from a use of ‘createProcessWithLogging’
             from the context: Constraints m
               bound by the type signature for:
                          createXvfbSession :: forall (m :: * -> *).
                                               Constraints m =>
                                               FilePath
                                               -> Int -> Int -> Fd -> m (Int, ProcessHandle, FilePath)
               at unix-src/Test/Sandwich/WebDriver/Internal/StartWebDriver/Xvfb.hs:83:1-102
             Possible fix:
               add (unliftio-core-0.2.1.0:Control.Monad.IO.Unlift.MonadUnliftIO
                      m) to the context of
                 the type signature for:
                   createXvfbSession :: forall (m :: * -> *).
                                        Constraints m =>
                                        FilePath -> Int -> Int -> Fd -> m (Int, ProcessHandle, FilePath)
           • In the first argument of ‘($)’, namely ‘createProcessWithLogging’
             In a stmt of a 'do' block:
               p <- createProcessWithLogging
                      $ (proc "Xvfb" [":" <> show serverNum, "-screen", "0", ....])
                          {cwd = Just webdriverRoot, create_group = True}
             In the expression:
               do serverNum <- liftIO findFreeServerNum
                  authFile <- liftIO $ writeTempFile webdriverRoot ".Xauthority" ""
                  p <- createProcessWithLogging
                         $ (proc "Xvfb" [":" <> show serverNum, ....])
                             {cwd = Just webdriverRoot, create_group = True}
                  return (serverNum, p, authFile)
          |     
       89 |   p <- createProcessWithLogging $ (proc "Xvfb" [":" <> show serverNum
          |        ^^^^^^^^^^^^^^^^^^^^^^^^
       [11 of 20] Compiling Test.Sandwich.WebDriver.Internal.Binaries
                                                                                                                                                                                                                        /home/curators/work/unpack-dir/unpacked/sandwich-webdriver-0.2.3.1-5666fe08b9cfdd86ed6cbda2ad660c1f9a02c7453aa78f3714bb1507c9f049f1/src/Test/Sandwich/WebDriver/Internal/Binaries.hs:170:5: error: [GHC-39999]
           • Could not deduce ‘unliftio-core-0.2.1.0:Control.Monad.IO.Unlift.MonadUnliftIO                                                                                                                                                        m’
               arising from a use of ‘createProcessWithLogging’                                                                                                                                                               from the context: (MonadIO m, MonadBaseControl IO m, MonadLogger m,
                                MonadMask m)
               bound by the type signature for:
                          downloadAndUnzipToPath :: forall (m :: * -> *).
                                                    (MonadIO m, MonadBaseControl IO m, MonadLogger m,
                                                     MonadMask m) =>
                                                    T.Text -> FilePath -> m (Either T.Text ())
               at src/Test/Sandwich/WebDriver/Internal/Binaries.hs:163:1-134                                                                                                                                                  Possible fix:
               add (unliftio-core-0.2.1.0:Control.Monad.IO.Unlift.MonadUnliftIO
                      m) to the context of
                 the type signature for:
                   downloadAndUnzipToPath :: forall (m :: * -> *).
                                             (MonadIO m, MonadBaseControl IO m, MonadLogger m,
                                              MonadMask m) =>
                                             T.Text -> FilePath -> m (Either T.Text ())
           • In the first argument of ‘(>>=)’, namely
               ‘createProcessWithLogging
                  ((proc "unzip" ["temp.zip", "-d", "unzipped"]) {cwd = Just dir})’
             In the first argument of ‘(>>=)’, namely
               ‘createProcessWithLogging
                  ((proc "unzip" ["temp.zip", "-d", "unzipped"]) {cwd = Just dir})
                  >>= liftIO . waitForProcess’
             In a stmt of a 'do' block:
               createProcessWithLogging
                 ((proc "unzip" ["temp.zip", "-d", "unzipped"]) {cwd = Just dir})
                 >>= liftIO . waitForProcess
                 >>= (`shouldBe` ExitSuccess)
           |
       170 |     createProcessWithLogging ((proc "unzip" ["temp.zip", "-d", "unzipped"]) { cwd = Just dir })
           |     ^^^^^^^^^^^^^^^^^^^^^^^^
                                                                                                                                                                                                                        /home/curators/work/unpack-dir/unpacked/sandwich-webdriver-0.2.3.1-5666fe08b9cfdd86ed6cbda2ad660c1f9a02c7453aa78f3714bb1507c9f049f1/src/Test/Sandwich/WebDriver/Internal/Binaries.hs:187:3: error: [GHC-39999]

Disabled on stackage for now.

@thomasjm
Copy link
Collaborator

thomasjm commented Nov 5, 2024

Fixed by commercialhaskell/stackage#7564

@thomasjm thomasjm closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants