<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gary Boone, PhD &#187; configgy</title>
	<atom:link href="http://garyboone.com/tag/configgy/feed/" rel="self" type="application/rss+xml" />
	<link>http://garyboone.com</link>
	<description>Clippings, code snippets, and other searchable web notes</description>
	<lastBuildDate>Mon, 21 Jun 2010 20:42:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Scala Eclipse Plugin Error: Scala Signature</title>
		<link>http://garyboone.com/2009/06/scala-eclipse-plugin-error-scala-signature/</link>
		<comments>http://garyboone.com/2009/06/scala-eclipse-plugin-error-scala-signature/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 22:54:28 +0000</pubDate>
		<dc:creator>gary</dc:creator>
				<category><![CDATA[Scala]]></category>
		<category><![CDATA[configgy]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://garyboone.com/2009/06/scala-eclipse-plugin-error-scala-signature/</guid>
		<description><![CDATA[Trying to start a program created with the eclipse Scala plugin, I saw an error that the main class couldn&#8217;t be found. That was cryptic, as there was a main. Stranger still, this is a program I had run successfully before. 
The first part of solving the problem was to look for clues in the [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both">Trying to start a program created with the eclipse Scala plugin, I saw an error that the main class couldn&#8217;t be found. That was cryptic, as there was a main. Stranger still, this is a program I had run successfully before. </p>
<p style="clear: both">The first part of solving the problem was to look for clues in the <em>Problems</em> view. Opening it, I saw this:</p>
<blockquote style="clear: both"><p>error while loading Configgy, Scala signature Configgy has wrong version expected: 5.0 found: 4.1 in /Users/&#8230;</p>
</blockquote>
<p style="clear: both">So the first error was due to the compilation failing and not producing a main class that eclipse could launch.</p>
<p>After further digging, the version error turned out to be caused by a mismatch between the Scala version (2.7.5) I used to compile the Configgy library and the Scala version (2.8) that the eclipse plugin used to compile the rest of the program. I didn&#8217;t install Scala 2.8, so how could this occur? The Scala plugin installs its own version of Scala. Because I had selected the nightly build version of the plugin, the Scala versions drifted apart during one of the eclipse updates. </p>
<p style="clear: both">You can tell which version the eclipse Scala plugin uses by looking at the jar name in the <em>eclipse/plugins</em> directory. Eg, <em>scala.tools.nsc_2.75.final.jar</em></p>
<p style="clear: both">The solution was to revert to the stable, release version of the plugin. Do that by using this url in the eclipse <em>Software Updates</em> | <em>Available Software</em> | <em>Manage Sites&#8230;</em> list. </p>
<blockquote style="clear: both"><p>http://www.scala-lang.org/scala-eclipse-plugin</p>
</blockquote>
<p style="clear: both">More complete directions <a href="http://www.scala-lang.org/node/94">here</a>.</p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://garyboone.com/2009/06/scala-eclipse-plugin-error-scala-signature/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using git to update Configgy and other github-hosted code</title>
		<link>http://garyboone.com/2009/06/using-git-to-update-configgy-and-other-github-hosted-code/</link>
		<comments>http://garyboone.com/2009/06/using-git-to-update-configgy-and-other-github-hosted-code/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 02:00:20 +0000</pubDate>
		<dc:creator>gary</dc:creator>
				<category><![CDATA[Scala]]></category>
		<category><![CDATA[configgy]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://garyboone.com/2009/06/using-git-to-update-configgy-and-other-github-hosted-code/</guid>
		<description><![CDATA[It&#8217;s easy to use and update the git version of Configgy and other code hosted at github. If you don&#8217;t have git, you can use MacPorts to install it:
$ sudo port install git

Then clone the Configgy repository with 
$ git clone git://github.com/robey/configgy.git 

Then cd into the top-level directory and build as described below.
When you want [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both">It&#8217;s easy to use and update the <em>git</em> version of <a href="http://github.com/robey/configgy/tree/master">Configgy</a> and other code hosted at <a href="http://github.com/">github</a>. If you don&#8217;t have git, you can use MacPorts to install it:</p>
<blockquote style="clear: both"><p>$ sudo port install git</p>
</blockquote>
<p style="clear: both">Then clone the Configgy repository with </p>
<blockquote style="clear: both"><p>$ git clone git://github.com/robey/configgy.git </p>
</blockquote>
<p style="clear: both">Then <em>cd</em> into the top-level directory and build as described <a href="http://garyboone.com/2009/06/configgy-on-mac/">below</a>.</p>
<p style="clear: both">When you want to update, just <em>pull</em> the latest changes and rebuild.</p>
<blockquote style="clear: both"><p>$ git pull<br />$ ant clean; ant package</p>
</blockquote>
<p style="clear: both">Note that <em>ant package</em> may be particular to Configgy. Sometimes just <em>ant</em> is sufficient and will use the defaults.</p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://garyboone.com/2009/06/using-git-to-update-configgy-and-other-github-hosted-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configgy on Mac</title>
		<link>http://garyboone.com/2009/06/configgy-on-mac/</link>
		<comments>http://garyboone.com/2009/06/configgy-on-mac/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 01:31:29 +0000</pubDate>
		<dc:creator>gary</dc:creator>
				<category><![CDATA[Scala]]></category>
		<category><![CDATA[configgy]]></category>

		<guid isPermaLink="false">http://garyboone.com/2009/06/configgy-on-mac/</guid>
		<description><![CDATA[Configgy is a great configuration and logging library for Scala. You can read info/examples on the release page or git the current repository.
To install, just download and, in its directory, type
$ant package

( The &#8216;$&#8217; is your terminal command-line prompt. Don&#8217;t type it.)
If you see the following errors:
 [scalac] Compiling 16 source files to /Users/Gary/Development/scala/configgy/target/classes [scalac] [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both"><a href="http://www.lag.net/configgy/">Configgy</a> is a great configuration and logging library for Scala. You can read info/examples on the <a href="http://www.lag.net/configgy/">release page</a> or <em>git</em> the <a href="http://github.com/robey/configgy/tree/master">current repository</a>.</p>
<p>To install, just download and, in its directory, type</p>
<blockquote style="clear: both"><p>$ant package</p>
</blockquote>
<p style="clear: both">( The &#8216;$&#8217; is your terminal command-line prompt. Don&#8217;t type it.)</p>
<p style="clear: both">If you see the following errors:</p>
<blockquote style="clear: both"><p> [scalac] Compiling 16 source files to /Users/Gary/Development/scala/configgy/target/classes<br /> [scalac] /Users/Gary/Development/scala/configgy/src/main/scala/net/lag/configgy/JMXWrapper.scala:51: error: wrong number of arguments for constructor MBeanInfo: (java.lang.String,java.lang.String,Array[javax.management.MBeanAttributeInfo],Array[javax.management.MBeanConstructorInfo],Array[javax.management.MBeanOperationInfo],Array[javax.management.MBeanNotificationInfo])javax.management.MBeanInfo<br /> [scalac] new jmx.MBeanInfo(&#8221;net.lag.configgy.ConfigMap&#8221;, &#8220;configuration node&#8221;, node.asJmxAttributes(),<br /> [scalac] ^<br /> [scalac] /Users/Gary/Development/scala/configgy/src/main/scala/net/lag/configgy/JMXWrapper.scala:115: error: value asList is not a member of javax.management.AttributeList<br /> [scalac] for (attr <- jcl.Buffer(attrs.asList)) setAttribute(attr)<br /> [scalac] ^<br /> [scalac] two errors found</p>
</blockquote>
<p style="clear: both">&#8230;it&#8217;s because Configgy requires Java 1.6. You probably haven&#8217;t set your JAVA_HOME and are defaulting to Java 1.5. To correct your environment variables on the Mac, see my notes <a href="http://garyboone.com/2009/06/understanding-mac-environment-variables/">below</a>.</p>
<p style="clear: both">Next, if you&#8217;re trying out the example code and see an error like:</p>
<blockquote style="clear: both"><p>Compiling 1 source file to /Users/Gary/Development/NetBeansProjects/ScalaApplication1/build/classes<br />/Users/Gary/Development/NetBeansProjects/ScalaApplication1/src/scalaapplication1/Main.scala:27: error: value get is not a member of net.lag.configgy.Config<br /> val hostname = config.get(&#8221;hostname&#8221;, &#8220;localhost&#8221;)</p>
</blockquote>
<p style="clear: both">&#8230;it&#8217;s because that function has been renamed getString(), but not all of the documentation has been updated. Change it to:</p>
<blockquote style="clear: both"><p> val hostname = config.getString(&#8221;hostname&#8221;, &#8220;localhost&#8221;)</p>
</blockquote>
<p style="clear: both">
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://garyboone.com/2009/06/configgy-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

