[ https://issues.apache.org/jira/browse/NETBEANS-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17029931#comment-17029931 ]
Alessandro Falappa commented on NETBEANS-3758: ---------------------------------------------- Another guess is that your projects are on a filesystem where the file watching mechanism is not working properly, i.e. network mounted share. > "Run File" is often disabled after introducing a main() method > -------------------------------------------------------------- > > Key: NETBEANS-3758 > URL: https://issues.apache.org/jira/browse/NETBEANS-3758 > Project: NetBeans > Issue Type: Bug > Components: editor - Actions/Menu/Toolbar > Affects Versions: 11.1 > Reporter: Marco Herrn > Priority: Major > Labels: run > Attachments: main.png > > > Often when introducing a new `main` method into an existing class, the "Run > File" and "Debug File" menu entries are still disabled and is therefore > impossible to execute this `main` method. > In most cases it is necessary to closes netbeans and clear the netbeans cache > to be able to execute it, which is absolutely counterproductive if such a > method is only temporarily inserted for testing purposes. > It may be that this only happens with Maven projects, since all my projects > are maven based. > Please see the attached screenshot that shows the context menu after > introducing a new `main` method. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists