Live edit only from some files types?

When I trigger a refresh from a *.html.hml file the browser is refreshed. But from a *.js.coffee it is not. Is refresh only supposed to work from certain file types?

3 comments
Comment actions Permalink

Yes, but CoffeeScript      is supported. Please ensute that plugin         CoffeeScript is installed. What do you mean "I trigger a refresh" — do you use "Reload in Browser" or do you edit file content?

If edit — page is not reloaded, we use hotswap (i.e. script will be updated without page refresh (external compiler must be running,  please see http://blog.jetbrains.com/webide/2012/08/liveedit-plugin-features-in-detail/)).

0
Comment actions Permalink

Yes, coffeescript plugin is installed. And I have external compiler enabled. (But I'm not clear on what this is exactly doing)

I have split screen with haml on one side and coffeescript on the other. If I "view->refresh in browser" while focus in in the haml, the page is reloaded. If in the coffeescript file nothing happens. Does not matter if the coffeescript has edits.

Since my coffeescript is adding DataTables to some html from the haml, and

     "will be hot-swapped without page refresh (of course, hot-swapped JavaScript will be effective only if it used in cycle or event-driven)."

That means that the page won't auto refresh. Ok that makes sense. But then if I explicitly to "refresh in browser" I would expect the page to refresh. Otherwise I need to change focus to haml or go the browser to see the effects. Should "refresh" force the update or just the hotswap fo the JS? If the latter, is the a way to force the page refresh from anywhere in IDEA?

0
Comment actions Permalink

Also I definately do not seeing live edit anywhere for anything in haml files.

0

Please sign in to leave a comment.