gf icon indicating copy to clipboard operation
gf copied to clipboard

cmd/gf: gf run watched

Open poneding opened this issue 1 year ago • 4 comments

Go version

go version go1.22.4 darwin/arm64

GoFrame version

v2.7.2

Can this bug be reproduced with the latest release?

Option No

What did you do?

I dont know can this bug be reproduced with the latest release or not. I just run my project with gf run main.go.

What did you see happen?

It always checked watched file changes: CHMOD and rebuild the project even if I save the file and never modify it again. image

What did you expect to see?

I want to know why it always notify the changes. And how to avoid this.

poneding avatar Jul 25 '24 08:07 poneding

maybe the file has been updated by OS? like modified time.

try using other hot-compiled tool that can exclude file.

wufeng5702 avatar Jul 29 '24 01:07 wufeng5702

maybe the file has been updated by OS? like modified time.

try using other hot-compiled tool that can exclude file.

I have no idea. When I reboot vscode this disappears. Next time this happens I think I'll try using the air tool, thanks.

poneding avatar Jul 29 '24 01:07 poneding

这种情况一般是IDE(vscode 或者 goland)导致,你可以做一个简单的测试,关闭所有的IDE,用系统提供的cmd 或者 shell 执行gf run命令,然后观察是否会复现。

hailaz avatar Jul 29 '24 02:07 hailaz

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This situation is usually caused by IDE (vscode or goland). You can do a simple test, close all IDEs, use the cmd or shell provided by the system to execute the gf run command, and then observe whether it recurs.

Issues-translate-bot avatar Jul 29 '24 02:07 Issues-translate-bot

这种情况一般是IDE(vscode 或者 goland)导致,你可以做一个简单的测试,关闭所有的IDE,用系统提供的cmd 或者 shell 执行gf run命令,然后观察是否会复现。

@poneding Yes, as @hailaz said, the IDE can also watch and update your source files.

gqcn avatar Sep 25 '24 08:09 gqcn