2ed934120c
The annotations (error markers) were not preserved when switching between files. The setAnnotations method was being called before the document is ready -- when the document is attached to ace the content is deleted and reinserted, which caused the annotations to be removed. To fix the problem we set the annotations after attaching.