Skip to content

Make it easier to work with multi-file using-directives #4250

Description

@bjornregnell

Is your feature request related to a problem? Please describe.

It is currently not easy to work with multi-file using directives as it is not obvious (to me, despite searching docs) how to silence warnings. (The warning is intrusive as it underlines all directives in vscode).

The solution is to:

scala-cli config suppress-warning.directives-in-multiple-files true

but I had problems finding it and there is not much info here: https://scala-cli.virtuslab.org/docs/commands/basics#warning-suppression

Describe the solution you'd like

Improve documentation of how to silence the warning on the doc pages. This is related to scripting and publishing, two use cases where directives in separate files in the same dir may be useful. Perhaps a page or heading about "Working with using-directives in multiple files", perhaps under the "Cookbook" section in the scala-cli docs?

BTW: When asking Claude about this the AI was confused, so it hadn't understood after accessing current scala-cli docs that it is possible to permanently suppress the warning.

Describe alternatives you've considered

Live with the warning, but that is not so nice as there will be squiggly yellow lines all over the place in using directives in e.g. vscode with metals and if there is a yellow warning it is a bit difficult so see other things that are highlighted etc.

Additional context

See also discussion here: https://discord.com/channels/632150470000902164/901153021638082660/1499782069935538337

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions