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 220458

Summary: F9 to compile file is not working when focus in on editor
Product: java Reporter: ecerichter
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
Project compile configurations
Project build configurations
Context menu is correct
Context menu not show Compile option!

Description ecerichter 2012-10-20 00:03:14 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02

When using Java editor, I usually hit "F9" to compile current file.
This is no longer working in NB 7.3 Beta.
I've checked the Keyboard Shortcuts, and the shortcut is correctly configured.
When Project Explorer has focus, pressing F9 compile selected file.
Comment 1 ecerichter 2012-10-20 00:03:25 UTC
Created attachment 126222 [details]
IDE log
Comment 2 ecerichter 2012-10-25 10:41:02 UTC
Still not working on night build 201210210002.
Comment 3 Jiri Prox 2012-10-25 13:40:29 UTC
This works fine for me in current dev build. Just for check:
Is the compile on save enabled or disabled?
If it's enabled, is the Compile File menu item in context menu (for give file) enabled?
Comment 4 ecerichter 2012-10-25 15:51:41 UTC
Created attachment 126562 [details]
Project compile configurations
Comment 5 ecerichter 2012-10-25 15:52:17 UTC
Created attachment 126563 [details]
Project build configurations
Comment 6 ecerichter 2012-10-25 15:58:25 UTC
Perhaps, may be because I'm imported project previous settings?
I'll give a try starting from empty configuration.
Comment 7 ecerichter 2012-10-25 16:00:10 UTC
Created attachment 126564 [details]
Context menu is correct
Comment 8 ecerichter 2012-10-25 16:08:46 UTC
(In reply to comment #6)
> Perhaps, may be because I'm imported project previous settings?
> I'll give a try starting from empty configuration.

Tried with brand new config dir, without success.
My startup parameters are (I do use custom garbage collector, and a different locale than my OS):

netbeans_default_options="--locale en:US -J-client -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Xss2m -J-Xms32m -J-XX:PermSize=96m -J-XX:MaxPermSize=600m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Dsun.awt.disableMixing=true -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes"
Comment 9 ecerichter 2012-10-25 17:24:22 UTC
Created attachment 126569 [details]
Context menu not show Compile option!

Here we have a problem.
When right click file in Project window, context menu shows Compile option.
When right click the editor, the Compile option is not shown.
Comment 10 Miloslav Metelka 2012-10-29 09:47:43 UTC
Editor's context menu does not contain "Compile File" menu item (it's as designed).
Pressing F9 in editor has no effect (it's disabled in "Run" submenu of the main menu) iff you have "Compile on Save" option turned on for the given project.
If it still does not work for you please reopen the issue.
Comment 11 ecerichter 2012-10-29 12:43:52 UTC
(In reply to comment #10)
> Editor's context menu does not contain "Compile File" menu item (it's as
> designed).
> Pressing F9 in editor has no effect (it's disabled in "Run" submenu of the main
> menu) iff you have "Compile on Save" option turned on for the given project.
> If it still does not work for you please reopen the issue.

If you look carefully in the screenshots provided, you will see that I don't have "Compile on Save" enabled in project properties.

Reopening.


Regards,

Edson
Comment 12 ecerichter 2012-11-02 16:19:57 UTC
Working as expected in night build 201210300001.