This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NB 200810111401, JDK 1.6.0 I have a J2SE project which contains mostly Groovy scripts. The following entries in the context menu of the *.groovy files are missing: 1) Run File 2) Compile File 3) Debug File 4) Profile File Despite this Shift+F6 is working as expected. Without the Run File entry in the main Run menu the user gets no indication, that NB can run the file at all. Grayed out menu entries which should be removed, as this project has no connection with Grails: 1) Create view 2) Generate all
*** Issue 152096 has been marked as a duplicate of this issue. ***
Additional comment from Jesse (from issue 152096): If I add a class definition with a public static void main(String[]) method to it, I can select the Groovy class as main, and then delete the method afterwards. This is silly because I can have a Groovy class containing just e.g. ---%<--- println "hello" ---%<--- and run it. Ideally I could set any Groovy class as main if it had any statements in it outside of a class definition.
Run file fixed in main 883a4d743301.
Integrated into 'main-golden', will be available in build *200811231401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/883a4d743301 User: phejl@netbeans.org Log: #150028 No Run File entry in context menu for *.groovy files
*** Issue 154546 has been marked as a duplicate of this issue. ***
*** Issue 153630 has been marked as a duplicate of this issue. ***
Debug File & Compile File fixed in: web-main #6c9851bd898f
+ related refactoring made in: web-main #06c5ed5a5937
Integrated into 'main-golden', will be available in build *201205150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6c9851bd898f User: Martin Janicek <mjanicek@netbeans.org> Log: #150028 - No Debug & Profile entry in context menu for *.groovy files
Closing this issue as the original problem has been already fixed (no entry point in context menu --> in the current state we have Run/Debug/Test/Debug test actions in context menu). Only one missing is "Profile" and for that purpose we will have to implement the whole logic
I've created new enhancement (issue 220126) to track the missing "profile" action for groovy files.