| Summary: | [projection] unfolding doesn't work if caption is last line in document | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Niko Stotz <eclipse> |
| Component: | Text | Assignee: | 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: | |||
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. Still the same in I20191111-1800. I plan to investigate this issue. New Gerrit change created: https://git.eclipse.org/r/152800 Gerrit change https://git.eclipse.org/r/152800 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=245f4232129be40954b70f9acbdda6251366724d |
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.