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

Lack of completion for Quotes Terms #3052

Closed
rochala opened this issue Aug 19, 2021 · 3 comments
Closed

Lack of completion for Quotes Terms #3052

rochala opened this issue Aug 19, 2021 · 3 comments
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

@rochala
Copy link
Collaborator

rochala commented Aug 19, 2021

Hi, I found that metals doesn't autocomplete Terms from Quoted. It applies to everything defined in that trait.

To Reproduce

Steps to reproduce the behavior:

  1. Insert following code or clone my repository: https://github.com/rochala/metals-completion-bug
import scala.quoted._

object Test {
  def test(using Quotes)(str: String) = {
    import quotes.reflect._
    val msg = Expr(str)
    val printHello = '{ print($msg) }
    val tree = printHello.asTerm //tree has no completion
    tree.show //try writing same line
  }
}
  1. Try to get autocompletion for value tree
  2. See no completion

Expected behavior
Completion for Terms should be provided.

Screenshots

image

Installation:

  • Operating system: macOS
  • Editor: Visual Studio Code/Vim
  • Metals version: v0.10.6-M1

Additional context

None

Search terms

Quoted, quotes, reflection, completion

@tgodzik
Copy link
Contributor

tgodzik commented Aug 19, 2021

Awesome! Thanks for the reproduction.

@tgodzik tgodzik added Scala 3 Generic ticket relating to Scala 3 bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler labels Aug 19, 2021
@griggt
Copy link

griggt commented Aug 24, 2021

Upstream PR: scala/scala3#13368

@tgodzik tgodzik added the upstream-fix-needed Waiting on a fix upstream label Aug 24, 2021
@dos65
Copy link
Member

dos65 commented Sep 6, 2021

Fixed in 3.1.0-RC1

@dos65 dos65 closed this as completed Sep 6, 2021
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

4 participants