Closed kczulko closed 4 years ago
Hi @kczulko Thanks for the detailed report here! Great job 👍 I will take a closer look at this later and let you know what I see.
Hi @kczulko! Sorry for such a long delay.
From the error message, it's pretty clear that the problem hides in .
character, but I couldn't reproduce the issue.
Tried this piece of code and it actually compiles:
import shapeless.Witness
abstract class SomeClass[A <: String](implicit w: Witness.Aux[A]) {
type B
def aName: String = w.value
}
I've added a test case that covers this conjecture #7 and it was built successfully by travis. I'm curious why that doesn't work in your case, maybe there's some additional settings/code that changes makes plugin behave differently.
I'd really like to get to the bottom of this, so any additional info from you will help. Thanks
Good evening @augustjune ,
Finally I've found some spare time and reproduced it somehow here:
https://github.com/kczulko/context-applied-defect-6
Please execute sbt run
and repeat it once again but this time please comment out addCompilerPlugin("augustjune" ...)
from sbt file.
Best regards Karol
Hey @kczulko, that's just awesome. Didn't try to actually run the example, just assumed the compiling phase is enough.
I'm gonna prepare a quick fix and release it with a new version. Thanks for your contribution to the project 🙏
Hi,
First of all: Thank you for your work! My codebase contains some shapeless goodies. Unfortunately following code throws in runtime (sorry but I didn't manage to prepare sample project...):
That what sbt says:
and that what bazel says:
When I remove context-applied from both sbt and bazel build definition, my code runs smoothly. Maybe it seems that
.
betweenWitness
andAux
causes the problem?My env:
Even though it might be hard for me right now, if I could somehow help with this issue please let me know.
Best regards, Karol