-
Notifications
You must be signed in to change notification settings - Fork 61
fix: switching between zh and en bug #720
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
Conversation
| console/atest-desktop/coverage | ||
| atest-store-git | ||
| .db | ||
| .marscode/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add new blank line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually, we put a new line at the end of each file. You can search the reason in Google.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,I will search it.
tools/make/common.mk
Outdated
| @echo -e "Usage:\n make \033[36m<Target>\033[0m \033[36m<Option>\033[0m\n\nTargets:" | ||
| @awk 'BEGIN {FS = ":.*##"; printf ""} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
| @echo -e "\n$$USAGE_OPTIONS" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this mk target more appropriate to put it in golang .mk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your correction. I will read the code carefully again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested the function. It works well. It's great. Thanks for your efforts. I learn from it.
By the way, the go fmt command is duplicated. Please let me know how to reproduce the error.
tools/make/common.mk
Outdated
| .PHONY: fmt | ||
| fmt: | ||
| go fmt ./... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It already exists. You can find it from golang.mk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, what is your pre-commit hook command?
|



What type of PR is this?
fix:switching between zh and en bug
What this PR does / why we need it:
This PR enables real-time switching from English to Chinese without requiring a page refresh. In addition, the modification to console/atest-ui/src/views/TestSuite.vue addresses a warning that appeared during npm run dev.
Because I have configured a pre-commit hook, the following error occurred during commit:
To fix this, I modified
tools/make/common.mkto recursively format all Go files under the current directory and its subdirectories.Which issue(s) this PR fixes:
Fixes # issues/710