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

Bug 347628

Summary: [projection] unfolding doesn't work if caption is last line in document
Product: [Eclipse Project] Platform Reporter: Niko Stotz <eclipse>
Component: TextAssignee: Paul Pazderski <paul-eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, paul-eclipse, prakash
Version: 3.6.2   
Target Milestone: 4.14 M3   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/152800
https://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=245f4232129be40954b70f9acbdda6251366724d
Whiteboard:

Description Niko Stotz CLA 2011-05-30 07:05:58 EDT
Build Identifier: 20110218-0911

If the caption of a Position implementing IProjectionPosition points to the last line in the document, the collapsed projection won't unfold.

The bug is highly unlikely to happen in Java. I found it when implementing IProjectionPosition in a Xtext document.

Reproducible: Always

Steps to Reproduce:
1. Open this Java file:

---begin of file---
/**
 * This is the caption line*/ class Test{}---end of file---

(Note there is NO newline after the end of the class)

2. Close the documentation projection
3. Try to open it again
   Expected: Projection should unfold
   Actual: Projection doesn't change.
Comment 1 Lars Vogel CLA 2019-11-14 02:12:35 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.
Comment 2 Paul Pazderski CLA 2019-11-14 04:30:38 EST
Still the same in I20191111-1800. I plan to investigate this issue.
Comment 3 Eclipse Genie CLA 2019-11-16 18:30:02 EST
New Gerrit change created: https://git.eclipse.org/r/152800