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

Metals does not update to changes in directives when opening single file #6755

Open
lrytz opened this issue Sep 4, 2024 · 1 comment
Open
Labels
bug Something that is making a piece of functionality unusable scala-cli Relates to the scala-cli tool upstream-fix-needed Waiting on a fix upstream

Comments

@lrytz
Copy link

lrytz commented Sep 4, 2024

Describe the bug

Simple A.scala file

//> using scala 2.13
trait A

Opening the file (not the enclosing folder) in metals works as expected, Metals Doctor shows Scala 2.13.14.

Changing the directive to using scala 3.5 is not reflected in Metals, the Doctor still says Scala 2.13.14.

It works when opening the enclosing folder in VS Code instead of the single file.

Expected behavior

No response

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v1.3.5

Extra context or search terms

No response

@tgodzik
Copy link
Contributor

tgodzik commented Sep 4, 2024

Thanks for reporting! Looks like it's the same problem as VirtusLab/scala-cli#2638

@tgodzik tgodzik added upstream-fix-needed Waiting on a fix upstream scala-cli Relates to the scala-cli tool bug Something that is making a piece of functionality unusable labels Sep 4, 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-cli Relates to the scala-cli tool upstream-fix-needed Waiting on a fix upstream
Projects
None yet
Development

No branches or pull requests

2 participants