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.
To reproduce, create a new HTML5/JS Application. Format the created index.html & save the changes. If you do format again now, the file has been changed again. The expected behavior is: if I do format and save. And then immediately do format again, the file is not changed & not marked as such by NetBeans either. Product Version: NetBeans IDE Dev (Build 201508030002) Updates: Updates available Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
I cannot reproduce this with default formatting. Do you have a special formatting values? Can you try this with new/empty userdir? Thank you Product Version: NetBeans IDE Dev (Build 20150824-50d98d8f65ed) Updates: Updates available Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Linux version 3.16.0-45-generic running on amd64; UTF-8; en_US (
(In reply to Milutin Kristofic from comment #1) > I cannot reproduce this with default formatting. Yes, it's not reproducible with default formatting values. However, it's 100% reproducible with special formatting values. > Do you have a special formatting values? I changed the formatting values for HTML -> Tabs And Indents as follows: uncheck "Use All Languages Settings" uncheck "Expand Tabs to Spaces" set "Number of Spaces per Indent" to 2 set "Tab Size" to 4 > Can you try this with new/empty userdir? Both cachedir and userdir are new. Product Version: NetBeans IDE Dev (Build 201509130002) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Now, I can reproduce this. Thank you for reproducible steps
http://hg.netbeans.org/web-main/rev/059d206acbfc The issue was caused by always changing tab sometimes changing same 1 tab with 1 another tab.
Integrated into 'main-silver', will be available in build *201509170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/059d206acbfc User: Milutin Kristofic <mkristofic@netbeans.org> Log: #254543 - Format of html file always results in changes