Comments (7)
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.
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.
Hi Paul,
An immediate problem for us! Is there a target date to address the can of worms?
Thanks!
Jon
from scalamock.
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.
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.
I'd be very grateful indeed for any help - either with ScalaMock itself or with getting the word out :-)
from scalamock.
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)
- Mistake in scalamock documentation HOT 2
- Update to ScalaMock 5.1.0 breaks argument matching
- Is this project maintained anymore? HOT 4
- Scala 3 Support HOT 4
- Cannot mock class that uses the "pimp my library" pattern HOT 1
- Massive logs when mocked method relies on type class derivation HOT 1
- Specs2 Example Test Not Failing When Assertion Changed
- Verifying the number of invocations is unreliable HOT 1
- ScalaMock macro does not infer/resolve context-bound type-parameters correctly
- Documentation: Mocking 0-parameter function and parameterless function HOT 1
- explicit wrapping in withExpectations needed when working with specs2 Specification
- "Error while emitting" on wrong mock usage HOT 1
- Testing scala Parser and get `Parameter type in structural refinement may not refer to an abstract type defined outside that refinement`
- update github pages docs for scala 3
- Scala 3 PathDependent Mock issue HOT 2
- Scala 3 regression from Scala 2.13 expected a term symbol but received val <none> HOT 2
- Mocking Slick Table results in compile error HOT 5
- Scala3 Intersection Type Issue HOT 2
- union / intersection type and generic class issue HOT 3
- Mocking classes with constructor params with applied types fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalamock.