History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RUBY-1128
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Oleg Shpynov
Reporter: Chad Woolley
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Ruby

ruby plugin not preserving whitespace correctly

Created: 01 Nov 07 21:57   Updated: 01 Nov 07 22:16
Component/s: Editing, Parsing
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Ubuntu Linux


 Description  « Hide
(plugin build is 1.0.11932, it wouldn't let me paste this into the build field on jira)

I'm having problems with whitespace getting messed up when editing ruby files.

I commented a large block of code with ctrl-/. When I uncommented it, it had removed the whitespace from all trailing lines.

First, I tried to fix it by undoing before the comment, but the default undo buffer wasn't long enough. Also, the performance was so bad that this took forever (but that's a separate issue).

So, I opened up the commit set, clicked on the file to bring up the diff, and did F7 + click to undo to remove all the whitespace changes, the exited out of the diff and commit set. It looked fine, and had the whitespace reintroduced, but when I saved the file, it went away again!

So, I used the diff to revert the (numerous!) whitespace changes again, and this time put the entire file contents on my paste buffer. Then, I saved the file (which blew away the changes), and pasted over it. No luck, the changes were still there.

I also tried cutting and pasting the original section from the left pane of the diff. No luck either.

The only way I can see to fix this is to click the gutter and do the green undo arrow for every change.

This is a real pain.

Thanks,
Chad
Th



 All   Comments   Work Log   Change History      Sort Order:
Chad Woolley - 01 Nov 07 22:16
This still exists in build 1.0.12002