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.
Environment
❯ 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
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.gois placed in the project-root directory. Runningmage targetworks 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.Environment
Additional context
n/a