You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Alessandro Falappa (Jira)" <ji...@apache.org> on 2020/02/04 15:17: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=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-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