Closed Spenhouet closed 8 years ago
Does the other file have a main function ?
The other file?
What i mean is, i only have one elm file (for example the form.elm of the example files: https://github.com/evancz/elm-architecture-tutorial/blob/master/examples/03-form.elm). This file does have a main:
main : Program Never Model Msg
main = Html.beginnerProgram { model = model, view = view, update = update }
Repro:
:elm.browse
=> the file is shown correctly in the internal browser:elm.browse
=> still shows "OK" should show the new textOk. That's probably the default behavior of the in-buildt chromium browser.
In any case just use cmd/ctrl - r
to refresh
You are right. That is a simple and good idea.
I just changed my keymap to:
[:editor.elm "ctrl-b" :elm.browse :refresh-connected-browser]
The :refresh-connected-browser
after :elm.browse
does the trick.
Thank you for your help 👍
np !
If i open a file in the internal browser with
:elm.browse
(per keymap) it works. If i than make changes on the elm file and try again to open it via:elm.browse
it doesn't reload the browser tab. The browser tab still contains the old file.If i close the tab manually and do :elm.browse it works. But i don't think that this is the desired behavior.
Keymap:
[:editor.elm "ctrl-b" :elm.browse]
I'm using a fresh installation with elm 0.18, lighttable 0.8.1, elm-light 0.5, node v6.9.1 on Win10.