Community
Participate
Working Groups
When doing a drag and drop of an existing type into an Aspect compilation unit, a malformed text edit tree exception is thrown. This is because the drop location in the source code is being calculated on the transformed code, which may contain some dummy variable declarations at the end of the file. Since these dummy declarations are after the actual end location of the the file and the insert location is calculated based on them, the insert location is invalid. The solution is to ensure that the version of the source code used to calculate the insertion offset is the same length as the original code, but it must be transformed to remove all syntax errors.
Currently working, but need to create some tests.
Fixed with regression tests.