air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
18.32k stars 815 forks source link

使用air报错 #660

Open Sunrisies opened 1 month ago

Sunrisies commented 1 month ago

/ /\ | | | |) //--\ || || _ 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/air@v1.61.0/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/air@v1.61.0/runner/engine.go:522 +0xc5 image

cosmtrek commented 1 month ago

please paste the air config

Sunrisies commented 1 month ago

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