icecoder/ICEcoder

Save issue

Closed this issue · 1 comments

Reported by user:

At some point, the code I have on my screen, in ICEcoder is not the code written on the file.
I am able to guess that because if I check the page I am working on in a browser, the page generated doesn't make sense or is not working even if the code is right.
When I am in this situation, what I do is CTRL+A / CTRL+C (as the code visible on my screen in ICEcoder is OK)
Then F5 the ICEcoder tab and reopen my files.
There, I check the lines I was working on and I am able to see that some lines are different from what I had. So a simple CTRL +A / CTRL +V / CTRL + S and everything is back to normal.
Usually, the issue is a line is duplicated.

When I am coding, I use a lot of shortcuts on my keyboard and I think it's related to one of them.
CTRL + left / right arrow
CTRL + SHIFT + left/right arrow
CTRL + top/bottom arrow
CTRL + [+]

@cedricgeffroy A lot of improvements have been made to the save system and this issue may be resolved. It's tricky when I can't manage to reproduce it.

Do you know if any of the issues you found were re the very first or last line in a file and maybe the file was originally created on a Windows machine? (I'm wondering if it's an issue re the line endings - Windows typically uses \r\n and Linux \n).

I'll close the issue as I can't reproduce and hopefully sorted for you now. Please reopen if it still occurs and if at all possible send a demo file (just a dummy file) which I can reproduce the issue with.