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 235679 - Format does not work
Summary: Format does not work
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-09-09 10:08 UTC by Jiri Prox
Modified: 2013-09-16 13:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2013-09-09 10:08:31 UTC
Formatting of java file does not work


Product Version: NetBeans IDE Dev (Build 201309090001)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b40
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b98
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Jiri Prox 2013-09-09 10:47:04 UTC
Unfortunately it is reproducible in 74release branch!
Comment 2 Dusan Balek 2013-09-09 14:24:40 UTC
Unfortunately, I cannot reproduce the problem - tested on:
 
Product Version: NetBeans IDE Dev (Build 201309090001)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 2.6.34-12-desktop running on amd64; UTF-8; en_US (nb)

Could you please try to reproduce the problem on a different JDK than 1.8.0-ea? Also, could you please try to invoke the action via 'Source -> Format' (just to make sure the 'Alt+Shift+F' shortcut is working correctly). Thanks.
Comment 3 Jiri Prox 2013-09-09 14:49:04 UTC
I can reproduce it on 

Product Version: NetBeans IDE 7.4 RC1 (Build 201309040918)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\7.4rc1
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\7.4rc1


I've tried both types of invocation - shortcut and menu item

But I happens only for the first time IDE is started with fresh userdir, after restart the action works correctly
(it does not matter it IDE was installed or only unzipped)
Comment 4 Jiri Prox 2013-09-09 14:54:22 UTC
In all cases there is no exception in the log


Reopening the file does not help, restart of IDE is needed to make it work
Comment 5 Dusan Balek 2013-09-09 18:18:32 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/a200059c87a8
Comment 6 Quality Engineering 2013-09-10 05:00:31 UTC
Integrated into 'main-silver', will be available in build *201309100337* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a200059c87a8
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #235679: Format does not work - fixed.
Comment 7 Jiri Prox 2013-09-10 07:28:38 UTC
verified in trunk
Comment 8 Tomas Zezula 2013-09-10 11:06:18 UTC
Seems good to me.
Comment 9 Dusan Balek 2013-09-10 13:29:24 UTC
Integrated into release74.

http://hg.netbeans.org/releases/rev/0aa9ffb3e395
Comment 10 Jiri Prox 2013-09-16 13:39:29 UTC
verified in 7.4 rc1