Quantcast

SBT Incompatible Scala Version

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SBT Incompatible Scala Version

Seyed H. HAERI (Hossein)
Dear all,

I am trying to use ScalaSBT in the following scenario: My SBT
(0.13.15) uses Scala 2.12, whereas my ScalaIDE uses Scala 2.11.8. As
such, I get the following incompatibility error with my projects:

<error>
Description Resource Path Location Type
scala-parser-combinators_2.12-1.0.4.jar of Hello build path is
cross-compiled with an incompatible version of Scala (2.12.0). In case
this report is mistaken, this check can be disabled in the compiler
preference page. Hello Unknown Scala Version Problem
</error>

How can I resolve that?

TIA,
--Hossein

--------------------------------------------------------------------------------------------------------------

Seyed H. HAERI (Hossein), Dr.

Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium

ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SBT Incompatible Scala Version

Oliver Ruebenacker

     Hello,

  You mean how to set the Scala version in SBT and/or ScalaIDE so that they are the same?

  In SBT, you can set the Scala version using:

  scalaVersion := "2.11.8"

  In ScalaIDE, you can set the Scala version manually, or you can use sbteclise to import them from the SBT build definition.

     Best, Oliver

On Mon, May 8, 2017 at 10:14 AM, Seyed H. HAERI (Hossein) <[hidden email]> wrote:
Dear all,

I am trying to use ScalaSBT in the following scenario: My SBT
(0.13.15) uses Scala 2.12, whereas my ScalaIDE uses Scala 2.11.8. As
such, I get the following incompatibility error with my projects:

<error>
Description Resource Path Location Type
scala-parser-combinators_2.12-1.0.4.jar of Hello build path is
cross-compiled with an incompatible version of Scala (2.12.0). In case
this report is mistaken, this check can be disabled in the compiler
preference page. Hello Unknown Scala Version Problem
</error>

How can I resolve that?

TIA,
--Hossein

--------------------------------------------------------------------------------------------------------------

Seyed H. HAERI (Hossein), Dr.

Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium

ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Oliver Ruebenacker
Senior Software Engineer, Diabetes Portal, Broad Institute

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SBT Incompatible Scala Version

Seyed H. HAERI (Hossein)
Thanks Oliver.

>   In SBT, you can set the Scala version using:
>
>   scalaVersion := "2.11.8"

Yes, this works. But, too specific to this very project...

<snip>
> or you can use
> sbteclise to import them from the SBT build definition.

... tell me more about this one please.

Cheers,
--Hossein

--------------------------------------------------------------------------------------------------------------

Seyed H. HAERI (Hossein), Dr.

Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium

ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SBT Incompatible Scala Version

Oliver Ruebenacker

     Hello,

  sbteclipse is an Eclipse plugin (and ScalaIDE is Eclipse), and you can find instructions here.

     Best, Oliver

On Mon, May 8, 2017 at 10:41 AM, Seyed H. HAERI (Hossein) <[hidden email]> wrote:
Thanks Oliver.

>   In SBT, you can set the Scala version using:
>
>   scalaVersion := "2.11.8"

Yes, this works. But, too specific to this very project...

<snip>
> or you can use
> sbteclise to import them from the SBT build definition.

... tell me more about this one please.

Cheers,
--Hossein

--------------------------------------------------------------------------------------------------------------

Seyed H. HAERI (Hossein), Dr.

Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium

ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Oliver Ruebenacker
Senior Software Engineer, Diabetes Portal, Broad Institute

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SBT Incompatible Scala Version

Seyed H. HAERI (Hossein)
Got it. Thanks.

On 8 May 2017 at 16:44, Oliver Ruebenacker <[hidden email]> wrote:

>
>      Hello,
>
>   sbteclipse is an Eclipse plugin (and ScalaIDE is Eclipse), and you can
> find instructions here.
>
>      Best, Oliver
>
> On Mon, May 8, 2017 at 10:41 AM, Seyed H. HAERI (Hossein)
> <[hidden email]> wrote:
>>
>> Thanks Oliver.
>>
>> >   In SBT, you can set the Scala version using:
>> >
>> >   scalaVersion := "2.11.8"
>>
>> Yes, this works. But, too specific to this very project...
>>
>> <snip>
>> > or you can use
>> > sbteclise to import them from the SBT build definition.
>>
>> ... tell me more about this one please.
>>
>> Cheers,
>> --Hossein
>>
>>
>> --------------------------------------------------------------------------------------------------------------
>>
>> Seyed H. HAERI (Hossein), Dr.
>>
>> Post-Doctoral Research Fellow
>> Department of Computing Science and Engineering
>> Catholic University of Louvain
>> Louvain-la-Neuve, Belgium
>>
>> ACCU - Professionalism in programming - http://www.accu.org/
>>
>> --------------------------------------------------------------------------------------------------------------
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "scala-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [hidden email].
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Oliver Ruebenacker
> Senior Software Engineer, Diabetes Portal, Broad Institute
>



--
--------------------------------------------------------------------------------------------------------------

Seyed H. HAERI (Hossein), Dr.

Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium

ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...