Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用air报错 #660

Open
Sunrisies opened this issue Oct 10, 2024 · 2 comments
Open

使用air报错 #660

Sunrisies opened this issue Oct 10, 2024 · 2 comments

Comments

@Sunrisies
Copy link


/ /\ | | | |)
/
/--\ || || _ v1.61.0, built with Go go1.23.2

watching .
!exclude tmp
building...
failed to build, error: exec: "cmd": executable file not found in %PATH%
running...
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0xa0 pc=0x10bd128]

goroutine 12 [running]:
github.com/air-verse/air/runner.(*Engine).runBin.func2()
C:/Users/Lenovo/go/pkg/mod/github.com/air-verse/[email protected]/runner/engine.go:543 +0x228
created by github.com/air-verse/air/runner.(*Engine).runBin in goroutine 11
C:/Users/Lenovo/go/pkg/mod/github.com/air-verse/[email protected]/runner/engine.go:522 +0xc5
image

@cosmtrek
Copy link
Collaborator

please paste the air config

@Sunrisies
Copy link
Author

我在当前目录下面没有生成默认的.air.toml文件,直接运行的,但是不管有没有这个配置文件都是报这个错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@cosmtrek @Sunrisies and others