HTML Preview nonsense until cookies cleared


#1

Today I found files that previously previewed fine and still show fine from local HD now show nonsense in C9 preview, both tab form and window form e.g.

<!doctype html>
<HTML>
<HEAD>
<meta charset="utf-8">
  <title>temp</title>
</HEAD>

<BODY>
<table>
<tr><td><b>one
<tr><td>two
</table>
</BODY>
</HTML>

gives

And it is not even stable. Just a refresh of that C9 Preview tab changed the content:

Also, sometimes Refresh shows first the correct content:

then a moment again changing to the incorrect already pictured.

Other examples gave messed-up buttons:

and

This is on Google Chrome Version 52.0.2743.116 m (64-bit) with and without all extensions disabled.

I cleared all c9.io cookies and logged back in, and the problem has gone.


#2

looks like the file is not saved, and when saved and in editor versions of file are too different, live update alghorithm may produce such artefacts, try saving file before reloading the preview


#3

looks like the file is not saved,

It wasn’t.

I’d had auto-save on. At the time of the changed behaviour I moved the files to a second project/workspace to overcome a problem, and now I find that for that second project auto-save is off, despite that this setting is NOT categorised as a Project (a.k.a. workspace) setting http://i.imgur.com/eEGGYbR.png. I find this issue is known https://archive.is/ozHbO#selection-903.0-903.138 but find no report in https://github.com/c9 .

and when saved and in editor versions of file are too different, live update alghorithm may produce such artefacts

‘Too different’ being just one character, it seems. E.g. changing to adds a bogus text

http://i.imgur.com/e07pIO8.png .

And changing back and forth causes bogus text to accumulate

This issue is unknown to https://github.com/c9/c9.ide.preview/issues , so should I report there?

try saving file before reloading the preview

Saving the file (CTRL+S) causes the Preview to refresh and to show the correct output. Thanks.


#4

Further info.

  1. The Save workaround has no effect on the Preview in separate window:

and

Workaround: manually reload the Preview page.