air-verse / air

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

使用air报错 #660

Open Sunrisies opened 2 weeks ago

Sunrisies commented 2 weeks 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 2 weeks ago

please paste the air config

Sunrisies commented 2 weeks ago

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