Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 435809

Summary: Opening a deleted file breaks the editor
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: 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:

Description Mark Macdonald CLA 2014-05-26 11:59:17 EDT
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.
Comment 1 John Arthorne CLA 2015-05-05 14:41:13 EDT
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