[jira] [Commented] (NETBEANS-3758) "Run File" is often disabled after introducing a main() method
[ https://issues.apache.org/jira/browse/NETBEANS-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17068709#comment-17068709 ] Marco Herrn commented on NETBEANS-3758: --- Sorry for my late reply. I have overlooked your comment. Yes, I have saved the file. In the past that was enough, but this is not the case anymore with Netbeans 11.1. Not even closing and reopening the project helped. Also my projects are on the local filesystem. Netbeans detect changes (like files modified in external programs) just fine. The only problem is that the menu entries to run the file remain disabled. > "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
[jira] [Commented] (NETBEANS-3758) "Run File" is often disabled after introducing a main() method
[ 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
[jira] [Commented] (NETBEANS-3758) "Run File" is often disabled after introducing a main() method
[ https://issues.apache.org/jira/browse/NETBEANS-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17029928#comment-17029928 ] Alessandro Falappa commented on NETBEANS-3758: -- Have you saved the file after adding the main method? >From my experiments the entries are disabled until the file is saved. Works for me on maven projects. > "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