Coder Social home page Coder Social logo

Comments (4)

neowulf avatar neowulf commented on August 24, 2024

The incompatibility is shown in the following stacktrace:

java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object;
        at com.monsanto.arch.cloudformation.model.resource.ContainerDefinition$$anon$1.write(ECS.scala:151)
        at com.monsanto.arch.cloudformation.model.resource.ContainerDefinition$$anon$1.write(ECS.scala:148)
        at spray.json.PimpedAny.toJson(package.scala:39)
        at spray.json.CollectionFormats$$anon$4$$anonfun$write$4.apply(CollectionFormats.scala:87)
        at spray.json.CollectionFormats$$anon$4$$anonfun$write$4.apply(CollectionFormats.scala:87)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.immutable.List.foreach(List.scala:318)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at spray.json.CollectionFormats$$anon$4.write(CollectionFormats.scala:87)
        at spray.json.CollectionFormats$$anon$4.write(CollectionFormats.scala:86)
        at spray.json.ProductFormats$class.productElement2Field(ProductFormats.scala:46)
        at com.monsanto.arch.cloudformation.model.resource.AWS$colon$colonECS$colon$colonTaskDefinition$.productElement2Field(ECS.scala:83)
        at spray.json.ProductFormatsInstances$$anon$7.write(ProductFormatsInstances.scala:181)
        at spray.json.ProductFormatsInstances$$anon$7.write(ProductFormatsInstances.scala:176)
        at spray.json.PimpedAny.toJson(package.scala:39)
....

from cloudformation-template-generator.

neowulf avatar neowulf commented on August 24, 2024

Running into another incompatibility issue:

java.lang.NoSuchMethodError: scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaUniverse$JavaMirror;
        at com.monsanto.arch.cloudformation.model.resource.ELBScheme$.<init>(ElasticLoadBalancing.scala:273)
        at com.monsanto.arch.cloudformation.model.resource.ELBScheme$.<clinit>(ElasticLoadBalancing.scala)
        at com.monsanto.arch.cloudformation.model.resource.AWS$colon$colonElasticLoadBalancingV2$colon$colonLoadBalancer$.<init>(ElasticLoadBalancingV2.scala:50)
        at com.monsanto.arch.cloudformation.model.resource.AWS$colon$colonElasticLoadBalancingV2$colon$colonLoadBalancer$.<clinit>(ElasticLoadBalancingV2.scala)
...

from cloudformation-template-generator.

bkrodgers avatar bkrodgers commented on August 24, 2024

My main concern with trying to target 2.10 is that I'm worried it may limit our ability to move forward with current Scala versions. I generally think it's reasonable to support current and one version prior. Scala 2.10 is more than 4 years old now, and hasn't had a significant point release in over 2 years (2.10.6 doesn't count, it was just a minor licensing tweak). It's considered obsolete as far as Scala's maintainers are concerned. Do you really have that many plugins that aren't even compatible with 2.11, much less 2.12?

That being said, if cross compiling to 2.10 can be done without breaking any current functionality or making any compromises on our ability to move forward with 2.11 and 2.12, I'm open to doing it. Have you tried cross compiling it yet? I may not have time in the immediate future to work on it, but if you want to look into the changes needed to add 2.10 support (retaining 2.11 and 2.12), I'd welcome a PR for it.

from cloudformation-template-generator.

neowulf avatar neowulf commented on August 24, 2024

Thank you for the feedback. I did try cross compiling (wanted to submit a PR) and I noticed there were some features that were not available in 2.10. I understand your concern - and we have moved on with finding a temp solution. We'll revisit this lib when the time is right for us.

from cloudformation-template-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.