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/01/28 08:52:00 UTC

[jira] [Created] (NETBEANS-3758) "Run File" is often disabled after introducing a main() method

Marco Herrn created NETBEANS-3758:
-------------------------------------

             Summary: "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
         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