Open tafli opened 7 years ago
That is strange, I wonder what kind of weird magic goes on there. I'll look into it tomorrow and will let you know what I find.
Oh, and if you have a reproduction case you can share (ideally a repo I can clone or something similar), it'll save some time :-)
Well, I managed to reproduce this quite easily. I still have no idea what's going on here, but I'll see what I can do about it.
Great to hear you could reproduce it. Didn't manage to have a repo to reproduce.
Although I don't understand the issue properly yet, with some assistance from @eed3si9n there is at least a workaround: disabling macro expansions on the doc
task. Add this to your build.sbt
:
scalacOptions in (Compile, doc) += "-Ymacro-no-expand"
I've verified that this works on a sample repo: https://github.com/holograph/accord-issue119-sample
I'll keep this bug open for future investigation.
Hi, Is there an update on this?
With Scala version 2.12.4, it is not compiling even. I cannot do with the option -Ymacro-no-expand(-Ymacro-expand:none in new version), as I am using akka-http micro. Thanks.
I'm sorry to say that there hasn't, yet. I'm unclear on why the workaround doesn't work for you, though -- what does akka-http have to do with this?
We're using the newest version and tried pattern matching with guards as in the examples:
Everything works fine with compiling and running but publishing fails as ScalaDoc seems to have a problem with the guards (without the guard its fine):
Any ideas what the problem is?
Many thanks!