-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
"possible missing interpolator: detected interpolated identifier" warning when using s2 #1237
Comments
This happens when updating from 2.13.13 to 2.13.14. |
I tried to reproduce this issue but this works for me. Can you reproduce this on a smaller project? |
I have checked deeper, and I could find the specific scalac flags one needs to use to reproduce this behavior:
|
Thanks, I can reproduce it now. I have no idea on how to fix this though, this looks like a compiler bug because |
Sadly not, as it's marking lots of implicits as not used as they're being used in some derivation macros. My current solution is that use: @nowarn("msg=possible missing interpolator")
def is = s2""" Not perfect. Let's see if the next scalac version fixes this false positive so that I can remove the |
Sorry about that. I left a question on the Discourse forum to see if I should create a scalac bug next. |
I responded on the forum, but the new option |
Thanks @som-snytt! I thought I had tested it, but it seems to work ok. @yanns would that work on your full project? |
Yes it's an acceptable solution for me. Thanks to both of you! |
This is maybe a possible solution when using |
@yanns at this stage, I don't think I will dare touching the old macro code 💣, unless there's really no way out :-). |
I think the burden is on the user of |
When using
s2
, the scalac compiler emits this warning:Example:
produces:
The text was updated successfully, but these errors were encountered: