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.
I added a public static void main method to java file, but the IDE is not refreshing the file and doesn't notice of the change. While I was typing this report, I noticed that I had a instance of the project running that just finished some long procedure and inmediatly after, the IDE detected the main method put the "green triangule" icon on the file. Product Version = NetBeans IDE Dev (Build 201507100001) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.8.0_45 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Created attachment 154725 [details] IDE log
Do you mean that your project (= your code) was running, and only after your code terminated, the IDE has refreshed the runnable icon, or that the IDE was processing something in your project (progress indicator shown) and refreshed after the long something was over ?
Seems to work OK even on syntax-broken sources. However the executable badge appears (or vanishes) only after the file has been saved.
(In reply to Svata Dedic from comment #2) > Do you mean that your project (= your code) was running, and only after your > code terminated, the IDE has refreshed the runnable icon, or that the IDE > was processing something in your project (progress indicator shown) and > refreshed after the long something was over ? The entire project (F6) was, in parallel I wanted to execute some testing code, so I created a file, added a PSVM but couldn't run it