apache / apache/grails-intellij-plugin

Cannot compile grails project using groovy-eclipse-batch

Open
#282 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

Good morning,
I am not able to compile project using groovy eclipse compiler (groovy-eclipse-batch-2.4.3-01.jar). I get following errors
`2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: Caused by: java.lang.ClassNotFoundException: junit.framework.TestCase
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ... 53 more
2016-12-09 16:27:01,069 [4514581] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ... 53 more `

_⚠️ attachment `image.png` was not included in the export_

It is reproducable by creating basic grails project using commands:
`grails create-plugin simple
cd simple/
grails integrate-with –intellij
grails create-domain-class Book`
then opening project in IDEA, changing compiler to groovy-eclipse-batch and running the BookSpec test

What I tried:
1. adding junit-4.4 jar as module depandency
2. inserting all junit classes into groovy-eclipse-batch-2.4.3-01.jar
3. changing 'project bytecode version' 1.7/1.8

IDEA version:
IntelliJ IDEA 2016.2.5
Build #IU-162.2228.15, built on October 14, 2016
JRE: 1.8.0_112-release-287-b2 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Please help :)
Cheers,
Michael

---

*1 attachment(s) referenced here (`image.png`) are not part of the CSV export.*
*Imported from [IDEA-165429](https://youtrack.jetbrains.com/issue/IDEA-165429) · 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

Reproduce the failure with the listed Grails commands, IntelliJ IDEA 2016.2.5, and groovy-eclipse-batch-2.4.3-01.jar, then run the generated BookSpec test. Start from the compiler integration and the ClassNotFoundException for junit.framework.TestCase; done means the basic Grails project compiles and BookSpec runs with that compiler.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.