-
Notifications
You must be signed in to change notification settings - Fork 61
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
Can't build jsaddle-webkit2gtk
#85
Comments
Current |
This affects me too. Seems to be caused by the lack of said |
I am also experiencing this. |
Me too. Using 4.0.15 only changes the error to -
|
This builds (and so do lots of transitive dependent packages), but I haven't tested it: https://github.com/ryantrinkle/jsaddle/tree/no-global-context |
Thank your for looking into it, @ryantrinkle. I've built a "hello world" reflex app (built with Stack though, not Nix) using jsaddle from above branch; it shows empty window then segfaults in
Hope that helps making further progress. |
@develop7 Ah, looks like I guessed wrong about GlobalContext and Context being sufficiently interchangeable. Maybe @hamishmack has an idea? |
I think the first step is to create a Haskell library to wrap the new jsc-glib library that is now in webkitgtk. This new haskell library would take the place of the webkit2-javascriptcore that Unfortunately I don't think jsc-glib has gobject introspection (though I would love to be proved wrong on that). Hopefully once we have that we can replace the code that currently calls C functions like I think we should avoid any dependency on Another option is to add FFI imports for just the jsc-glib functions we need in line in the jsaddle-webkit2gtk code (that might be less work, but it would suck a little). |
I think #96 fixes this by avoiding global context entirely. I was able to build and run reflex-todomvc with that patch. |
This is so exciting! Maybe we can finally get |
yup, that does it — just got reflex "hello world" running in webkitgtk. Thanks, man! |
It looks like
GI.JavaScriptCore
andGI.WebKit2
have changed in incompatible ways:To reproduce, use this
default.nix
:The text was updated successfully, but these errors were encountered: