Text parsed/saved vs. text displayed on screen

First let me say that I am really enjoying CIDER – it’s just what I needed to make me productive with Corona.

The problem I’m about to describe seems rare, but I’ve noticed it on about three occasions now (Mac version). I’ll type in a new block of code, then CIDER will report it contains a syntax error. I’ll check and recheck the code and not find any obvious problems. Then, if I quit CIDER (with automatic saving enabled) and restart, the block of code will be truncated and incomplete.

The most recent time this happened, I decided to try to be clever – I copied and pasted the block that was giving me trouble and surrounded the copy with block-comment markers. But after restarting CIDER, the block and the comment alike were gone, except for a few words at the beginning of the block. It’s almost as if CIDER internally refused to track any changes I was making after a certain point, yet they were still showing up in the editor.

I wish I could provide information on how to reproduce the problem, but as I said, it seems pretty rare. If you have any suggestions on what I should try the next time it happens – whether to fix it or to gather information that might help you pin it down – please let me know. Thanks!
[import]uid: 117162 topic_id: 28244 reply_id: 328244[/import]

Hello gtellgtell,

Sorry to hear you are having issues. We have revised the parser/lexer and it does not detect any false syntax errors from what we can tell. If you could post a code snippet that is causing you problems we will make sure v 1.6 does not has the same issue.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 28244 reply_id: 114115[/import]

Thanks for the quick reply. I don’t think it is a problem with the parser per se, nor any particular piece of code, but some kind of occasional disconnect between the parser and the built-in editor. It’s as if there are two versions of the document – an “imaginary” one that I’m typing in the editor, and a “real” one that’s frozen in time and ignores my latest edits, yet still gets parsed and saved to disk. It’s sort of like when a cell phone call drops connection but you don’t realize it until you’ve been talking to no one for a while.

If no one else is having this problem, the only thing I can think of that I might be doing differently is that until recently I was a Windows user, and I still sometimes mistakenly try to use Windows keyboard shortcuts for cutting and pasting. Maybe there is some key combination that somehow severs the connection between the editor and the parser/autosave? [import]uid: 117162 topic_id: 28244 reply_id: 114128[/import]