Quantcast

[scala] using continuations plugin with 2.8.0.RC1 and maven

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[scala] using continuations plugin with 2.8.0.RC1 and maven

Meredith Gregory
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Josh Suereth
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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Meredith Gregory
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Meredith Gregory
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Josh Suereth
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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Meredith Gregory
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Josh Suereth
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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Josh Suereth
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Meredith Gregory
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

David Bernard-3
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
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Meredith Gregory
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

David Bernard-3
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
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Meredith Gregory
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
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
>



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Josh Suereth
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

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

David Bernard-3
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
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [scala] using continuations plugin with 2.8.0.RC1 and maven

Josh Suereth
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.

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
>

Loading...