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

Doesn't work with newer gi-gtk and gi-javascriptcore #151

Open
alexfmpe opened this issue Jan 17, 2025 · 0 comments
Open

Doesn't work with newer gi-gtk and gi-javascriptcore #151

alexfmpe opened this issue Jan 17, 2025 · 0 comments

Comments

@alexfmpe
Copy link
Contributor

It seems several gi-* packages turned into compatibility shims and there are new packages but jsaddle-webkit2gtk hasn't yet adjusted to the change.

jsaddle-webkit2gtk-0.9.9.0 -> gi-javascriptcore (>=4.0.14 && <4.1), gi-webkit2 (>=4.0.14 && <4.1)
gi-webkit2-4.0.31 -> gi-javascriptcore (>=4.0 && <4.1),
gi-webkit2-4.0.32 -> gi-javascriptcore4

For instance, using gi-gtk3-3.0.44 works (note the extra 3), but gi-gtk-3.0.43 fails with

Ready component graph:
    definite jsaddle-webkit2gtk-0.9.9.0-77GuYk6WXuJ5RoxZsBzLrH
        depends aeson-2.2.3.0-8dPIoxmWnqj1BrFuixf4Ca
        depends base-4.19.2.0-inplace
        depends bytestring-0.12.1.0-inplace
        depends directory-1.3.8.5-inplace
        depends gi-gio-2.0.35-6F32WhlCeSYDWJFIiux5eN
        depends gi-glib-2.0.30-GFD1YISPTh16iWchacQAX1
        depends gi-gtk-3.0.43-Kh5thJykXzMIAxX2O9q1nr
        depends gi-javascriptcore4-4.0.29-DjWD2KHRLpHDmo8slf7zU0
        depends gi-webkit2-4.0.32-It9b9N7JBmyHzpBclndE6F
        depends haskell-gi-base-0.26.8-9cAFlSvSLleBkkr5XMCZqE
        depends haskell-gi-overloading-1.0-6w3IXGDooXgu3RA2LfTuf
        depends jsaddle-0.9.9.2-6hZKSlNCZFhKwvbQvouLkq
        depends text-2.1.1-inplace
        depends unix-2.8.6.0-inplace
        depends webkit2gtk3-javascriptcore-0.14.4.6-3WdmEImas4tCs5tK7nn9xa
Using Cabal-3.10.3.0 compiled by ghc-9.8
Using compiler: ghc-9.8.4
Using install prefix:
[1 of 1] Compiling Language.Javascript.JSaddle.WebKitGTK ( src/Language/Javascript/JSaddle/WebKitGTK.hs, dist/build/Language/Javascript/JSaddle/WebKitGTK.o, dist/build/Language/Javascript/JSaddle/WebKitGTK.dyn_o )

src/Language/Javascript/JSaddle/WebKitGTK.hs:92:41-57: error: [GHC-64725]
    • Required ancestor ‘GI.Gtk.Objects.Widget.Widget’ not found for type ‘WebView’.
    • In a stmt of a 'do' block: w <- widgetGetToplevel wv
      In the second argument of ‘($)’, namely
        ‘do w <- widgetGetToplevel wv
            widgetDestroy w’
      In the expression:
        postGUIAsync
          $ do w <- widgetGetToplevel wv
               widgetDestroy w
   |
92 | quitWebView wv = postGUIAsync $ do w <- widgetGetToplevel wv --TODO: Shouldn't this be postGUISync?
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

No branches or pull requests

1 participant