Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37

Thread: STS 2.2.0 isn't configuring grails plugins in classpath

  1. #21
    Join Date
    Nov 2009
    Posts
    4

    Default

    I am now able to create a Grails project.

    I also changed my workspace so that it doesn't have a space in the pathname. Didn't do that separately, so I don't know if the pathname of the workspace is also an issue.

    Now I have to find out why the "Open Grails Command Prompt" has no apparent effect

  2. #22
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Quote Originally Posted by jwb View Post
    Now I have to find out why the "Open Grails Command Prompt" has no apparent effect
    Very likely because you are running into the following bug; ah missing feature now:

    STS-604: Grails Command prompt doesn't popup when no groovy file is open
    https://issuetracker.springsource.com/browse/STS-604

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #23
    Join Date
    Nov 2009
    Posts
    4

    Default

    Thank you!! I wanted to start by creating a domain class, so I didn't have any Groovy files at all.

  4. #24
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    I wanted to start by creating a domain class, so I didn't have any Groovy files at all.
    There should be at least some files in the grails-app/conf directory. Open one of those and then use CMD+G. That should get you started until we find a solution for the Command Prompt.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  5. #25
    Join Date
    Nov 2009
    Posts
    13

    Default

    Hi,

    Quote Originally Posted by Christian Dupuis View Post
    if you update the STS' Grails Support from the nightly snapshot update site you'll should not see the path problems anymore.
    this did not solve the problem that the necessary plugin directories are not linked into the project (observed only with grails 1.2 projects)

    zyro

  6. #26
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    zyro,

    would it be possible to get a sample project showing the issue in your project?

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  7. #27
    Join Date
    Nov 2009
    Posts
    13

    Default

    Hi Christian,

    before i package some project could give u the steps to reproduce (time to verify will be ~2minutes)

    - using grails 1.2 snapshot. same with m4...
    - new -> grails project (select a 1.2 grails distro)
    - install-plugin acegi
    - create-auth-domains User Role Requestmap
    (this generates some domains controllers etc.)
    - prj context -> grails -> refresh dependencies

    now i get errors e.g. in loginController because it tries to import classes from the acegi (springsecurity) plugin...
    --> this is no problem using grails-1.1.1 because here the plugin folders are correctly linked in.

    i hope now this is not plugin-specific because in my situation, this is the only plugin where classes are imported from.

    [EDIT:] If i open the navigator view, i see _no_ linked plugin folder. no matter which plugin, classimport or not.
    the only difference is if a plugin class is imported the error get obvious as project error [/EDIT..]

    zyro
    Last edited by zyro; Nov 21st, 2009 at 10:05 AM. Reason: additonal information

  8. #28
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    zyro,

    I just followed your steps and it is working fine for me. Note, I don't have any compilation errors in my LoginController (see attached screenshot).

    Can you post the dependencies that STS has calculated? You can find the dependency describtor in <workspace>/.metadata/.plugins/com.springsource.sts.grails.core/<projectname>-dependencies.xml.

    Please also check that your acegi plugin has all the required dependencies in the $USER_HOME/.grails directory.

    Christian
    Attached Images Attached Images
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  9. #29
    Join Date
    Nov 2009
    Posts
    13

    Default

    Hi,

    Problem solved. At least for the moment...

    i tried again the grails-1.2-m4 dev release and there it worked again.. seems like something changed from m4 to current snapshot of grails 1.2 that prevents the plugin folder being linked in

    Christian: With which grails 1.2 rls did you test it?

    zyro

  10. #30
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Quote Originally Posted by zyro View Post
    Christian: With which grails 1.2 rls did you test it?
    hey zyro, I tested with the 1.2.0.M4 version. I will test with a later snapshot build and report back.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

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
  •