GithubHelp home page GithubHelp logo

Comments (3)

hamishmack avatar hamishmack commented on July 29, 2024

It should work. Do you have a test case that we can use to reproduce the issue? Was the server just plane JSaddle (or have you added servant or anything else to it)? Was it using the JSaddle debug function? What other libraries were being used?

One thing that might cause problems is if JSaddle, other libraries or your app are using unsafePerformIO to create singletons. JSaddle does use this trick, but only in places it should be safe. For instance it has jsNull = JSVal . unsafePerformIO $ newIORef 0. This should be ok because the IORef inside any JSVal should be immutable (it is an IORef so we can attach finalisers for the JSVals that need to be freed on the JavaScript side).

from jsaddle.

eskimor avatar eskimor commented on July 29, 2024

Thank you for this very quick response. I have a test case, but it is far from minimal, I will try to provide a minimal one and will prepare and post instructions for the not so minimal case in the meantime.

I was not using the JSaddle 'debug' function. Other libraries used:

aeson
attoparsec
base64-bytestring
bytestring
Cabal
containers
data-default
directory
errors
filepath
generic-deriving
ghcjs-dom
gonimo-common
http-types
jsaddle
jsaddle-dom
jsaddle-warp
lens
lifted-base
mtl
reflex
reflex-dom
reflex-dom-core
safe
text
time
transformers
transformers-base
wai-middleware-static
warp
websockets

At least my code does not make any use of unsafePerformIO.

Servant was not added, just a middleware serving static files, code is here.

from jsaddle.

eskimor avatar eskimor commented on July 29, 2024

Ok, I am no longer able to reproduce this issue. Really weird, maybe my system just needed a reboot.

from jsaddle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.