Skip to content

Scala CLI actionable diagnostics for using directives #1542

@lwronski

Description

@lwronski

From the previous version of Scala CLI was introduced a new actionable diagnostic which can be turned on by running the command:

scala-cli config actions true

and to disable it users have to run:

scala-cli config actions false

It is integrated with metals with QuickFix actions:

Screen.Recording.2022-11-05.at.11.14.15.mov

It works only from the nightly version of Metals.

Describe the solution you'd like

For now, it is only available one actionable diagnostic for updating outdated dependencies. I created this issue to track other actionable diagnostics and collect some others ideas.

Some ideas for a new actionable diagnostics:

  1. Detect duplication of using directives in project and suggest users to have only one. For example in the project we should have only one using directive to specify scala version //> using scala.
  2. Suggest user to convert ivy and dep syntax to using directive. It should replace ivy/dep to //> using lib

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions