You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Marco Herrn (Jira)" <ji...@apache.org> on 2020/03/27 13:41:00 UTC

[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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists