Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: GSP Tags not recognized by STS?

  1. #1
    Join Date
    Jan 2010
    Posts
    4

    Question GSP Tags not recognized by STS?

    Hi,

    I've just installed and started using the latest version STS with Grails 1.2-M4.

    So first, congrats (to SpringSource team) for this great product. The installation has worked smoothly and the Groovy editing is great.

    However, I encounter some warnings when opening my GSP pages :

    All of the Grails core gsp tag libs are not recognized by STS. For each tag, there is a warning saying
    Unknown tag (g:message)
    So :
    1 - What can I do to make STS recognize these tags?
    2 - If not possible, how to disable these annoying warnings?
    3 - I got the same kind of warnings for my own custom tag and GSP comments (%{--.....--}%)...so I'd like a solution for that as well


    Thank you very much for your help,

    Fabien

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    Hi Fabien,

    Grails support is still a bit experimental. I'd recommend that you upgrade to the latest nightly snapshot. We have recently made a few changes to Grails tooling that may address your problem.

    Here is the url for the nightly update site:
    http://dist.springsource.com/snapshot/STS/nightly/e3.5

    I'm happy to have a deeper look if you are still having problems.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    I forgot to mention that you should also update your Groovy-Eclipse to the latest snapshot from this update site:

    http://dist.codehaus.org/groovy/dist...snapshot/e3.5/
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  4. #4
    Join Date
    Jan 2010
    Posts
    4

    Default

    Hi Andrew,

    Thanks for your help but the links you gave to me do not work (http://dist.springsource.com/snapshot/STS/nightly/e3.5) responds an 'access denied' and http://dist.codehaus.org/groovy/dist...snapshot/e3.5/ has only 2 xml files (compositeArtifacts and compositeContents)

    Fabien

  5. #5
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    Add these two urls to your update manager in STS.

    Help -> Install New Software...

    1. In the section that says "Work with", add the Groovy-Eclipse URL first.
    2. Install all the required features.
    3. No need to restart
    4. Now add the STS link
    5. Look for the grails feature and install that.
    6. Restart
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  6. #6
    Join Date
    Jul 2011
    Posts
    7

    Default

    Bit of thread necromancy here, but I'm using the latest release of STS (2.7.1) and I get warnings for GSP tags. It says that I'm using the GSP editor, it's just that I get these same "Unknown tag" messages for things like <g:form>.

    I'm working in a project that I created from a Maven archetype and then imported into the workspace, if that affects things. Thanks.

  7. #7
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    What version of Grails? GSP support is not yet working on 1.4/2.0.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  8. #8
    Join Date
    Jul 2011
    Posts
    7

    Default

    Quote Originally Posted by Andrew Eisenberg View Post
    What version of Grails? GSP support is not yet working on 1.4/2.0.
    Should be 1.3.7.

  9. #9
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    This problem happens when the source code for the grails jars is not available (this is the current problem for 1.4/2.0). To see if this is the problem that you are having, try to open the FormatTagLib type. Do you see source code?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  10. #10
    Join Date
    Jul 2011
    Posts
    7

    Default

    Quote Originally Posted by Andrew Eisenberg View Post
    To see if this is the problem that you are having, try to open the FormatTagLib type. Do you see source code?
    It looks like there's two copies of that on my classpath: the one from Ivy and the one from Maven. The source is not available in the jar from Maven.

    If I go into the project properties and change the classpath loading order so that "Grails dependencies" is higher than "Maven dependencies," the warning goes away.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •