grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.78k stars 950 forks source link

Grails 6 m4 doesn't start by default in intellij idea #12995

Open fernando88to opened 1 year ago

fernando88to commented 1 year ago

Expected Behavior

After creating a project with version 6M4 and importing it into Intellij IDEA the same project is successfully imported and successfully recognized as a grails project, however when pressing "start" an error is thrown because the "run- app".

So I had to configure the "booRun" task to run the project through Intellij IDEA.

Wouldn't it be interesting for the "grails run-app" command to work, because that way it will already be recognized by Intellij Idea?

Novice users will not know how to configure it or even other intermediate users may have to research it.

Remembering that Intellij IDEA is the best working tool for Grails currently and it would be interesting if it already works with Grails projects without any extra programmer configuration by default.

Actual Behaviour

Throws an error when pressing start in Intellij IDEA, requiring extra configuration for the project to run.

Steps To Reproduce

  1. Create project
  2. Import project into Intellij IDEA
  3. Start the project from Intellij IDEA

Environment Information

No response

Example Application

No response

Version

6m4

puneetbehl commented 11 months ago

Could you please verify it with Grails 6.1.0

skotom commented 11 months ago

Hi. I can confirm that the above doesn't work in 6.1.0 unless you add your own config (gradlew bootRun). I created this app using Grails app forge. But this doesn't bother me so much. My problem is when I tried to create a controller using IntelliJ (Build #IU-232.10203.10) I end up getting this error: "Could not resolve all dependencies for configuration ':profile'". error I presume that the grails plugin for intelli j is not updated. And it tries to create controller using create-controller command which doesn't work when you create app using Grails App Forge. I also can't find any documentation on differences between an app created with Grails App Forge and app created using grails create-app.