| Summary: | Editor corrupted JS source file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> | ||||
| Component: | Editor | Assignee: | Project Inbox <orion.editor-inbox> | ||||
| Status: | RESOLVED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 5.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Note that a bunch of my typing has been echoed in reverse into the file:
> * Script for running Orion mocha tests at Sauce Labs.
> * hosts the static Orion client code. .edoc tneilc noirO citats eht stsoh
> * .sbaL ecuaS ta stset ahcom noirO gninnur rof tpircS
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |
Created attachment 242856 [details] Files mentioned in this bug Running local server off Orion master @ 5c07c9f. 1. I was editing a .js source file, starting roughly from '0_initial.js'. (Note, there's a syntax error introduced already in this file on line 115, so I suspect the corruption started earlier in my editing session. But I only have data back to this point.) 2. I made some edits to the file. This included adding block comments at the top, and editing the 'grunt.registerTask' stuff around lines 109-115. 3. In the editor, the file contents looked like '2_expected.js'. This is what I expected. 4. On disk I noticed that the file had been corrupted into '3_corrupt.js'. When I reloaded the Orion editor page, I saw the corruption. The disturbing part is that it happens silently. The buffer in the text view seems fine until you reload the file. This makes me suspect diff-save may be involved. This corruption happens infrequently and it's hard to reproduce. I run into this maybe once a week.