The Artima Developer Community
Sponsored Link

Programming in Scala Forum
How to fix the cross-compile error when using SuperSafe?

4 replies on 1 page. Most recent reply: Oct 20, 2015 1:16 AM by Chee Seng Chua

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Bart Jenkins

Posts: 2
Nickname: bauhaus9
Registered: Jul, 2013

How to fix the cross-compile error when using SuperSafe? Posted: Oct 14, 2015 8:22 AM
Reply to this message Reply
Advertisement
I purchased the SuperSafe Scala compiler plugin from Artima and when I use it in my SBT / Eclipse projects (via sbt-eclipse) with the latest version of the language (v 2.11.7), I get a cross-compile error, specifically: "Compiler plugin supersafe_2.11-1.0.4.jar is cross-compiled with incompatible version for this project: 2.11.0 vs 2.11.7". When I compile from within SBT I don't see the error. Any ideas how to beat Eclipse into submission for it not to complain? I'm using Eclipse Mars.1 (release 4.5.1) with scala-ide v 4.2.0-vfinal-2_11....


Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: How to fix the cross-compile error when using SuperSafe? Posted: Oct 14, 2015 8:48 AM
Reply to this message Reply
Well that's odd given 2.11.0 and 2.11.7 are supposed to be binary compatible. We'll investigate. I wonder if Eclipse is doing an unnecessary check or whether there is a real incompatibility between 2.11.0 and 2.11.7 for compiler plugins. We'll let you know.

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: How to fix the cross-compile error when using SuperSafe? Posted: Oct 14, 2015 11:09 PM
Reply to this message Reply
Hi Bart,

The reason you get that message is that we should be compiling the plugin for all point versions of Scala. The binary compatibility promise only works for libraries, not compiler plugins. We are working on that now and let you know when it is deployed. The reason it hasn't shown up before now is that it actually does work regardless on all versions exception 2.10.0, and I think no one was using that version. Eclipse is just doing an extra check. We'll post here once we have that out and point to instructions on how to upgrade.

Bill

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: How to fix the cross-compile error when using SuperSafe? Posted: Oct 15, 2015 8:52 AM
Reply to this message Reply
Hi Bart,

We are still working on a new build, but we have an interim solution. You can disable the check, which is on by default, in Eclipse by:

Project Properties -> Scala Compiler -> Build Manager and uncheck "withVersionClasspathValidator"

It might require a clean build.

Bill

Chee Seng Chua

Posts: 1
Nickname: cheeseng
Registered: Oct, 2012

Re: How to fix the cross-compile error when using SuperSafe? Posted: Oct 20, 2015 1:16 AM
Reply to this message Reply
Hi Bart,

SuperSafe 1.0.5 is released, it added SBT plugin support which automatically downloads the correct version of SuperSafe compiler plugin for your SBT project, the latest installation guide is available here:

http://www.artima.com/supersafe_user_guide.html

Hope this helps.

Chee Seng

Flat View: This topic has 4 replies on 1 page
Topic: How immutable set's "+=" operation works ? Previous Topic   Next Topic Topic: What does

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use