| Summary: | Opening a deleted file breaks the editor | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | Project Inbox <orion.client-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 5.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
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 |
When you point the text editor at a file that does not exist, the right-hand pane gets into a bad state. 1. Create 2 files: foo.js and bar.js 2. Open foo.js in the editor 3. From another tab, delete bar.js 4. Go back to the first tab and click bar.js in the file list. A pop-up message will appear: "File not found: /m-OrionContent/whatever/bar.js" At this point however, the editor is broken. Click on any file and you get an empty right-hand pane with a console error: > "Cannot read property 'Location' of undefined" I've also observed the editor loading and showing the file contents, but with rulers and commands missing (eg. Ctrl+S brings up the browser Save As dialog). To get out of the bad state, you must open a folder view in the right-hand pane (which removes the text editor completely, and fixes it) or Reload the whole page.