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 151964 - Taglibs cannot be created
Summary: Taglibs cannot be created
Status: RESOLVED INVALID
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-31 12:23 UTC by marceloverdijk
Modified: 2008-10-31 13:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marceloverdijk 2008-10-31 12:23:04 UTC
In 6.5 RC2 it's not possible to create taglibs from within the IDE.

It seems that it tries to execute "grails create-tag-lib" instead of "grails create-taglib"
Comment 1 Petr Hejl 2008-10-31 12:57:40 UTC
grails create-tag-lib
is the correct value at least for Grails 1.0.3. Which version of grails do you use?
Comment 2 marceloverdijk 2008-10-31 13:07:23 UTC
I'm using Grails 1.0.3 and it should be really grails create-taglib (and not createtag-lib)

I checked out the Grails docs and found out that it's wrong stated in the Grails docs.
I just created a JIRA in the Grails project to fix the documentation: http://jira.codehaus.org/browse/GRAILS-3526

Hope it can be fixed for the GA release of NetBeans 6.5

Workaround is to use the command prompt to create the taglib.
Comment 3 marceloverdijk 2008-10-31 13:11:09 UTC
Typo: I meant I'm using Grails 1.0.3 and it should be really grails create-taglib (and not create-tag-lib)

Comment 4 Petr Hejl 2008-10-31 13:13:47 UTC
Please can you be more specific about the bug and steps to reproduce?

In my Grails 1.0.3 "grails create-tag-lib" works just fine form NetBeans as well as from command line. It is perfect
match with documentation and also "grails help" provide following:

Welcome to Grails 1.0.3 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /home/sickboy/frameworks/grails-1.0.3		
		
Base Directory: /media/data/release65
Note: No plugin scripts found
Running script /home/sickboy/frameworks/grails-1.0.3/scripts/Help.groovy
Environment set to development

		Usage (optionals marked with *): 
		grails [environment]* [target] [arguments]*

		Examples: 
		grails dev run-app	
		grails create-app books

		Available Targets (type grails help 'target-name' for more info):
...
grails create-app
grails create-controller
grails create-domain-class
grails create-integration-test
grails create-plugin
grails create-script
grails create-service
grails create-tag-lib
grails create-unit-test
...
Comment 5 Petr Hejl 2008-10-31 13:20:12 UTC
Are you sure that you (or some program) haven't renamed CreateTagLib.groovy to CreateTaglib.groovy as the command is
derived from script name?

To be sure I've just downloaded the fresh Grails 1.0.3 from the website and it contains CreateTagLib.groovy, so the
command is create-tag-lib. I think grails doc as well the IDE are fine.
Comment 6 marceloverdijk 2008-10-31 13:30:06 UTC
This is getting funny ;-)

I also just found out that my Grails scripts folder contained CreateTagLib.groovy.

So Groovy plugin and Grails docs are fine indeed. No issue at all. However cannot explain my problem for now.
I'm using a unchanged Grails package.





Comment 7 marceloverdijk 2008-10-31 13:38:58 UTC
Found the problem. It was related to compiled script classes in my documents.
After clearing the cache everything works fine (both from Netbeans and command line).

I cannot explain why my Grails folder contained CreateTagLib.groovy and my compiled cached scripts CreateTaglib****

I also got confused by (old Grails documentation) http://grails.org/Command+Line where it's stated to use create-
taglib.

Sorry for confusion.