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

Broken completion and highlighting in multi-line string interpolation in worksheets #6361

Closed
iusildra opened this issue Apr 29, 2024 · 3 comments · Fixed by #6456
Closed
Labels
bug Something that is making a piece of functionality unusable Scala 3 Generic ticket relating to Scala 3

Comments

@iusildra
Copy link
Contributor

iusildra commented Apr 29, 2024

Describe the bug

EDIT: worksheets only

When using multi-line string interpolation, things get a bit awkward :)
For instance with
image

There are no completion suggestions, but compiling is ok as well as go-to definitions

Expected behavior

Normal colors & completions :)

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

v1.3.0

Extra context or search terms

semantic highlighting, multi-line string, string interpolation

@tgodzik
Copy link
Contributor

tgodzik commented Apr 30, 2024

Thanks for reporting! Do you get any any logs or reports in .metals/reports ? It looks like the file is failing to compiling at least partially.

@tgodzik tgodzik added the needs more information Use if we need more information for a specific ticket label May 13, 2024
@iusildra
Copy link
Contributor Author

Hey @tgodzik ! Sorry for the delay, I missed your reply :(

No reports appear to be generated and compilation seems fine as expressions defined later are correctly evaluated (and nothing special appear in the logs either)

However, there's one key aspect that I forgot in the issue description (I've edited the comment): it's only the case in worksheets. On regular Scala file it's perfectly fine

@iusildra iusildra changed the title Broken completion and highlighting in multi-line string interpolation Broken completion and highlighting in multi-line string interpolation in worksheets May 26, 2024
@tgodzik
Copy link
Contributor

tgodzik commented May 27, 2024

Ach, that's an important piece of information, thanks!

@tgodzik tgodzik added investigation needed and removed needs more information Use if we need more information for a specific ticket labels May 27, 2024
@tgodzik tgodzik added this to Triage in Metals Issue Board via automation May 27, 2024
@kasiaMarek kasiaMarek moved this from Triage to In progress in Metals Issue Board May 29, 2024
@kasiaMarek kasiaMarek added bug Something that is making a piece of functionality unusable Scala 3 Generic ticket relating to Scala 3 and removed investigation needed labels May 29, 2024
Metals Issue Board automation moved this from In progress to Done May 29, 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 Scala 3 Generic ticket relating to Scala 3
Projects
Development

Successfully merging a pull request may close this issue.

3 participants