Git Product home page Git Product logo

Comments (7)

paulbutcher avatar paulbutcher commented on August 16, 2024

Unfortunately, this turns out to be a can of worms :-( Now that you've opened my eyes to it, it turns out that there are a whole pile of issues with vals that I was previously unaware of :-(

I'm going to have to give this some thought (I'm sure that it can be solved, but I'll need to think about how best to do so). Is this causing you any immediate problems? If so, let me know and perhaps I can come up with a workaround that will get you going in the short-term until there's a long-term fix.

from scalamock.

drpacman avatar drpacman commented on August 16, 2024

Hi Paul,
No immediate problem, was just doing some basic familiarisation

Good luck!

Paul


From: Paul Butcher [email protected]
To: drpacman [email protected]
Sent: Wednesday, 11 January 2012, 16:37
Subject: Re: [ScalaMock] lazy vals on traits cause compilation errors (#3)

Unfortunately, this turns out to be a can of worms :-( Now that you've opened my eyes to it, it turns out that there are a whole pile of issues with vals that I was previously unaware of :-(

I'm going to have to give this some thought (I'm sure that it can be solved, but I'll need to think about how best to do so). Is this causing you any immediate problems? If so, let me know and perhaps I can come up with a workaround that will get you going in the short-term until there's a long-term fix.


Reply to this email directly or view it on GitHub:
#3 (comment)

from scalamock.

jonsteelman avatar jonsteelman commented on August 16, 2024

Hi Paul,
An immediate problem for us! Is there a target date to address the can of worms?
Thanks!
Jon

from scalamock.

paulbutcher avatar paulbutcher commented on August 16, 2024

Dang - I'm sorry about that, Jon.

The solution is, I believe, that as well as mocking the class in question, I also need to mock all of its parents. I'd love to give you a firm date, but ScalaMock is a spare time project for me.

In the interim, could you use proxy mocks for these specific cases? They shouldn't suffer from the same issue.

from scalamock.

jonsteelman avatar jonsteelman commented on August 16, 2024

What?! You mean to say that you are not 300% devoted to ScalaMock?? ;-)

Does ScalaMock need more contributors/committers, and should we get out there and put the word out to see if more are willing to help?

Thanks,
Jon

from scalamock.

paulbutcher avatar paulbutcher commented on August 16, 2024

I'd be very grateful indeed for any help - either with ScalaMock itself or with getting the word out :-)

from scalamock.

paulbutcher avatar paulbutcher commented on August 16, 2024

Closing this issue - ScalaMock 3 is moving to using macros instead of a compiler plugin, and I don't propose to fix outstanding issues in ScalaMock 2.x.

from scalamock.

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.