scalameta / metals

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

Metals warning about "some directories cannot be formatted" ignores project.layout #5363

Closed mdedetrich closed 1 year ago

mdedetrich commented 1 year ago

Describe the bug

When I try to import the following project https://github.com/mdedetrich/incubator-pekko with this .scalafmt.conf file I get the following warning message

image

Expected behavior

Since I am using project.layout = StandardConvention this warning shouldn't need to appear since that configuration in scalafmt automatically applies the correct dialect depending on the folder structure, i.e. if you have sources in a scala-3 folder then it will apply the scala 3 dialect to all sources in that folder (see https://scalameta.org/scalafmt/docs/configuration.html#projectlayout)

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v1.23.0

Extra context or search terms

No response

tgodzik commented 1 year ago

Thanks for reporting! We should for sure exclude it.