Community
Participate
Working Groups
Build Identifier: Eclipse 20100218-1602 / DLTK 2.0.0.v20100518-1923-7L--EAAoOVMSKg6AVz-vN When editing my source code, I sometime have an exception in SourceModuleDocumentProvider.SourceModuleAnnotationModel.createPositionFromProblem. The exception is raised because the start position is greater than the documentLength which led to create a new Position with a negative length I suggest to add this test: int documentLength = fDocument.getLength(); >>>> if (start > documentLength) >>>> start = documentLength; if(start + length > documentLength){ length = documentLength - start; } Reproducible: Sometimes Steps to Reproduce: 1. have an error marker on the end of the document 2. press the backspace rapidly to delete some part of code in the document body
Applied in HEAD & 2.0 maintenance branch