scalameta / metals

Scala language server with rich IDE features 🚀
https://scalameta.org/metals/
Apache License 2.0
2.08k stars 330 forks source link

Completion in `for-comprehensions` breaks #5930

Open KaranAhlawat opened 10 months ago

KaranAhlawat commented 10 months ago

Describe the bug

When you are writing a for comprehension, after typing the for keyword, you only get completions for the first generatior (<-) line. Afterwords, any meaningful completions stop appearing unless you add a yield keyword with a return value (even ??? works), and then go back to writing the rest of the generators.

Expected behavior

I expect completion to continue working as usual.

Operating system

Linux

Editor/Extension

Emacs (lsp-metals)

Version of Metals

v1.1.0

Extra context or search terms

No response

tgodzik commented 9 months ago

Thanks for reporting! As we talked on discord, let us know if you are able to record or create a reliable reproduction.