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 253579 - Netbeans doesn't recognize a PSVM added to a java file
Summary: Netbeans doesn't recognize a PSVM added to a java file
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 12:15 UTC by FiruzzZ
Modified: 2015-08-26 11:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (119.69 KB, text/plain)
2015-07-20 12:15 UTC, FiruzzZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FiruzzZ 2015-07-20 12:15:17 UTC
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
Comment 1 FiruzzZ 2015-07-20 12:15:25 UTC
Created attachment 154725 [details]
IDE log
Comment 2 Svata Dedic 2015-08-07 11:20:11 UTC
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 ?
Comment 3 Svata Dedic 2015-08-26 11:12:59 UTC
Seems to work OK even on syntax-broken sources. However the executable badge appears (or vanishes) only after the file has been saved.
Comment 4 FiruzzZ 2015-08-26 11:45:12 UTC
(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