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

Implicit inlay hints only show the first implicit call of a chain #6890

Open
francesconero opened this issue Oct 26, 2024 · 1 comment · May be fixed by #6929
Open

Implicit inlay hints only show the first implicit call of a chain #6890

francesconero opened this issue Oct 26, 2024 · 1 comment · May be fixed by #6929
Labels
bug Something that is making a piece of functionality unusable inlay-hints

Comments

@francesconero
Copy link

Describe the bug

//> using scala 2.13.15

implicit def aString: String = "a"
implicit def lengthOfString(implicit s: String): Int = s.length
implicit def toLong(implicit i: Int): Long = i.toLong

def toDouble(implicit l: Long): Double = l.toDouble

toDouble // the inlay hint only shows (toLong) but I expected it to show (toLong(lengthOfString(aString)))

Expected behavior

Implicit inlay hint should show (toLong(lengthOfString(aString))) for the toDouble call but only shows toLong

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

v1.4.0

Extra context or search terms

inlay-hints, implicits

@tgodzik
Copy link
Contributor

tgodzik commented Oct 28, 2024

Thanks for reporting! I can reproduce, must be regression connected to the change to compiler backed ones.

@tgodzik tgodzik added bug Something that is making a piece of functionality unusable inlay-hints labels Oct 28, 2024
francesconero added a commit to francesconero/metals that referenced this issue Nov 10, 2024
francesconero added a commit to francesconero/metals that referenced this issue Nov 10, 2024
francesconero added a commit to francesconero/metals that referenced this issue Nov 10, 2024
francesconero added a commit to francesconero/metals that referenced this issue Nov 10, 2024
francesconero added a commit to francesconero/metals that referenced this issue Nov 11, 2024
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 inlay-hints
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

2 participants