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.

Bug 254752

Summary: Formatting options are not saved correctly
Product: web Reporter: terje7601
Component: Editing infrastructureAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description terje7601 2015-08-26 13:18:03 UTC
To reproduce:
* start NetBeans with a fresh userdir/cachedir
* go to Tools -> Options -> Editor -> Formatting
* select "HTML" and "Tabs And Indents"
* uncheck "Use All Language Settings" and "Expand Tabs to Spaces", set "Number of Spaces per Indent" and "Tab Size" to 2
* click "Apply" and wait until "Apply" becomes enabled again
* click "OK"
At this point, the settings are not saved correctly. If you go back, you'll see that "Use All Language Settings" is still unchecked, but the other options haven't changed.

Product Version: NetBeans IDE Dev (Build 201508250002)
Updates: Updates available
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)
Comment 1 Milutin Kristofic 2015-08-26 14:47:27 UTC
It happened me once and I tried it 5 times with fresh userdir and 10 times without fresh userdir. 

It is hard do debug, if I cannot reproduce it. How often does it happen to you?
Comment 2 terje7601 2015-08-27 06:51:54 UTC
Created attachment 155679 [details]
IDE log

It's 100% reproducible here. The exact distribution I'm using is netbeans-trunk-nightly-201508250002-javaee.zip

I also noticed that it only reproduces when you first click "Apply" & then OK. If you click OK straight away, everything gets saved correctly.

If there's anything else I can do to help reproduce it, let me know.
Comment 3 Milutin Kristofic 2015-08-28 13:47:43 UTC
I can reproduce this on build from july but not a current build (28. august). I don't see any recent change in code (one fix from annotation triggering options, but 2 weeks ago). Can you evaluate this when you are trying newer build?
Comment 4 terje7601 2015-08-30 12:08:34 UTC
(In reply to Milutin Kristofic from comment #3)
> I can reproduce this on build from july but not a current build (28.
> august). I don't see any recent change in code (one fix from annotation
> triggering options, but 2 weeks ago). Can you evaluate this when you are
> trying newer build?

I just tried with the latest dev build ( netbeans-trunk-nightly-201508300002-javaee.zip ) on my home PC (Windows 10 x64):
the scenario I described in the first comment is still 100% reproducible.

PS: I will be away & unable to follow up on this in the coming weeks

Product Version: NetBeans IDE Dev (Build 201508300002)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)
Comment 5 terje7601 2015-09-14 08:08:54 UTC
I noticed in bug 254543 that you were using Linux. Did you also try to reproduce this bug on Windows? Because for me, this is still 100% reproducible with the latest dev build:

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)