apache / apache/grails-intellij-plugin

Let the user configure the Grails SDK when the Grails SDK is incorrect or missing and the user runs the Grails Run Configuration

Open
#358 0 comments 0 reactions 0 assignees View on GitHub
imported-from-youtrack usability
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

Support feedback:
> I realized that I had the wrong version of java and grails (8 and 4) on my system and removed those from path/home.
when I try to run I see "Run Configuration Error: Cannot execute ".
I installed 2020 1, and then tried loading the project with that. This time I got further (I thought). It now was not finding the Application. I decided to rebuild the project, so I chose "Rebuild all". It claimed that it could not find a groovy compiler.
After much experimenting with "build all" I finally was able to get to the point (using 2020 1) where I could see the "there is no grails configured for your project". I don't know what triggered this. At that point I was able to add grails and it started working
It looks like maybe I have it working, but this was a massively painful process. I suggest that when the "Run/Debug configurations" dialog knows there is a problem, it should have a direct link added into the "reattach grails sdk from scratch" code.

The steps to reproduce:

1. Open a Grails 2 project and set up a Grails SDK.
2. Rename that Grails SDK folder name in an external file manager
3. Click the Grails run configuration.

Actual result:
An error " Error running 'Grails: app_name': Cannot execute: ...` shows.

Expected result:
Tell the user the Grails SDK path is incorrect and let the user reconfigure it.

Though the IDEA would show "Configure Grails SDK" when reopening the project or use `Tools | Grails` can configure it too, the user may have no idea how to solve this problem when experiencing this issue.

---

*Imported from [IDEA-248024](https://youtrack.jetbrains.com/issue/IDEA-248024) · Type: Usability Problem · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Grails 2 run configuration failure after renaming the configured SDK folder, then trace the Grails run configuration and SDK reconfiguration flow. Done means the run configuration identifies the invalid SDK path and provides a direct way to reconfigure the Grails SDK, with the existing project setup and Tools | Grails flow still working.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.