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

Bug 515221

Summary: Error on saving when "Format code on save" enabled
Product: [ECD] Orion Reporter: Robert Spies <wilford>
Component: ClientAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: eclipse, Michael_Rennie, Olivier_Thomann, remy.suen
Version: 14.0Keywords: triaged
Target Milestone: 17.0   
Hardware: PC   
OS: Linux   
See Also: https://github.com/eclipse/orion.client/pull/223
Whiteboard:

Description Robert Spies CLA 2017-04-12 20:47:40 EDT
Steps to repo:

1. Enabled "Format code on save" under editor settings.
2. Attempt to make a change and then save the file.

Note that the save fails, and the exception occurs in the chrome console:


ReferenceError: mFormatter is not defined
    at InputManager.save (https://8081-dot-1951683-dot-devshell.appspot.com/orion/inputManager.js:479:16)
    at InputManager.<anonymous> (https://8081-dot-1951683-dot-devshell.appspot.com/orion/inputManager.js:503:12)
    at https://8081-dot-1951683-dot-devshell.appspot.com/orion/EventTarget.js:42:8
    at Array.forEach (native)
    at EventTarget.dispatchEvent (https://8081-dot-1951683-dot-devshell.appspot.com/orion/EventTarget.js:39:15)
    at Idle.onIdle (https://8081-dot-1951683-dot-devshell.appspot.com/orion/inputManager.js:56:16)
    at Idle.<anonymous> (https://8081-dot-1951683-dot-devshell.appspot.com/orion/inputManager.js:49:11)
Comment 2 Rafael Chaves CLA 2017-09-07 13:08:29 EDT
Same here. Cool feature idea, but if this is not going to be fixed maybe remove the setting?
Comment 3 Eclipse Genie CLA 2017-10-12 13:56:42 EDT
GitHub Pull Request 223 created by [mrennie]
https://github.com/eclipse/orion.client/pull/223
Comment 4 Michael Rennie CLA 2017-10-12 13:57:05 EDT
Merged.