-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScalaDoc generation fails with pattern matches [WORKAROUND AVAILABLE] #119
Comments
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 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!
The text was updated successfully, but these errors were encountered: