Hot swap not working on fresh Elm platform installation

329 views
Skip to first unread message

Ignacio Vivona

unread,
Jul 14, 2015, 5:17:49 PM7/14/15
to elm-d...@googlegroups.com
Hi all!

I've started playing with Elm in order to build a new mobile app (using Cordova later) and couldn't get the hot swap working with elm-reactor. This is a fresh new Elm installation (today) using the mac os x installer (Elm Reactor 0.3.2, Elm Platform 0.15.1, OSX 10.9.5). Will try with another mac with latest OSX and will see what happen.
Is there any way of making it work?

Also, in debug mode, the refresh button hangs the execution (I think I saw a git issue for that).

Cheers,
Ignacio

Pete Vilter

unread,
Jul 14, 2015, 6:25:18 PM7/14/15
to elm-d...@googlegroups.com
Hi, yes there is a github issue for the refresh button; that'll be fixed soon (i.e. by the next release).

I'm currently trying to dedupe the reactor swapping bugs, so I'm wondering exactly what you mean by "not working":
  1. load your code in reactor
  2. possibly interact with it a bit
  3. edit & save
  4. does
    1. execution hang? (JS runtime error)
    2. you see the initial state of the application with some indication that the new code has been loaded, but seeming as if your interactions before swapping have not been replayed on the swapped code?
    3. nothing happen at all?
These are the three kinds of bugs I'm seeing right now; wondering which one you're getting. Are you using elm-html or something else (Graphics.Collage or Graphics.Element)? Thanks!

Ignacio Vivona

unread,
Jul 14, 2015, 6:40:41 PM7/14/15
to elm-d...@googlegroups.com
Hi! Thanks for the response. 

With the counter example, i do load it, interact with it, then edit and save (ex: adding +2 instead of +1), back to the reactor, interact with it again, nothing new happens (ex: is still adding +1).


--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/3ChXFzNGb2E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bob Hutchison

unread,
Jul 16, 2015, 4:11:54 PM7/16/15
to elm-d...@googlegroups.com
On Jul 14, 2015, at 6:40 PM, Ignacio Vivona <alto...@gmail.com> wrote:

Hi! Thanks for the response. 

With the counter example, i do load it, interact with it, then edit and save (ex: adding +2 instead of +1), back to the reactor, interact with it again, nothing new happens (ex: is still adding +1).


I am having a similar experience, also on OS X. But it usually updates once the first time a change occurs after starting reactor, then stops updating. Still runs, but runs unchanged. The slider works for events.

I’ve seen the hang on refresh, but not always, and I’ve not noticed any kind of pattern.

Cheers,
Bob



On Tue, Jul 14, 2015 at 7:25 PM, Pete Vilter <pete....@gmail.com> wrote:
Hi, yes there is a github issue for the refresh button; that'll be fixed soon (i.e. by the next release).

I'm currently trying to dedupe the reactor swapping bugs, so I'm wondering exactly what you mean by "not working":
  1. load your code in reactor
  2. possibly interact with it a bit
  3. edit & save
  4. does
    1. execution hang? (JS runtime error)
    2. you see the initial state of the application with some indication that the new code has been loaded, but seeming as if your interactions before swapping have not been replayed on the swapped code?
    3. nothing happen at all?
These are the three kinds of bugs I'm seeing right now; wondering which one you're getting. Are you using elm-html or something else (Graphics.Collage or Graphics.Element)? Thanks!

On Tuesday, July 14, 2015 at 2:17:49 PM UTC-7, Ignacio Vivona wrote:
Hi all!

I've started playing with Elm in order to build a new mobile app (using Cordova later) and couldn't get the hot swap working with elm-reactor. This is a fresh new Elm installation (today) using the mac os x installer (Elm Reactor 0.3.2, Elm Platform 0.15.1, OSX 10.9.5). Will try with another mac with latest OSX and will see what happen.
Is there any way of making it work?

Also, in debug mode, the refresh button hangs the execution (I think I saw a git issue for that).

Cheers,
Ignacio

--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/3ChXFzNGb2E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.

Tim Stewart

unread,
Sep 2, 2015, 9:06:24 PM9/2/15
to Elm Discuss
I'm also seeing Hot Swap in elm-reactor result in no action, also on OS X. It does work sometimes (it seems to be more happy to swap in compile time errors than working code changes!) which is quite tantalising. The potential for this is amazing!

I'm occasionally seeing the terminal message:

elm-reactor-unwrapped: ConnectionClosed


If you point me at the appropriate Github issue (there seem to be a few..) I'll be happy to provide sample code and Steps to Reproduce.


Thanks
Tim
Reply all
Reply to author
Forward
0 new messages