apache / apache/grails-intellij-plugin

AE at org.jetbrains.plugins.grails.config.GrailsSettingSynchronizer.getBuildConfigFile(GrailsSettingSynchronizer.java:117)

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

Description

**143.1015**

Got this exception quite often at Gradle sync (in Gradle projects with Grails2 integration), can't exactly describe details.

null

java.lang.AssertionError

```
at org.jetbrains.plugins.grails.config.GrailsSettingSynchronizer.getBuildConfigFile(GrailsSettingSynchronizer.java:117)
at org.jetbrains.plugins.grails.config.GrailsSettingSynchronizer.getBuildConfigText(GrailsSettingSynchronizer.java:103)
at org.jetbrains.plugins.grails.config.GrailsSettingSynchronizer.syncGrailsSettings(GrailsSettingSynchronizer.java:148)
at org.jetbrains.plugins.grails.config.GrailsFramework.forceSynchronizationSetting(GrailsFramework.java:160)
at org.jetbrains.plugins.grails.gradle.GrailsModuleGradleDataService.configureGrailModule(GrailsModuleGradleDataService.java:129)
at org.jetbrains.plugins.grails.gradle.GrailsModuleGradleDataService.access$000(GrailsModuleGradleDataService.java:56)
at org.jetbrains.plugins.grails.gradle.GrailsModuleGradleDataService$1.execute(GrailsModuleGradleDataService.java:90)
at com.intellij.openapi.externalSystem.util.DisposeAwareProjectChange.run(DisposeAwareProjectChange.java:36)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$9$1.run(ExternalSystemApiUtil.java:489)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1002)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$9.run(ExternalSystemApiUtil.java:486)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:158)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:337)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:321)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:866)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
```

---

*Imported from [IDEA-148431](https://youtrack.jetbrains.com/issue/IDEA-148431) · Type: Exception · 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 at `GrailsSettingSynchronizer.getBuildConfigFile` in `GrailsSettingSynchronizer.java:117`, then follow the calls from `getBuildConfigText` and `syncGrailsSettings` shown in the stack trace. Reproduce during Gradle sync in a Gradle project with Grails 2 integration and determine what condition triggers the assertion; done means that sync no longer throws the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.