Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails setting synchronization failed. Failed to create /Users/<username>/.grails/scripts/IdeaPrintProjectSettings.groovy

I have imported a grails project in Intellij. After importing the project I'm getting this error "Grails setting synchronization failed. Failed to create /Users//.grails/scripts/IdeaPrintProjectSettings.groovy"

I tried cloning the project at other location and then importing, but same issue. I also tried invalidate Caches/restart. But the issue is still there.

like image 319
bablu Avatar asked Sep 06 '25 03:09

bablu


1 Answers

  • Select File | Project Structure

  • In Project Settings select 'Modules' then select your module

  • In Dependencies make sure that Grails is added as a library

  • Then Go to C:\Users\user.grails or in your case /Users//.grails and create an empty folder and call it scripts

  • Go to IntelliJ Right click on the project | Grails | Synchronize Grails Settings

It should work now!

like image 154
Abir.d Avatar answered Sep 08 '25 23:09

Abir.d