Code Monkey home page Code Monkey logo

Comments (2)

cvogt avatar cvogt commented on May 9, 2024

Found the issue. Don't think it can be easily fixed (but I am working on a completely different approach). This issue happens when we use ScalaTest's command line runner from CBT. CBT does not have one flat classloader for everything, but builds a DAG of classloaders mirroring the dependencies. At the point we get to ScalaTest, the classloader contains only ScalaTest and it's dependencies. But ScalaTest assumes that it can find the classes to be tested on it's own classloader. ( See this https://github.com/scalatest/scalatest/blob/ed93bffc596f5e12a42396d18045bf28543bfd35/scalatest/src/main/scala/org/scalatest/tools/Runner.scala#L1524 ). In a way that does make sense for a command line runner. ScalaTest does support -R to load classes from somewhere else and they do end up in ScalaTest's classloader (see https://github.com/scalatest/scalatest/blob/ed93bffc596f5e12a42396d18045bf28543bfd35/scalatest/src/main/scala/org/scalatest/tools/Runner.scala#L1558) but none of their dependencies do, so that doesn't really help either. Closing this now, but I am currently working on ScalaTest support in a different way.

from cbt.

cvogt avatar cvogt commented on May 9, 2024

cc @bvenners this is what I mentioned during nescala. Found the cause now as described above.

from cbt.

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.