Skip to content

import directive breaks the lsp #103

Description

@ratijas

Just LSP, upon encountering an import or import? directive looses track of source lines, and reports diagnostics (errors, warnings) from an imported file as if they were in the file that contains the import statement.

Meanwhile, the imported file, in my case Justfile.user is not being recognized by the LSP in any capacity.

Image

Moreover, all these misplaced warnings are wrong ("Parameter track_name2 appears unused"), but that's a separate issue.

After modifying the imported file, Just LSP needs to be restarted, or at least the import statement to be commented and uncommented to refresh the diagnostics. But that's a separate issue too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions