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.

Bug 150028

Summary: No Profile entry in context menu for *.groovy files
Product: groovy Reporter: giorgio42 <giorgio42>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick, trcorbin
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description giorgio42 2008-10-14 09:31:47 UTC
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
Comment 1 Petr Hejl 2008-11-18 16:35:59 UTC
*** Issue 152096 has been marked as a duplicate of this issue. ***
Comment 2 Petr Hejl 2008-11-18 16:37:18 UTC
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.

Comment 3 Petr Hejl 2008-11-21 21:24:00 UTC
Run file fixed in main 883a4d743301.
Comment 4 Quality Engineering 2008-11-23 17:02:31 UTC
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
Comment 5 Petr Hejl 2008-12-04 14:41:38 UTC
*** Issue 154546 has been marked as a duplicate of this issue. ***
Comment 6 Petr Hejl 2008-12-04 15:10:23 UTC
*** Issue 153630 has been marked as a duplicate of this issue. ***
Comment 7 Martin Janicek 2012-05-14 09:30:40 UTC
Debug File & Compile File fixed in: web-main #6c9851bd898f
Comment 8 Martin Janicek 2012-05-14 09:31:11 UTC
+ related refactoring made in: web-main #06c5ed5a5937
Comment 9 Quality Engineering 2012-05-15 10:12:05 UTC
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
Comment 10 Martin Janicek 2012-10-15 17:15:06 UTC
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
Comment 11 Martin Janicek 2012-10-15 17:19:42 UTC
I've created new enhancement (issue 220126) to track the missing "profile" action for groovy files.