James, thanks for the additions to the main README.md file that describe how to get your dev environment setup for working on Kotlin.
I’m still having trouble, however.
I want to fork the project and work on some library tests. So I do that on github, then do this from the top level directory:
$ for i in update_dependencies build; do ant -f $i.xml; done; (cd libraries/; mvn clean package)
Toward the end of the build, I see this failure:
``-------------------------------------------------------
T E S T S
-------------------------------------------------------
T E S T S
Running org.jetbrains.kotlin.site.GenerateSiteTest
Generating the site to ./src/main/templates/…/…/…/target/site
Processing css/bootstrap-responsive.css
Processing css/bootstrap-responsive.min.css
Processing css/bootstrap.css
Processing css/bootstrap.min.css
Processing developers.md
Processing img/glyphicons-halflings-white.png
Processing img/glyphicons-halflings.png
Processing index.html
Processing js/bootstrap.js
Processing js/bootstrap.min.js
Generating library KDocs to ./src/main/templates/…/…/…/target/site/versions/snapshot/apidocs
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.876 sec <<< FAILURE!
Results :
Tests in error:
testGenerateStdlibKDoc(org.jetbrains.kotlin.site.GenerateSiteTest)
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kotlin-project … SUCCESS [0.150s]
[INFO] stdlib … SUCCESS [21.807s]
[INFO] kunit … SUCCESS [2.300s]
[INFO] kdoc … SUCCESS [5.609s]
[INFO] kotlin-jdbc … SUCCESS [2.286s]
[INFO] website … FAILURE [5.098s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.895s
[INFO] Finished at: Tue Mar 13 09:03:31 PDT 2012
[INFO] Final Memory: 183M/342M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project website: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/petrovic/Projects/kotlin/libraries/website/target/surefire-reports for the individual test results.
with this in the junit report file:
``-------------------------------------------------------------------------------
Test set: org.jetbrains.kotlin.site.GenerateSiteTest
-------------------------------------------------------------------------------
Test set: org.jetbrains.kotlin.site.GenerateSiteTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.875 sec <<< FAILURE!
testGenerateStdlibKDoc(org.jetbrains.kotlin.site.GenerateSiteTest) Time elapsed: 1.277 sec <<< ERROR!
java.lang.RuntimeException: builtin library initialization failed: java.lang.NoClassDefFoundError: com/google/inject/Module
at org.jetbrains.jet.lang.types.lang.JetStandardLibrary.initialize(JetStandardLibrary.java:75)
at org.jetbrains.jet.compiler.JetCoreEnvironment.<init>(JetCoreEnvironment.java:60)
at org.jetbrains.jet.compiler.CompileEnvironment.<init>(CompileEnvironment.java:77)
at org.jetbrains.jet.cli.KotlinCompiler.exec(KotlinCompiler.java:85)
at org.jetbrains.kotlin.site.GenerateSiteTest.testGenerateStdlibKDoc(GenerateSiteTest.kt:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: java.lang.NoClassDefFoundError: com/google/inject/Module
at org.jetbrains.jet.lang.resolve.TopDownAnalysisContext.<init>(TopDownAnalysisContext.java:90)
at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.processStandardLibraryNamespace(TopDownAnalyzer.java:156)
at org.jetbrains.jet.lang.types.lang.JetStandardLibrary.<init>(JetStandardLibrary.java:144)
at org.jetbrains.jet.lang.types.lang.JetStandardLibrary.initialize(JetStandardLibrary.java:72)
… 27 more
Was my invocation of the build valid? If yes, how to provide the missing dependency? If not, can someone please point me in the right direction?
Sorry for the trouble, but if I can be a useful idiot on noob build issues, I’m willing and able