Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDEA fails to run Toast module #41

Open
arilotter opened this issue Apr 2, 2016 · 7 comments
Open

IDEA fails to run Toast module #41

arilotter opened this issue Apr 2, 2016 · 7 comments

Comments

@arilotter
Copy link

Following the instructions in the Wiki, after generating an IDEA project file, a Gradle module simulation build fails with the following error:
Exception in thread "main" java.lang.ClassNotFoundException: jaci.openrio.toast.core.ToastBootstrap
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)

@arilotter arilotter changed the title Java d IDEA fails to run Toast module Apr 2, 2016
@arilotter
Copy link
Author

I can fix the issue by adding the Toast jar as a compile dependency in the module settings.

@JaciBrunning
Copy link
Member

Can you please attach a copy of your build.gradle file?

@JaciBrunning
Copy link
Member

Also, which version of IntelliJ are you using?

@arilotter
Copy link
Author

`/**
This is the default build.gradle for Toast modules
@author Jaci
*/

buildscript {
repositories {
mavenCentral()
maven {
name = "GradleRIO"
url = "http://dev.imjac.in/maven"
}
}
dependencies {
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '+', classifier: 'Toast' //Change this line if you wish to Update GradleRIO
}
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'GradleRIO' //Apply the GradleRIO plugin

repositories {
maven {
name = "Toast"
url = "http://dev.imjac.in/maven"
}
}

gradlerio.team = "865" //Your FRC team number (e.g. 5333 for team 'Can't C#', or 47 for Chief Delphi)
//gradlerio.rioIP = "10.53.33.20" //Uncomment to specify the IP address of the RIO
gradlerio.deployFile = "toast/modules/${archivesBaseName}.jar"

dependencies {
compile group: 'jaci.openrio.toast', name: 'Toast', version: '+' //Change this line to update Toast
}
`

build.gradle generated by toast init,
running idea 15.0.5

@CS-5
Copy link

CS-5 commented Aug 15, 2016

IntelliJ IDEA 2016.2.1 here... same issue.

build.gradle:
`/**
This is the default build.gradle for Toast modules
@author Jaci
*/

buildscript {
repositories {
mavenCentral()
maven {
name = "GradleRIO"
url = "http://dev.imjac.in/maven"
}
}
dependencies {
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '+', classifier: 'Toast' //Change this line if you wish to Update GradleRIO
}
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'GradleRIO' //Apply the GradleRIO plugin

repositories {
maven {
name = "Toast"
url = "http://dev.imjac.in/maven"
}
}

gradlerio.team = "4050" //Your FRC team number (e.g. 5333 for team 'Can't C#', or 47 for Chief Delphi)
//gradlerio.rioIP = "10.53.33.20" //Uncomment to specify the IP address of the RIO
gradlerio.deployFile = "toast/modules/${archivesBaseName}.jar"

dependencies {
compile group: 'jaci.openrio.toast', name: 'Toast', version: '+' //Change this line to update Toast
}
`

@JaciBrunning
Copy link
Member

We've been having the same issue with other projects running the 2016 version of IntelliJ. It seems that the 'idea' gradle plugin is causing issues and breaking compatibility. If you run gradlew idea --refresh-dependencies, it may start working. I'll take a further look when I get around to updating my IntelliJ installation

@keplersj
Copy link

Have not been having this issue at all with GradleRIO and IntelliJ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants