<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Problems with build</title>
		<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build</link>
		<description>Posts in the discussion thread &quot;Problems with build&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 10 Aug 2026 10:55:04 +0000</lastBuildDate>
		
					<item>
				<guid>http://kogics.wikidot.com/forum/t-230103#post-877194</guid>
				<title>Re: Problems with build</title>
				<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build#post-877194</link>
				<description></description>
				<pubDate>Mon, 20 Sep 2010 04:45:38 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Please stay with Netbeans 6.8. There's been an API change between 6.8 and 6.9 that makes Kojo not work with Netbeans 6.9.</p> <p>I haven't had a chance to dig into this (I'm expecting that I'll have to dive into the <em>Netbeans API wormhole</em> to figure the incompatibility out; something that I'm hoping that I can delay till the release of the next version of Netbeans, to make the effort worth it).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-230103#post-877063</guid>
				<title>Re: Problems with build</title>
				<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build#post-877063</link>
				<description></description>
				<pubDate>Mon, 20 Sep 2010 01:42:47 +0000</pubDate>
				<wikidot:authorName>Robert Smart</wikidot:authorName>				<wikidot:authorUserId>561498</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Just for the record, I tried using the latest versions of stuff (netbeans 6.9.1, scala 2.8, the scala plugin mentioned in the update at the bottom of <a href="http://www.scala-notes.org/2010/06/scala-on-netbeans-6-9/">http://www.scala-notes.org/2010/06/scala-on-netbeans-6-9/</a>). It couldn't clean-build kojo. Final error was</p> <p>/Applications/NetBeans/NetBeans 6.9.1.app/Contents/Resources/NetBeans/harness/build.xml:168: Cannot compile against a module: /Applications/NetBeans/NetBeans 6.9.1.app/Contents/Resources/NetBeans/ide/modules/org-netbeans-modules-csl-api.jar because of dependency: org.netbeans.modules.csl.api/1 &gt; 1.11.1.1.1.1.1<br /> BUILD FAILED (total time: 12 seconds)</p> <p>I'll try again and follow the instructions this time :-).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-230103#post-736714</guid>
				<title>Re: Problems with build</title>
				<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build#post-736714</link>
				<description></description>
				<pubDate>Sun, 28 Mar 2010 12:51:08 +0000</pubDate>
				<wikidot:authorName>Peter Lewerin</wikidot:authorName>				<wikidot:authorUserId>459742</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>&lt;HomerSimpson&gt;D'OH!&lt;/HomerSimpson&gt;</p> <p>Works like a charm now. StupidSexyMercurial named it peterlewerin-staging and I didn't change it.</p> <p>Thanks!</p> <p>Well, back to polluting the clone with my own code and creating my very own troubles&#8230; :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-230103#post-736696</guid>
				<title>Re: Problems with build</title>
				<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build#post-736696</link>
				<description></description>
				<pubDate>Sun, 28 Mar 2010 12:13:51 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>java.lang.IllegalStateException: Unknown Install Dir<br /> at net.kogics.kojo.util.Utils$$anonfun$installDir$2.apply(Utils.scala:89)<br /> at net.kogics.kojo.util.Utils$$anonfun$installDir$2.apply(Utils.scala:89)<br /> at scala.Option.getOrElse(Option.scala:59)</p> </blockquote> <p>That's the problem.</p> <p>Take a look at the installDir method in net.kogics.kojo.util.Utils. The exception is coming out of there. Maybe your source root dir is not called kojo or Kojo?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-230103#post-736664</guid>
				<title>Re: Problems with build</title>
				<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build#post-736664</link>
				<description></description>
				<pubDate>Sun, 28 Mar 2010 10:49:29 +0000</pubDate>
				<wikidot:authorName>Peter Lewerin</wikidot:authorName>				<wikidot:authorUserId>459742</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>These are known rough edges in the Netbeans Scala Plugin.</p> </blockquote> <p>Ah. I usually my own configuration first and the tool last, but the plugin is of course still being developed.</p> <blockquote> <p>Do you still see this (if so, please provide a stacktrace)?</p> </blockquote> <p>Yep, unfortunately.</p> <p>On startup:</p> <div class="code"> <pre><code>java.lang.IllegalStateException: Unknown Install Dir at net.kogics.kojo.util.Utils$$anonfun$installDir$2.apply(Utils.scala:89) at net.kogics.kojo.util.Utils$$anonfun$installDir$2.apply(Utils.scala:89) at scala.Option.getOrElse(Option.scala:59) at net.kogics.kojo.util.Utils$.installDir(Utils.scala:89) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.createCp(ScalaCodeRunner.scala:250) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anon$1.classpathDefault(ScalaCodeRunner.scala:204) at scala.tools.nsc.ScalacSettings$class.$init$(Settings.scala:830) at scala.tools.nsc.Settings.&lt;init&gt;(Settings.scala:15) at scala.tools.nsc.Settings.&lt;init&gt;(Settings.scala:16) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anon$1.&lt;init&gt;(ScalaCodeRunner.scala:203) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.initInterp(ScalaCodeRunner.scala:203) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1$$anonfun$apply$1.apply(ScalaCodeRunner.scala:153) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1$$anonfun$apply$1.apply(ScalaCodeRunner.scala:153) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.safeProcess(ScalaCodeRunner.scala:136) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1.apply(ScalaCodeRunner.scala:152) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1.apply(ScalaCodeRunner.scala:147) at scala.actors.Actor$class.receive(Actor.scala:468) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.receive(ScalaCodeRunner.scala:129) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.act(ScalaCodeRunner.scala:147) at scala.actors.Reaction$$anonfun$$init$$1.apply(Reaction.scala:31) at scala.actors.Reaction$$anonfun$$init$$1.apply(Reaction.scala:29) at scala.actors.ReactorTask.run(ReactorTask.scala:33) at scala.concurrent.forkjoin.ForkJoinPool$AdaptedRunnable.exec(ForkJoinPool.java:611) at scala.concurrent.forkjoin.ForkJoinTask.quietlyExec(ForkJoinTask.java:422) at scala.concurrent.forkjoin.ForkJoinWorkerThread.mainLoop(ForkJoinWorkerThread.java:340) [catch] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:325)</code></pre></div> <p>After writing &quot;forw&quot; + Ctrl-Space:</p> <div class="code"> <pre><code>java.lang.NullPointerException at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$2.apply(ScalaCodeRunner.scala:316) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$2.apply(ScalaCodeRunner.scala:316) at net.kogics.kojo.xscala.InterpOutputHandler.withOutputSuppressed(ScalaCodeRunner.scala:698) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.completions(ScalaCodeRunner.scala:315) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.builtinsCompletions(ScalaCodeRunner.scala:306) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.methodCompletions(ScalaCodeRunner.scala:329) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1$$anonfun$apply$2.apply(ScalaCodeRunner.scala:186) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1$$anonfun$apply$2.apply(ScalaCodeRunner.scala:186) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.safeProcess(ScalaCodeRunner.scala:136) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1.apply(ScalaCodeRunner.scala:185) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1.apply(ScalaCodeRunner.scala:147) at scala.actors.Actor$class.receive(Actor.scala:468) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.receive(ScalaCodeRunner.scala:129) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.act(ScalaCodeRunner.scala:147) at scala.actors.Reaction$$anonfun$$init$$1.apply(Reaction.scala:31) at scala.actors.Reaction$$anonfun$$init$$1.apply(Reaction.scala:29) at scala.actors.ReactorTask.run(ReactorTask.scala:33) at scala.concurrent.forkjoin.ForkJoinPool$AdaptedRunnable.exec(ForkJoinPool.java:611) at scala.concurrent.forkjoin.ForkJoinTask.quietlyExec(ForkJoinTask.java:422) at scala.concurrent.forkjoin.ForkJoinWorkerThread.mainLoop(ForkJoinWorkerThread.java:340) [catch] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:325)</code></pre></div> <p>Writing &quot;forward(100)&quot; + Enter and clicking the run icon:</p> <div class="code"> <pre><code>java.lang.NullPointerException at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.interpretAllLines(ScalaCodeRunner.scala:282) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.interpret(ScalaCodeRunner.scala:286) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1.apply(ScalaCodeRunner.scala:162) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor$$anonfun$act$1.apply(ScalaCodeRunner.scala:147) at scala.actors.Actor$class.receive(Actor.scala:468) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.receive(ScalaCodeRunner.scala:129) at net.kogics.kojo.xscala.ScalaCodeRunner$InterpActor.act(ScalaCodeRunner.scala:147) at scala.actors.Reaction$$anonfun$$init$$1.apply(Reaction.scala:31) at scala.actors.Reaction$$anonfun$$init$$1.apply(Reaction.scala:29) at scala.actors.ReactorTask.run(ReactorTask.scala:33) at scala.concurrent.forkjoin.ForkJoinPool$AdaptedRunnable.exec(ForkJoinPool.java:611) at scala.concurrent.forkjoin.ForkJoinTask.quietlyExec(ForkJoinTask.java:422) at scala.concurrent.forkjoin.ForkJoinWorkerThread.mainLoop(ForkJoinWorkerThread.java:340) [catch] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:325)</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-230103#post-736514</guid>
				<title>Re: Problems with build</title>
				<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build#post-736514</link>
				<description></description>
				<pubDate>Sun, 28 Mar 2010 04:21:46 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>I get several problem tasks that report missing symbols (e.g. Point, method instance() in Singleton subclasses</p> </blockquote> <p>These are known rough edges in the Netbeans Scala Plugin.</p> <blockquote> <p>the build succeeds and I can run Kojo, but I almost immediately get an NPE or Illegal State Exception</p> </blockquote> <p>Do you still see this (if so, please provide a stacktrace)? Or can you run Kojo successfully now?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-230103#post-736289</guid>
				<title>Problems with build</title>
				<link>http://kogics.wikidot.com/forum/t-230103/problems-with-build#post-736289</link>
				<description></description>
				<pubDate>Sat, 27 Mar 2010 19:49:11 +0000</pubDate>
				<wikidot:authorName>Peter Lewerin</wikidot:authorName>				<wikidot:authorUserId>459742</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've installed NetBeans 6.8 (taking care to avoid spaces in path names) and the Scala plugin. When I try to build Kojo I get several problem tasks that report missing symbols (e.g. Point, method instance() in Singleton subclasses). Most of these disappear if I open the source file that defines the class or symbol, but others remain. Still, the build succeeds and I can run Kojo, but I almost immediately get an NPE or Illegal State Exception.</p> <p>I've made a slight change to ScalaCodeRunner.scala; in Builtins I changed the declaration of Random and added two methods:</p> <div class="code"> <pre><code> private val Random = new scala.util.Random import scala.math._ def random[A] (upperBound: A)(implicit n: Numeric[A]): A = { val ub = n.toDouble(upperBound) if (upperBound.isInstanceOf[Int]) (Random.nextInt(ub.toInt)).asInstanceOf[A] else if (upperBound.isInstanceOf[Float]) (Random.nextFloat * ub.toFloat).asInstanceOf[A] else (Random.nextDouble * ub).asInstanceOf[A] } def random[A] (lowerBound: A, upperBound: A)(implicit n: Numeric[A]): A = { val lb = n.toDouble(lowerBound) val ub = n.toDouble(upperBound) - lb val r = lb + random(ub) if (upperBound.isInstanceOf[Int]) r.toInt.asInstanceOf[A] else if (upperBound.isInstanceOf[Float]) r.toFloat.asInstanceOf[A] else r.asInstanceOf[A] }</code></pre></div> <p>If I can't get it to work I'll try reverting the change, but it doesn't seem likely that the above should be causing the problems mentioned.</p> <p>Any ideas?</p> <p>EDIT: I've reverted to revision 175 of KojoEnv now, and that actually made the reports about Point go away, but NB still can't find RunContext or CodeRunner unless I open core/codeRunner.scala in a window. And nothing I do makes the instance method visible, apparently. Curious.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>