Skip to content
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

No completion for scala 2 string interpolators #6750

Open
susliko opened this issue Sep 3, 2024 · 1 comment
Open

No completion for scala 2 string interpolators #6750

susliko opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3 upstream-fix-needed Waiting on a fix upstream

Comments

@susliko
Copy link
Contributor

susliko commented Sep 3, 2024

Describe the bug

//> using scala 3.3.3

implicit class LogHelper(val sc: StringContext) extends AnyVal {
  def info(args: Any*): String = ???
}

extension (sc: StringContext)
  def warn(args: Any*): String = ???

@main def logHelpers(): Unit = 
  info"" // No completion while typing "info"
  warn"" // Completion works

Expected behavior

Code completion suggests "info" String interpolator.

Operating system

Linux

Editor/Extension

Nvim (nvim-metals)

Version of Metals

v1.3.5

Extra context or search terms

No response

@tgodzik tgodzik added bug Something that is making a piece of functionality unusable Scala 3 Generic ticket relating to Scala 3 presentation-compiler Something relating to the presentation compiler upstream-fix-needed Waiting on a fix upstream labels Sep 3, 2024
@tgodzik
Copy link
Contributor

tgodzik commented Sep 3, 2024

Thanks for reporting! This looks like an issue in the presentation compiler, we should take a look there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3 upstream-fix-needed Waiting on a fix upstream
Projects
None yet
Development

No branches or pull requests

2 participants