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

cmd/gf: gf run watched #3707

Closed
poneding opened this issue Jul 25, 2024 · 5 comments
Closed

cmd/gf: gf run watched #3707

poneding opened this issue Jul 25, 2024 · 5 comments
Labels

Comments

@poneding
Copy link

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 poneding added the bug It is confirmed a bug, but don't worry, we'll handle it. label Jul 25, 2024
@niluan304
Copy link
Contributor

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

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

@poneding
Copy link
Author

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.

@hailaz hailaz changed the title os/gtime: issue title cmd/gf: gf run watched Jul 29, 2024
@hailaz
Copy link
Member

hailaz commented Jul 29, 2024

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

@Issues-translate-bot
Copy link

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.

@gqcn
Copy link
Member

gqcn commented Sep 25, 2024

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

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

@gqcn gqcn closed this as completed Sep 25, 2024
@gqcn gqcn added question and removed bug It is confirmed a bug, but don't worry, we'll handle it. labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants