Summary: | Exception in SourceModuleAnnotationModel.createPositionFromProblem | ||
---|---|---|---|
Product: | [Technology] DLTK | Reporter: | Eric Boureau <eric.boureau> |
Component: | Common | Assignee: | dltk.common-inbox <dltk.common-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | alex.panchenko |
Version: | 2.0 | Flags: | alex.panchenko:
iplog+
|
Target Milestone: | 2.0.1 | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Whiteboard: |
Applied in HEAD & 2.0 maintenance branch |
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