Bug 415433 - [projection] Import fold 'eats' incomplete line below it
Summary: [projection] Import fold 'eats' incomplete line below it
Status: CLOSED DUPLICATE of bug 104373
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-20 05:00 EDT by Albert Hofkamp CLA
Modified: 2013-11-21 09:28 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Hofkamp CLA 2013-08-20 05:00:07 EDT
I wanted to add a static import, so added a new empty line below the folded 'imports' block, and started typing.

import stat

At this point, I stopped typing for a second (looking up the classname to statically import). The automagic import fold merger kicks in, and adds the above line to the list of folded import statements. My cursor is moved to the line below it (again directly under the folded imports).

Obviously, the type checker finds the partial import statement wrong, and marks the import fold with an error. I now have to manually unfold the import list, finish the import I was typing, and manually fold the import lines again.

It would be nice if the import fold merger didn't eat such partial lines, or perhaps even all import lines containing errors.
Comment 1 Dani Megert CLA 2013-08-20 06:29:17 EDT

*** This bug has been marked as a duplicate of bug 185665 ***
Comment 2 Dani Megert CLA 2013-11-21 09:28:13 EST

*** This bug has been marked as a duplicate of bug 104373 ***