Project: appceleratorstudio
Issue TISTUD-1125: Error in log file: "Was unable to add folding position"
The JSON editor writes warnings to the log upon deleting then backspacing the contents of a file. Steps to Replicate : 1) Open Titanium Studio 2) Open a saved empty JSON file and add the content : {noformat} { "firstName": "John", "lastName": "Smith", "age": 25, "address": { "streetAddress": "21 2nd Street", "city": "New York", "state": "NY", "postalCode": "10021" }, "phoneNumber": [ { "type": "home", "number": "212 555-1234" }, { "type": "fax", "number": "646 555-4567" } ] } {noformat} 3) Erase approximately the first half of the file with the delete key 4) Place the caret at the end of the file and erase the rest with the backspace key Actual Results : Studio will write this to the log : !ENTRY com.aptana.editor.common 2 0 2012-01-25 20:41:57.730 !MESSAGE (Build 3.0.3.1325798464) [WARNING] Was unable to add folding position. Start: 253, end: 206 !ENTRY com.aptana.editor.common 2 0 2012-01-25 20:41:57.730 !MESSAGE (Build 3.0.3.1325798464) [WARNING] Was unable to add folding position. Start: 264, end: 206 !ENTRY com.aptana.editor.common 2 0 2012-01-25 20:41:57.730 !MESSAGE (Build 3.0.3.1325798464) [WARNING] Was unable to add folding position. Start: 350, end: 206 Expected Results : These keys are expected to function with no errors or warnings.
Story points: 5