|
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is <properties> <scala.version>2.8.0.RC1</scala.version> <doxiaVersion>1.1</doxiaVersion> </properties>
<dependency> <groupId>org.scala-lang.plugins</groupId> <artifactId>continuations</artifactId> <version>${scala.version}</version>
</dependency> <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId>
<executions> <execution> <goals> <goal>compile</goal> <goal>testCompile</goal>
</goals> </execution> </executions> <configuration> <scalaVersion>${scala.version}</scalaVersion>
<displayCmd>true</displayCmd> <args> <arg>-P:continuations:enable</arg>
</args> <jvmArgs> <jvmArg>-Xmx128m</jvmArg>
</jvmArgs> </configuration> </plugin> This results in the following error.
bash-3.2$ mvn compile ... [INFO] cmd: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args
[ERROR] error: bad option: -P:continuations:enable [ERROR] one error found [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------
[INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1) [INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10 seconds [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010
[INFO] Final Memory: 26M/79M [INFO] ------------------------------------------------------------------------ bash-3.2$ Any guidance or suggestions are welcome!
Best wishes, --greg
-- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com |
|
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)
so under <plugin> you want: <compilerPlugins> <compilerPlugin> <groupId>org.scala-lang.plugins</groupId> <artifactId>continuations</artifactId> <version>${scala.version}</version> </compilerPlugin> </compilerPlugins> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml - Josh On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <[hidden email]> wrote: Dear Scalarazzi, |
|
Dear Josh,
Thanks! That did the trick! Best wishes, --greg
On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <[hidden email]> wrote: you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library) -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com |
|
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, > mvn scala:console results in the complaint scala> error: bad option: -P:continuations:enable just after scala launches. This happens when the scala plugin is configured as
<plugin> <groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId> <executions>
<execution> <goals>
<goal>compile</goal> <goal>testCompile</goal>
</goals> </execution>
</executions> <configuration>
<scalaVersion>${scala.version}</scalaVersion> <displayCmd>true</displayCmd>
<args> <arg>-P:continuations:enable</arg>
</args> <jvmArgs>
<jvmArg>-Xmx128m</jvmArg>
</jvmArgs>
<compilerPlugins>
<compilerPlugin>
<groupId>org.scala-lang.plugins</groupId>
<artifactId>continuations</artifactId>
<version>${scala.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration> </plugin>
Best wishes, --greg
On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory <[hidden email]> wrote: Dear Josh, -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com |
|
Yes, I noticed this as a bug. I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes).
- Josh On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory <[hidden email]> wrote: Dear Josh, et al, |
|
Dear Josh,
i really should make the switch to SBT... Best wishes, --greg
On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <[hidden email]> wrote: Yes, I noticed this as a bug. I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes). -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com |
|
I should have a fix pushed soon ;)
On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory <[hidden email]> wrote: Dear Josh, |
|
You should be able to pull the current version and try it out.
On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth <[hidden email]> wrote: I should have a fix pushed soon ;) |
|
Dear Josh,
Thanks for your efforts! i'm still seeing the same behavior. Here's what i did. > pushd ~/.m2/repository/org/scala-tools
> mv maven-scala-plugin hide.maven-scala-plugin > popd (into project) > mvn -U scala:console > ... scala> error: bad option: -P:continuations:enable Best wishes, --greg
On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth <[hidden email]> wrote: You should be able to pull the current version and try it out. -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com |
|
Hi Greg,
It's part of the version 2.14-SNAPSHOT (I deploy it manually to scala-tools.org/repo-snapshots) Do you update your pom.xml to use this version ? /davidB On Thu, Apr 29, 2010 at 00:07, Meredith Gregory <[hidden email]> wrote: > Dear Josh, > Thanks for your efforts! > i'm still seeing the same behavior. Here's what i did. >> pushd ~/.m2/repository/org/scala-tools >> mv maven-scala-plugin hide.maven-scala-plugin >> popd (into project) >> mvn -U scala:console >> ... > scala> error: bad option: -P:continuations:enable > Best wishes, > --greg > > On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth <[hidden email]> > wrote: >> >> You should be able to pull the current version and try it out. >> >> On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth <[hidden email]> >> wrote: >>> >>> I should have a fix pushed soon ;) >>> >>> On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory >>> <[hidden email]> wrote: >>>> >>>> Dear Josh, >>>> i really should make the switch to SBT... >>>> Best wishes, >>>> --greg >>>> >>>> On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <[hidden email]> >>>> wrote: >>>>> >>>>> Yes, I noticed this as a bug. I'll try to patch the shortly (sorry >>>>> I've been using SBT recently, so I hadn't been up-to-snuff with my maven >>>>> fixes). >>>>> >>>>> - Josh >>>>> >>>>> On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory >>>>> <[hidden email]> wrote: >>>>>> >>>>>> Dear Josh, et al, >>>>>> Actually, although this works for compilation, it turns out that it >>>>>> does not work seamlessly for the console. Specifically, >>>>>> > mvn scala:console >>>>>> results in the complaint >>>>>> scala> error: bad option: -P:continuations:enable >>>>>> just after scala launches. >>>>>> This happens when the scala plugin is configured as >>>>>> <plugin> >>>>>> <groupId>org.scala-tools</groupId> >>>>>> <artifactId>maven-scala-plugin</artifactId> >>>>>> <executions> >>>>>> <execution> >>>>>> <goals> >>>>>> <goal>compile</goal> >>>>>> <goal>testCompile</goal> >>>>>> </goals> >>>>>> </execution> >>>>>> </executions> >>>>>> <configuration> >>>>>> <scalaVersion>${scala.version}</scalaVersion> >>>>>> <displayCmd>true</displayCmd> >>>>>> <args> >>>>>> <arg>-P:continuations:enable</arg> >>>>>> </args> >>>>>> <jvmArgs> >>>>>> <jvmArg>-Xmx128m</jvmArg> >>>>>> </jvmArgs> >>>>>> <compilerPlugins> >>>>>> <compilerPlugin> >>>>>> <groupId>org.scala-lang.plugins</groupId> >>>>>> <artifactId>continuations</artifactId> >>>>>> <version>${scala.version}</version> >>>>>> </compilerPlugin> >>>>>> </compilerPlugins> >>>>>> </configuration> >>>>>> </plugin> >>>>>> Best wishes, >>>>>> --greg >>>>>> >>>>>> On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory >>>>>> <[hidden email]> wrote: >>>>>>> >>>>>>> Dear Josh, >>>>>>> Thanks! That did the trick! >>>>>>> Best wishes, >>>>>>> --greg >>>>>>> >>>>>>> On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth >>>>>>> <[hidden email]> wrote: >>>>>>>> >>>>>>>> you need to specify continuations as a compilerPlugin not a >>>>>>>> dependency (the API is part of the scala-library) >>>>>>>> >>>>>>>> so under <plugin> you want: >>>>>>>> <compilerPlugins> >>>>>>>> <compilerPlugin> >>>>>>>> >>>>>>>> <groupId>org.scala-lang.plugins</groupId> >>>>>>>> <artifactId>continuations</artifactId> >>>>>>>> <version>${scala.version}</version> >>>>>>>> </compilerPlugin> >>>>>>>> </compilerPlugins> >>>>>>>> >>>>>>>> >>>>>>>> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml >>>>>>>> >>>>>>>> - Josh >>>>>>>> >>>>>>>> On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory >>>>>>>> <[hidden email]> wrote: >>>>>>>>> >>>>>>>>> Dear Scalarazzi, >>>>>>>>> i'm still running into a spot of trouble attempting to use the >>>>>>>>> continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant >>>>>>>>> data in my pom.xml file is >>>>>>>>> <properties> >>>>>>>>> <scala.version>2.8.0.RC1</scala.version> >>>>>>>>> <doxiaVersion>1.1</doxiaVersion> >>>>>>>>> </properties> >>>>>>>>> <dependency> >>>>>>>>> <groupId>org.scala-lang.plugins</groupId> >>>>>>>>> <artifactId>continuations</artifactId> >>>>>>>>> <version>${scala.version}</version> >>>>>>>>> </dependency> >>>>>>>>> <plugin> >>>>>>>>> <groupId>org.scala-tools</groupId> >>>>>>>>> <artifactId>maven-scala-plugin</artifactId> >>>>>>>>> <executions> >>>>>>>>> <execution> >>>>>>>>> <goals> >>>>>>>>> <goal>compile</goal> >>>>>>>>> <goal>testCompile</goal> >>>>>>>>> </goals> >>>>>>>>> </execution> >>>>>>>>> </executions> >>>>>>>>> <configuration> >>>>>>>>> <scalaVersion>${scala.version}</scalaVersion> >>>>>>>>> <displayCmd>true</displayCmd> >>>>>>>>> <args> >>>>>>>>> <arg>-P:continuations:enable</arg> >>>>>>>>> </args> >>>>>>>>> <jvmArgs> >>>>>>>>> <jvmArg>-Xmx128m</jvmArg> >>>>>>>>> </jvmArgs> >>>>>>>>> </configuration> >>>>>>>>> </plugin> >>>>>>>>> This results in the following error. >>>>>>>>> bash-3.2$ mvn compile >>>>>>>>> ... >>>>>>>>> [INFO] cmd: >>>>>>>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java >>>>>>>>> -classpath >>>>>>>>> /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar >>>>>>>>> -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar >>>>>>>>> -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile >>>>>>>>> scala.tools.nsc.Main >>>>>>>>> /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args >>>>>>>>> [ERROR] error: bad option: -P:continuations:enable >>>>>>>>> [ERROR] one error found >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [ERROR] BUILD ERROR >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process >>>>>>>>> exited with an error: 1(Exit value: 1) >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [INFO] For more information, run Maven with the -e switch >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [INFO] Total time: 10 seconds >>>>>>>>> [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 >>>>>>>>> [INFO] Final Memory: 26M/79M >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> bash-3.2$ >>>>>>>>> Any guidance or suggestions are welcome! >>>>>>>>> Best wishes, >>>>>>>>> --greg >>>>>>>>> >>>>>>>>> -- >>>>>>>>> L.G. Meredith >>>>>>>>> Managing Partner >>>>>>>>> Biosimilarity LLC >>>>>>>>> 1219 NW 83rd St >>>>>>>>> Seattle, WA 98117 >>>>>>>>> >>>>>>>>> +1 206.650.3740 >>>>>>>>> >>>>>>>>> http://biosimilarity.blogspot.com >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> L.G. Meredith >>>>>>> Managing Partner >>>>>>> Biosimilarity LLC >>>>>>> 1219 NW 83rd St >>>>>>> Seattle, WA 98117 >>>>>>> >>>>>>> +1 206.650.3740 >>>>>>> >>>>>>> http://biosimilarity.blogspot.com >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> L.G. Meredith >>>>>> Managing Partner >>>>>> Biosimilarity LLC >>>>>> 1219 NW 83rd St >>>>>> Seattle, WA 98117 >>>>>> >>>>>> +1 206.650.3740 >>>>>> >>>>>> http://biosimilarity.blogspot.com >>>>> >>>> >>>> >>>> >>>> -- >>>> L.G. Meredith >>>> Managing Partner >>>> Biosimilarity LLC >>>> 1219 NW 83rd St >>>> Seattle, WA 98117 >>>> >>>> +1 206.650.3740 >>>> >>>> http://biosimilarity.blogspot.com >>> >> > > > > -- > L.G. Meredith > Managing Partner > Biosimilarity LLC > 1219 NW 83rd St > Seattle, WA 98117 > > +1 206.650.3740 > > http://biosimilarity.blogspot.com > |
|
Dear David,
Doh! Thanks! Best wishes, --greg
On Wed, Apr 28, 2010 at 3:10 PM, David Bernard <[hidden email]> wrote: Hi Greg, -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com |
|
Note that some miror of scala-tools.org aren't sync in real time, so
sometime could be need to have the latest SNAPSHOT. /davidB On Thu, Apr 29, 2010 at 00:21, Meredith Gregory <[hidden email]> wrote: > Dear David, > Doh! Thanks! > Best wishes, > --greg > > On Wed, Apr 28, 2010 at 3:10 PM, David Bernard <[hidden email]> > wrote: >> >> Hi Greg, >> >> It's part of the version 2.14-SNAPSHOT (I deploy it manually to >> scala-tools.org/repo-snapshots) >> Do you update your pom.xml to use this version ? >> >> /davidB >> >> On Thu, Apr 29, 2010 at 00:07, Meredith Gregory >> <[hidden email]> wrote: >> > Dear Josh, >> > Thanks for your efforts! >> > i'm still seeing the same behavior. Here's what i did. >> >> pushd ~/.m2/repository/org/scala-tools >> >> mv maven-scala-plugin hide.maven-scala-plugin >> >> popd (into project) >> >> mvn -U scala:console >> >> ... >> > scala> error: bad option: -P:continuations:enable >> > Best wishes, >> > --greg >> > >> > On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth <[hidden email]> >> > wrote: >> >> >> >> You should be able to pull the current version and try it out. >> >> >> >> On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth >> >> <[hidden email]> >> >> wrote: >> >>> >> >>> I should have a fix pushed soon ;) >> >>> >> >>> On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory >> >>> <[hidden email]> wrote: >> >>>> >> >>>> Dear Josh, >> >>>> i really should make the switch to SBT... >> >>>> Best wishes, >> >>>> --greg >> >>>> >> >>>> On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth >> >>>> <[hidden email]> >> >>>> wrote: >> >>>>> >> >>>>> Yes, I noticed this as a bug. I'll try to patch the shortly (sorry >> >>>>> I've been using SBT recently, so I hadn't been up-to-snuff with my >> >>>>> maven >> >>>>> fixes). >> >>>>> >> >>>>> - Josh >> >>>>> >> >>>>> On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory >> >>>>> <[hidden email]> wrote: >> >>>>>> >> >>>>>> Dear Josh, et al, >> >>>>>> Actually, although this works for compilation, it turns out that it >> >>>>>> does not work seamlessly for the console. Specifically, >> >>>>>> > mvn scala:console >> >>>>>> results in the complaint >> >>>>>> scala> error: bad option: -P:continuations:enable >> >>>>>> just after scala launches. >> >>>>>> This happens when the scala plugin is configured as >> >>>>>> <plugin> >> >>>>>> <groupId>org.scala-tools</groupId> >> >>>>>> <artifactId>maven-scala-plugin</artifactId> >> >>>>>> <executions> >> >>>>>> <execution> >> >>>>>> <goals> >> >>>>>> <goal>compile</goal> >> >>>>>> <goal>testCompile</goal> >> >>>>>> </goals> >> >>>>>> </execution> >> >>>>>> </executions> >> >>>>>> <configuration> >> >>>>>> <scalaVersion>${scala.version}</scalaVersion> >> >>>>>> <displayCmd>true</displayCmd> >> >>>>>> <args> >> >>>>>> <arg>-P:continuations:enable</arg> >> >>>>>> </args> >> >>>>>> <jvmArgs> >> >>>>>> <jvmArg>-Xmx128m</jvmArg> >> >>>>>> </jvmArgs> >> >>>>>> <compilerPlugins> >> >>>>>> <compilerPlugin> >> >>>>>> <groupId>org.scala-lang.plugins</groupId> >> >>>>>> <artifactId>continuations</artifactId> >> >>>>>> <version>${scala.version}</version> >> >>>>>> </compilerPlugin> >> >>>>>> </compilerPlugins> >> >>>>>> </configuration> >> >>>>>> </plugin> >> >>>>>> Best wishes, >> >>>>>> --greg >> >>>>>> >> >>>>>> On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory >> >>>>>> <[hidden email]> wrote: >> >>>>>>> >> >>>>>>> Dear Josh, >> >>>>>>> Thanks! That did the trick! >> >>>>>>> Best wishes, >> >>>>>>> --greg >> >>>>>>> >> >>>>>>> On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth >> >>>>>>> <[hidden email]> wrote: >> >>>>>>>> >> >>>>>>>> you need to specify continuations as a compilerPlugin not a >> >>>>>>>> dependency (the API is part of the scala-library) >> >>>>>>>> >> >>>>>>>> so under <plugin> you want: >> >>>>>>>> <compilerPlugins> >> >>>>>>>> <compilerPlugin> >> >>>>>>>> >> >>>>>>>> <groupId>org.scala-lang.plugins</groupId> >> >>>>>>>> >> >>>>>>>> <artifactId>continuations</artifactId> >> >>>>>>>> <version>${scala.version}</version> >> >>>>>>>> </compilerPlugin> >> >>>>>>>> </compilerPlugins> >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml >> >>>>>>>> >> >>>>>>>> - Josh >> >>>>>>>> >> >>>>>>>> On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory >> >>>>>>>> <[hidden email]> wrote: >> >>>>>>>>> >> >>>>>>>>> Dear Scalarazzi, >> >>>>>>>>> i'm still running into a spot of trouble attempting to use the >> >>>>>>>>> continuations plugin with 2.8.0.RC1 under maven. Specifically, >> >>>>>>>>> the relevant >> >>>>>>>>> data in my pom.xml file is >> >>>>>>>>> <properties> >> >>>>>>>>> <scala.version>2.8.0.RC1</scala.version> >> >>>>>>>>> <doxiaVersion>1.1</doxiaVersion> >> >>>>>>>>> </properties> >> >>>>>>>>> <dependency> >> >>>>>>>>> <groupId>org.scala-lang.plugins</groupId> >> >>>>>>>>> <artifactId>continuations</artifactId> >> >>>>>>>>> <version>${scala.version}</version> >> >>>>>>>>> </dependency> >> >>>>>>>>> <plugin> >> >>>>>>>>> <groupId>org.scala-tools</groupId> >> >>>>>>>>> <artifactId>maven-scala-plugin</artifactId> >> >>>>>>>>> <executions> >> >>>>>>>>> <execution> >> >>>>>>>>> <goals> >> >>>>>>>>> <goal>compile</goal> >> >>>>>>>>> <goal>testCompile</goal> >> >>>>>>>>> </goals> >> >>>>>>>>> </execution> >> >>>>>>>>> </executions> >> >>>>>>>>> <configuration> >> >>>>>>>>> <scalaVersion>${scala.version}</scalaVersion> >> >>>>>>>>> <displayCmd>true</displayCmd> >> >>>>>>>>> <args> >> >>>>>>>>> <arg>-P:continuations:enable</arg> >> >>>>>>>>> </args> >> >>>>>>>>> <jvmArgs> >> >>>>>>>>> <jvmArg>-Xmx128m</jvmArg> >> >>>>>>>>> </jvmArgs> >> >>>>>>>>> </configuration> >> >>>>>>>>> </plugin> >> >>>>>>>>> This results in the following error. >> >>>>>>>>> bash-3.2$ mvn compile >> >>>>>>>>> ... >> >>>>>>>>> [INFO] cmd: >> >>>>>>>>> >> >>>>>>>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java >> >>>>>>>>> -classpath >> >>>>>>>>> >> >>>>>>>>> /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar >> >>>>>>>>> >> >>>>>>>>> -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar >> >>>>>>>>> -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile >> >>>>>>>>> scala.tools.nsc.Main >> >>>>>>>>> >> >>>>>>>>> /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args >> >>>>>>>>> [ERROR] error: bad option: -P:continuations:enable >> >>>>>>>>> [ERROR] one error found >> >>>>>>>>> [INFO] >> >>>>>>>>> >> >>>>>>>>> ------------------------------------------------------------------------ >> >>>>>>>>> [ERROR] BUILD ERROR >> >>>>>>>>> [INFO] >> >>>>>>>>> >> >>>>>>>>> ------------------------------------------------------------------------ >> >>>>>>>>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process >> >>>>>>>>> exited with an error: 1(Exit value: 1) >> >>>>>>>>> [INFO] >> >>>>>>>>> >> >>>>>>>>> ------------------------------------------------------------------------ >> >>>>>>>>> [INFO] For more information, run Maven with the -e switch >> >>>>>>>>> [INFO] >> >>>>>>>>> >> >>>>>>>>> ------------------------------------------------------------------------ >> >>>>>>>>> [INFO] Total time: 10 seconds >> >>>>>>>>> [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 >> >>>>>>>>> [INFO] Final Memory: 26M/79M >> >>>>>>>>> [INFO] >> >>>>>>>>> >> >>>>>>>>> ------------------------------------------------------------------------ >> >>>>>>>>> bash-3.2$ >> >>>>>>>>> Any guidance or suggestions are welcome! >> >>>>>>>>> Best wishes, >> >>>>>>>>> --greg >> >>>>>>>>> >> >>>>>>>>> -- >> >>>>>>>>> L.G. Meredith >> >>>>>>>>> Managing Partner >> >>>>>>>>> Biosimilarity LLC >> >>>>>>>>> 1219 NW 83rd St >> >>>>>>>>> Seattle, WA 98117 >> >>>>>>>>> >> >>>>>>>>> +1 206.650.3740 >> >>>>>>>>> >> >>>>>>>>> http://biosimilarity.blogspot.com >> >>>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> -- >> >>>>>>> L.G. Meredith >> >>>>>>> Managing Partner >> >>>>>>> Biosimilarity LLC >> >>>>>>> 1219 NW 83rd St >> >>>>>>> Seattle, WA 98117 >> >>>>>>> >> >>>>>>> +1 206.650.3740 >> >>>>>>> >> >>>>>>> http://biosimilarity.blogspot.com >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> -- >> >>>>>> L.G. Meredith >> >>>>>> Managing Partner >> >>>>>> Biosimilarity LLC >> >>>>>> 1219 NW 83rd St >> >>>>>> Seattle, WA 98117 >> >>>>>> >> >>>>>> +1 206.650.3740 >> >>>>>> >> >>>>>> http://biosimilarity.blogspot.com >> >>>>> >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> L.G. Meredith >> >>>> Managing Partner >> >>>> Biosimilarity LLC >> >>>> 1219 NW 83rd St >> >>>> Seattle, WA 98117 >> >>>> >> >>>> +1 206.650.3740 >> >>>> >> >>>> http://biosimilarity.blogspot.com >> >>> >> >> >> > >> > >> > >> > -- >> > L.G. Meredith >> > Managing Partner >> > Biosimilarity LLC >> > 1219 NW 83rd St >> > Seattle, WA 98117 >> > >> > +1 206.650.3740 >> > >> > http://biosimilarity.blogspot.com >> > > > > > -- > L.G. Meredith > Managing Partner > Biosimilarity LLC > 1219 NW 83rd St > Seattle, WA 98117 > > +1 206.650.3740 > > http://biosimilarity.blogspot.com > |
|
Dear David,
When i set the version to the 2.14-SNAPSHOT it worked like a charm. Best wishes, --greg
On Wed, Apr 28, 2010 at 3:25 PM, David Bernard <[hidden email]> wrote: Note that some miror of scala-tools.org aren't sync in real time, so -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com |
|
In reply to this post by Meredith Gregory
Ah, I did not deploy a snapshot to the repo yet.... Sorry, I'll take care of that soon. - Josh
|
|
Don't worry Josh, I did it.
On Thu, Apr 29, 2010 at 00:34, Josh Suereth <[hidden email]> wrote: > Ah, I did not deploy a snapshot to the repo yet.... Sorry, I'll take care of > that soon. > > - Josh > On Apr 28, 2010, at 6:07 PM, Meredith Gregory <[hidden email]> > wrote: > > Dear Josh, > Thanks for your efforts! > i'm still seeing the same behavior. Here's what i did. >> pushd ~/.m2/repository/org/scala-tools >> mv maven-scala-plugin hide.maven-scala-plugin >> popd (into project) >> mvn -U scala:console >> ... > scala> error: bad option: -P:continuations:enable > Best wishes, > --greg > > On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth <[hidden email]> > wrote: >> >> You should be able to pull the current version and try it out. >> >> On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth <[hidden email]> >> wrote: >>> >>> I should have a fix pushed soon ;) >>> >>> On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory >>> <[hidden email]> wrote: >>>> >>>> Dear Josh, >>>> i really should make the switch to SBT... >>>> Best wishes, >>>> --greg >>>> >>>> On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <[hidden email]> >>>> wrote: >>>>> >>>>> Yes, I noticed this as a bug. I'll try to patch the shortly (sorry >>>>> I've been using SBT recently, so I hadn't been up-to-snuff with my maven >>>>> fixes). >>>>> >>>>> - Josh >>>>> >>>>> On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory >>>>> <[hidden email]> wrote: >>>>>> >>>>>> Dear Josh, et al, >>>>>> Actually, although this works for compilation, it turns out that it >>>>>> does not work seamlessly for the console. Specifically, >>>>>> > mvn scala:console >>>>>> results in the complaint >>>>>> scala> error: bad option: -P:continuations:enable >>>>>> just after scala launches. >>>>>> This happens when the scala plugin is configured as >>>>>> <plugin> >>>>>> <groupId>org.scala-tools</groupId> >>>>>> <artifactId>maven-scala-plugin</artifactId> >>>>>> <executions> >>>>>> <execution> >>>>>> <goals> >>>>>> <goal>compile</goal> >>>>>> <goal>testCompile</goal> >>>>>> </goals> >>>>>> </execution> >>>>>> </executions> >>>>>> <configuration> >>>>>> <scalaVersion>${scala.version}</scalaVersion> >>>>>> <displayCmd>true</displayCmd> >>>>>> <args> >>>>>> <arg>-P:continuations:enable</arg> >>>>>> </args> >>>>>> <jvmArgs> >>>>>> <jvmArg>-Xmx128m</jvmArg> >>>>>> </jvmArgs> >>>>>> <compilerPlugins> >>>>>> <compilerPlugin> >>>>>> <groupId>org.scala-lang.plugins</groupId> >>>>>> <artifactId>continuations</artifactId> >>>>>> <version>${scala.version}</version> >>>>>> </compilerPlugin> >>>>>> </compilerPlugins> >>>>>> </configuration> >>>>>> </plugin> >>>>>> Best wishes, >>>>>> --greg >>>>>> >>>>>> On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory >>>>>> <[hidden email]> wrote: >>>>>>> >>>>>>> Dear Josh, >>>>>>> Thanks! That did the trick! >>>>>>> Best wishes, >>>>>>> --greg >>>>>>> >>>>>>> On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth >>>>>>> <[hidden email]> wrote: >>>>>>>> >>>>>>>> you need to specify continuations as a compilerPlugin not a >>>>>>>> dependency (the API is part of the scala-library) >>>>>>>> >>>>>>>> so under <plugin> you want: >>>>>>>> <compilerPlugins> >>>>>>>> <compilerPlugin> >>>>>>>> >>>>>>>> <groupId>org.scala-lang.plugins</groupId> >>>>>>>> <artifactId>continuations</artifactId> >>>>>>>> <version>${scala.version}</version> >>>>>>>> </compilerPlugin> >>>>>>>> </compilerPlugins> >>>>>>>> >>>>>>>> >>>>>>>> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml >>>>>>>> >>>>>>>> - Josh >>>>>>>> >>>>>>>> On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory >>>>>>>> <[hidden email]> wrote: >>>>>>>>> >>>>>>>>> Dear Scalarazzi, >>>>>>>>> i'm still running into a spot of trouble attempting to use the >>>>>>>>> continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant >>>>>>>>> data in my pom.xml file is >>>>>>>>> <properties> >>>>>>>>> <scala.version>2.8.0.RC1</scala.version> >>>>>>>>> <doxiaVersion>1.1</doxiaVersion> >>>>>>>>> </properties> >>>>>>>>> <dependency> >>>>>>>>> <groupId>org.scala-lang.plugins</groupId> >>>>>>>>> <artifactId>continuations</artifactId> >>>>>>>>> <version>${scala.version}</version> >>>>>>>>> </dependency> >>>>>>>>> <plugin> >>>>>>>>> <groupId>org.scala-tools</groupId> >>>>>>>>> <artifactId>maven-scala-plugin</artifactId> >>>>>>>>> <executions> >>>>>>>>> <execution> >>>>>>>>> <goals> >>>>>>>>> <goal>compile</goal> >>>>>>>>> <goal>testCompile</goal> >>>>>>>>> </goals> >>>>>>>>> </execution> >>>>>>>>> </executions> >>>>>>>>> <configuration> >>>>>>>>> <scalaVersion>${scala.version}</scalaVersion> >>>>>>>>> <displayCmd>true</displayCmd> >>>>>>>>> <args> >>>>>>>>> <arg>-P:continuations:enable</arg> >>>>>>>>> </args> >>>>>>>>> <jvmArgs> >>>>>>>>> <jvmArg>-Xmx128m</jvmArg> >>>>>>>>> </jvmArgs> >>>>>>>>> </configuration> >>>>>>>>> </plugin> >>>>>>>>> This results in the following error. >>>>>>>>> bash-3.2$ mvn compile >>>>>>>>> ... >>>>>>>>> [INFO] cmd: >>>>>>>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java >>>>>>>>> -classpath >>>>>>>>> /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar >>>>>>>>> -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar >>>>>>>>> -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile >>>>>>>>> scala.tools.nsc.Main >>>>>>>>> /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args >>>>>>>>> [ERROR] error: bad option: -P:continuations:enable >>>>>>>>> [ERROR] one error found >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [ERROR] BUILD ERROR >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process >>>>>>>>> exited with an error: 1(Exit value: 1) >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [INFO] For more information, run Maven with the -e switch >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> [INFO] Total time: 10 seconds >>>>>>>>> [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 >>>>>>>>> [INFO] Final Memory: 26M/79M >>>>>>>>> [INFO] >>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>> bash-3.2$ >>>>>>>>> Any guidance or suggestions are welcome! >>>>>>>>> Best wishes, >>>>>>>>> --greg >>>>>>>>> >>>>>>>>> -- >>>>>>>>> L.G. Meredith >>>>>>>>> Managing Partner >>>>>>>>> Biosimilarity LLC >>>>>>>>> 1219 NW 83rd St >>>>>>>>> Seattle, WA 98117 >>>>>>>>> >>>>>>>>> +1 206.650.3740 >>>>>>>>> >>>>>>>>> http://biosimilarity.blogspot.com >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> L.G. Meredith >>>>>>> Managing Partner >>>>>>> Biosimilarity LLC >>>>>>> 1219 NW 83rd St >>>>>>> Seattle, WA 98117 >>>>>>> >>>>>>> +1 206.650.3740 >>>>>>> >>>>>>> http://biosimilarity.blogspot.com >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> L.G. Meredith >>>>>> Managing Partner >>>>>> Biosimilarity LLC >>>>>> 1219 NW 83rd St >>>>>> Seattle, WA 98117 >>>>>> >>>>>> +1 206.650.3740 >>>>>> >>>>>> http://biosimilarity.blogspot.com >>>>> >>>> >>>> >>>> >>>> -- >>>> L.G. Meredith >>>> Managing Partner >>>> Biosimilarity LLC >>>> 1219 NW 83rd St >>>> Seattle, WA 98117 >>>> >>>> +1 206.650.3740 >>>> >>>> http://biosimilarity.blogspot.com >>> >> > > > > -- > L.G. Meredith > Managing Partner > Biosimilarity LLC > 1219 NW 83rd St > Seattle, WA 98117 > > +1 206.650.3740 > > http://biosimilarity.blogspot.com > |
|
As always, you rock!
On Wed, Apr 28, 2010 at 6:41 PM, David Bernard <[hidden email]> wrote: Don't worry Josh, I did it. |
| Powered by Nabble | Edit this page |
