-
Notifications
You must be signed in to change notification settings - Fork 18
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
Configuring IntelliJ to use cofoja #45
Comments
Can you dump the produced javac command line and show me what options are actually passed to the compiler? I think you should be able to invoke maven by hand with a debug flag (-X maybe?). |
I can't figure out how to show the exact
|
Hum, so if I understand correctly, the problem seems to be that you don't You may want to write a script or something that syncs the Cofoja classpath Hope that helps, On Mon, Jul 6, 2015 at 4:22 PM, Sean Glover notifications@github.com
|
For some reason IntelliJ doesn't like the classoutput path being set. I'd recommend sticking with Eclipse. Aside from that, another overall problem is that cofoja won't work with Java 8 since some things are now missing in the tools.jar. i.e. Make sure to configure IntelliJ to Java 7 and you'll see the below stack trace. This is a great library compared to other DBC frameworks, sucks that certain things don't work..
|
I was able to successfully configure IntelliJ. Thanks for both your help. I had to configure Annotation Processors for the current project. It was enabled by default, but without the appropriate configuration required for I took a screenshot of my configuration: IntelliJ's resulting build log: 2015-07-12 14:04:11,448 [ 1223] DEBUG - s.incremental.java.JavaBuilder - Compiling chunk [cofoja-example] with options: "-g -deprecation -encoding UTF-8 -source 1.7 -target 1.7 -Acom.google.java.contract.sourcepath=/home/seglo/source/cofoja-example/src/main/java -Acom.google.java.contract.classpath=/home/seglo/.m2/repository/io/konverge/cofoja/2.0.0/cofoja-2.0.0.jar -Acom.google.java.contract.classoutput=/home/seglo/source/cofoja-example/target/classes -s /home/seglo/source/cofoja-example/target/generated-sources/annotations" I pushed the fork of Nas's https://github.com/seglo/cofoja-example One question for @nkavian: Why does EDIT: My project's .idea/compiler.xml: <?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
<profile default="false" name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<option name="com.google.java.contract.classoutput" value="$PROJECT_DIR$/target/classes" />
<option name="com.google.java.contract.classpath" value="$MAVEN_REPOSITORY$/io/konverge/cofoja/2.0.0/cofoja-2.0.0.jar" />
<option name="com.google.java.contract.sourcepath" value="$PROJECT_DIR$/src/main/java" />
<processorPath useClasspath="true" />
<module name="cofoja-example" />
</profile>
</annotationProcessing>
<bytecodeTargetLevel>
<module name="cofoja-example" target="1.7" />
</bytecodeTargetLevel>
</component>
</project> |
If I clone your project in my intellij will it work? Because I cloned it and I am still getting the same... |
+1 |
I'm fairly new to IntelliJ. When attempting to use cofoja code annotations I receive the following errors when building.
My project is targeting Oracle JDK 1.7. I'm using cofoja 1.1 r-150 and IntelliJ 14.1.4.
Here's a sample cofoja project that compiles fine with maven, but that I cannot build in IntelliJ.
https://github.com/konvergeio/cofoja-example
The text was updated successfully, but these errors were encountered: