Results 1 to 5 of 5

Thread: 2.5.0 install and Grails project import issues

  1. #1
    Join Date
    Mar 2006
    Posts
    28

    Default 2.5.0 install and Grails project import issues

    Just installed 2.5.0 on 2 XP PCs, no dashboard is shown at start up. Maybe that needs to be fixed in the next update?

    The page http://www.grails.org/STS+Integration was a huge help to get started.

    On my second install, I skipped the "new project" phase since I had an existing project but I can't find a way to add the Grails nature. It's not in the "Configure->Convert to Grails support". I have 2 errors showing on my project and I can't get rid of them: one is on resources.groovy, first line: "// Place your Spring DSL code here" and the other one is on an empty folder grails-app>utils.

    Any idea on how to set the Grails nature on my project or fix these 2 false errors?

    Not sure who is maintaining that page, but it would be really helpful to update it. I think the "Create Project from existing source" doesn't exist anymore and I almost deleted my existing project by selected the option that replaces it (it runs "grails create-app").


    Thanks

    Fred

  2. #2
    Join Date
    May 2010
    Posts
    413

    Default

    To create a project from existing source, you should be able to use the "New Grails Project" or "New Grails Plugin Project" wizard.

    If you point this wizard to file system location where there is already a grails project it will create and setup an eclipse project with the contents of this folder.

    The "Convert to Grails Project" has been buggy. The problem with it is that depending on what is "broken" with a user's project a different fix may be needed. In other words, it is not easy to know whether we really cover all possible ways in which a user's config files may be broken.

    Very recently I fixed a bug in this code that made it break if the project didn't have Java nature to start with. To get this fix, you'd need to update from the nightly update site (it isn't in the 2.5.0 yet, but will be in 2.5.1.

    It would actually be great if you could try this out and if it isn't fixing your problem, we should look into it more (perhaps it presents another opportunity to make this command better at fixing issues with project setup).

    After you update to the nightly update site, I suggest you try to "Convert to Grails Project" again and see what happens.

    Kris
    Kris De Volder -- SpringSource

  3. #3
    Join Date
    Mar 2006
    Posts
    28

    Default

    I can't find a "convert to Grails Project" in 2.5.0. Under "Configure" there are: convert to Javascript, Plugin or AspectJ. No Grails conversion or nature anywhere.

    Is it only in the nightly build?

    Thanks

    Fred

  4. #4
    Join Date
    May 2010
    Posts
    413

    Default

    That menu should be there even in 2.5.0 release. The menu command has been there for a long time. But it was buggy. The nightly build should have the fix (for at least one bug with it :-).

    If you are not seeing the menu something else is wrong with your setup. Are you sure you have installed Groovy / Grails support already?

    You say you also are not seeing the "Convert to Groovy" under configure? This seems to mean that you don't have Groovy Eclipse installed yet. (and since it is prerequisite for Grails tooling, probably not installed Grails tooling either).

    You can also check this: if you do "Windows >> Open Perspective >> Other" among the list of available perspectives, do you see "Grails"? If you do not, I would guess maybe you skipped the step of installing the Groovy and Grails stuff from the Extensions page. Either that or the install somehow went wrong.
    Kris De Volder -- SpringSource

  5. #5
    Join Date
    May 2010
    Posts
    413

    Default

    Just in case (this info is sometimes hard to find :-)

    This is the nightly update site for grails tooling:

    http://dist.springsource.com/snapsho...S/nightly/e3.6

    Using this you should be able to upgrade your STS to the latest nightly grails tooling support (or install it if it isn't already installed).
    Kris De Volder -- SpringSource

Posting Permissions

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