This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Editing with MQ active deletes trailing whitespace from unrelated lines | ||
---|---|---|---|
Product: | editor | Reporter: | Jesse Glick <jglick> |
Component: | Formatting & Indentation | Assignee: | Vitezslav Stejskal <vstejskal> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | mrkam |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 137529 |
Description
Jesse Glick
2008-07-03 15:45:27 UTC
Also note that closing the open editor files before doing command-line MQ operations does not seem to help - perhaps because the documents are still loaded in memory? Is this being evaluated? It makes it nearly impossible for me to work on patches using NB - I never know when saving a file is going to cause my diff to become 3x bigger. The problem is not limited to Fix Imports. *** Issue 139757 has been marked as a duplicate of this issue. *** Mila is on vacation. He will be back next Monday. Since this is a serious problem - damaging file histories - perhaps trailing whitespace removal could be disabled until he gets back or someone else can investigate? I'll have a look. I managed to reproduce the problem following the shorter version of your steps (no MQ involved). Does seem fixed with the simplified test case at least. It is a signal irony that your patch is difficult to read because it is lost in the background of whitespace removal in BaseDocument.java! Integrated into 'main-golden', available in NB_Trunk_Production #324 build Changeset: http://hg.netbeans.org/main/rev/0db6a516fc09 User: Vita Stejskal <vstejskal@netbeans.org> Log: #138951 (fixed): reset the list of modified areas when a document is reloaded (eg. after external modification to its underlying file) |