Skip to content

Helpful implicit not found message for quotes.Quotes #16914

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

Closed
wants to merge 1 commit into from

Conversation

nicolasstucki
Copy link
Contributor

Fixes #16888

@nicolasstucki nicolasstucki force-pushed the fix-16888 branch 2 times, most recently from 3f1cc4d to 3504540 Compare February 15, 2023 08:16
@nicolasstucki nicolasstucki self-assigned this Feb 15, 2023
@nicolasstucki nicolasstucki marked this pull request as ready for review February 15, 2023 16:59
@implicitNotFound("""No given instance of type scala.quoted.Quotes was found.

Quotes are generated from an enclosing splice `$ { ... }` or `scala.staging.run` call.
Maybe that splice `$ { ... }` or `scala.staging.run` is missing?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to use $ { because I could not find a way to write ${ within the message of implicitNotFound. It assumes that ${ is the start of a type interpolation. Escape \,$ characters or escape Unicode do not work because the string is interpreted raw.

@nicolasstucki
Copy link
Contributor Author

This was included in #16893

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhelpful implicit not found message for quotes.Quotes
2 participants