NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Fix Indentation Engine and Diff

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
aberglas
Posted via mailing list.





PostPosted: Sun Jun 29, 2008 2:36 am    Post subject: Fix Indentation Engine and Diff Reply with quote

The indentation engine wraps code around lines!

I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)

So it is unusable for any developer that uses a source control system.

While on that, Diffs can generally ignore changes to white space. But the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?

(Fortunately svn diff -x -w ignores white space.)

Thanks,

Anthony
--
View this message in context: http://www.nabble.com/Fix-Indentation-Engine-and-Diff-tp18176816p18176816.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Back to top
Peter Pis
Posted via mailing list.





PostPosted: Mon Jun 30, 2008 5:46 am    Post subject: Fix Indentation Engine and Diff Reply with quote

Hi,

Diff option ignored only leading and trailing whitespaces. Recently there have been done improvements for diff (latest trunk builds). Now you can set:
  • Ignore Leading and Trailing White Spaces
  • Ignore Changes in inner Whitespace
  • Ignore Changes in Case
in "Tools | Options | Miscellaneous | Diff"

Regards,
-Peter

aberglas wrote:
Quote:
Quote:
The indentation engine wraps code around lines!

I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)

So it is unusable for any developer that uses a source control system.

While on that, Diffs can generally ignore changes to white space. But the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?

(Fortunately svn diff -x -w ignores white space.)

Thanks,

Anthony
Back to top
aberglas
Posted via mailing list.





PostPosted: Mon Jun 30, 2008 6:01 am    Post subject: Fix Indentation Engine and Diff Reply with quote

Thanks for this, I look forward to the release. We want to ignore anything
that an indentation engine might change.

But my bigger issue is how do we stop the indentation wrapping lines. It
also adds "{"s and other facist things. All I want it to do is adjust
leading white space so things line up properly. I'd suggest that that be
the default.

Not being able to use the indentation engine is a substantial restriction.

Thanks,

Anthony



Peter Pis wrote:
Quote:

Hi,

Diff option ignored only leading and trailing whitespaces. Recently
there have been done improvements for diff (latest trunk builds). Now
you can set:

* Ignore Leading and Trailing White Spaces
* Ignore Changes in inner Whitespace
* Ignore Changes in Case

in "Tools | Options | Miscellaneous | Diff"

Regards,
-Peter

aberglas wrote:
Quote:
The indentation engine wraps code around lines!

I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)

So it is unusable for any developer that uses a source control system.

While on that, Diffs can generally ignore changes to white space. But
the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?

(Fortunately svn diff -x -w ignores white space.)

Thanks,

Anthony





--
View this message in context: http://www.nabble.com/Fix-Indentation-Engine-and-Diff-tp18176816p18189201.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Back to top
Peter B. West
Posted via mailing list.





PostPosted: Mon Jun 30, 2008 8:09 am    Post subject: Fix Indentation Engine and Diff Reply with quote

This seems to have minimal utility, not so much in terms of seeing what
has actually changed, but in terms of commits. If commit doesn't ignore
whitespace (and that idea seems odd) what's the point of maintaining
different whitespace regimes within a developer community?

Surely it is better to define a regime for whitespace, and have everyone
stick to it, even if that means going with the lowest common denominator
of the various editors.

Jindent, which is a commercial plugin, may address some of the OP's
issues. Somewhere there is a Jalopy plugin which gives more extensive
control over formatting, but I'm not sure how to find it.

Peter Pis wrote:
Quote:
Hi,

Diff option ignored only leading and trailing whitespaces. Recently
there have been done improvements for diff (latest trunk builds). Now
you can set:

* Ignore Leading and Trailing White Spaces
* Ignore Changes in inner Whitespace
* Ignore Changes in Case

in "Tools | Options | Miscellaneous | Diff"

Regards,
-Peter

aberglas wrote:
Quote:
The indentation engine wraps code around lines!
I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)

So it is unusable for any developer that uses a source control system.

While on that, Diffs can generally ignore changes to white space. But
the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?

(Fortunately svn diff -x -w ignores white space.)

Thanks,

Anthony





--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo