-
Notifications
You must be signed in to change notification settings - Fork 21
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
False positive in missing interpolator warning #10217
Comments
Imported From: https://issues.scala-lang.org/browse/SI-10217?orig=1 |
@som-snytt said: #6476 means For example, The linter could be improved to check only possible interpolators. If the interpolator is a macro, it could check for success before warning; but failure (like a bad escape) could mean I haven't worked out the confusing syntax yet. I asked about the linked issue on gitter recently and nobody cared. As with shoes, one cares only if they pinch, or if they're really great shoes. |
@dwijnand said: In accordance to your new year's resolution: Do you think this is a bug or not? |
@som-snytt said: |
The last suggestion was to suggest:
That would be clever mind reading. Closing as not a bug because of the example for windows file names. Alternatively, use a hypothetical As of 2.13, there is no warning for seeming to interpolate a module (object); and |
but then..
N.B. the difference between line 1 and line 2 is the extra 's' before the string.
The compiler warns about a "possible missing interpolator" when no interpolation would occur.
workaround
Use the f-interpolator and double the "$"'s and the ""s:
The text was updated successfully, but these errors were encountered: