Skip to content

No packages found for open file ... magefile.go. #519

Description

@thomastthai

Bug Description
In Neovim, there is a diagnostic warning at the package main: No packages found for open file ... magefile.go.

What did you do?
The magefile.go is placed in the project-root directory. Running mage target works fine. What is causing that diagnostic error?

What did you expect to happen?
No diagnostic warning.

What actually happened?
A diagnostic warning at the package main: No packages found for open file ... magefile.go.

Image

Environment

  • Mage Version:
 ❯ mage --version
Mage Build Tool 1.15.0
Build Date: 2023-05-11T15:35:27Z
Commit: 9e91a03
built with: go1.23.1
  • OS: macOS Sequoia 15.3.1
  • Go: go version go1.24.0 darwin/arm64

Additional context
n/a

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