apache / apache/grails-intellij-plugin

Groovyc error in Grails project

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

Description

I've got a project that builds and run fine from the console, both grails run-app and grails test-app compile and run correctly.

In Idea 12 and 13 (130.1619) the file UrlMappingsSpec I get this error:

Groovyc: Only classes and closures can be used for attribute 'value' in @grails.test.mixin.TestFor

This shows up as a red line and means that I can't build and run tests in idea.

This happens in my full project, attached is a small sample project with the same problem.

---

*Imported from [IDEA-112774](https://youtrack.jetbrains.com/issue/IDEA-112774) · Type: Bug · 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 importing the attached sample project into IDEA 12 or 13 and compare the IDE compiler output for UrlMappingsSpec with grails run-app and grails test-app. Done means the IDE can build and run the tests without the Groovyc/TestFor error while the console commands continue to work.

Written by the indexing model from the issue text.

Assessment

Domain
testing, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.