-
Notifications
You must be signed in to change notification settings - Fork 63
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
jsaddle missing sync message handler #107
Comments
Currently running into this issue also, from Miso HEAD. Is there a known version that works before this? Some additional information (don't know if it helps, but might as well): The console log will report the following after triggering a reload using the config in the comment above:
Which points to No big changes has happened in this file in a while, so I doubt that's the root cause. Looking at the original location in question jsaddle-warp/src/Language/Javascript/JSaddle/WebSockets.hs#L129, the only "recent" changes I can see are the triple equality check added 2 months ago (50950b5) and a fix to use two websockets to support macOS 11 months ago (e6ba1fc). This leads me to suspect that it's not a bug introduced in JSAddle necessarily, but maybe GHCJS or the browser changed, and it has to be accommodated? |
Did any of you manage to work around this since this bug was filed? |
I worked around this issue using entr to watch file changes, to trigger reloading the midori browser (a midori tab can reloaded from the command line): #!/usr/bin/bash
# Install entr if missing
which entr || sudo apt install entr
# Install midori if missing
which midori || sudo snap install midori
function midori_listen() {
# That's the whole point of this script. It listens to changes to all versioned .hs files:
# and pings midori
git ls-files "*.hs" | entr -s "midori -p -e tab-reload"
}
midori_listen &
# Start midori if not yet there:
[[ $(pgrep midori) == "0" ]] || (midori "http://localhost:8080" &)
# Regenerate js upon .hs saving, usual miso business:
nix-shell --run reload |
Receiving the following when attempting to use
jsaddle
w/miso
andghcid
. The webpage never reloads after the buffer is edited. Could be a configuration problem on my part. Posting here in case anyone else knows the fix.Haskell code used.
After calling
nix-shell --run reload
which invokesghcid -T ':main'
The text was updated successfully, but these errors were encountered: