Skip to content

terminalSpawnSync deprecation error #156

@felipebalbi

Description

@felipebalbi

while trying to build Termonad I get the following deprecation error:

Configuring termonad-3.1.0.1...  termonad> build (lib + exe)
Preprocessing library for termonad-3.1.0.1..  Building library for
termonad-3.1.0.1..  [ 1 of 15] Compiling Paths_termonad [ 2 of 15]
Compiling Termonad.Pcre [ 3 of 15] Compiling Termonad.Prelude [ 4 of
15] Compiling Termonad.Gtk [ 5 of 15] Compiling Termonad.Config.Vec [
6 of 15] Compiling Termonad.Types [ 7 of 15] Compiling
Termonad.PreferencesFile [ 8 of 15] Compiling Termonad.Lenses [ 9 of
15] Compiling Termonad.Term

/.../termonad/src/Termonad/Term.hs:365:5: error:
    [-Wdeprecations, -Werror=deprecations] In the use of
    ‘terminalSpawnSync’ (imported from GI.Vte, but defined in
    GI.Vte.Objects.Terminal): Deprecated: "(Since version 0.48) Use
    'GI.Vte.Objects.Terminal.terminalSpawnAsync' instead."  | 365 |
    terminalSpawnSync | ^^^^^^^^^^^^^^^^^

-- While building package termonad-3.1.0.1 using:
      /...1termonad/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.0.1.0/setup/setup
      --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.0.1.0
      build lib:termonad exe:termonad --ghc-options "" Process exited
      with code: ExitFailure 1

I've been looking on GI.Vte docs, but terminalSpawnAsync isn't defined anywhere. For now, I've disabled -Werror from my stack config

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions