-
Notifications
You must be signed in to change notification settings - Fork 530
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
Annotation matcher can not match column ranges #475
Comments
Hello @silverwind |
Hello @silverwind, thank you for your report. I understood your concern. Currently, the problem matcher in the |
I think the intention of The only thing that is a bit unconventional is that |
Thank you for your valuable input, @silverwind. We will take your suggestion into consideration for future enhancement to our problem matcher.
- name: Parse gopls check output
run: ./custom-parser-script.sh
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Add problem matchers for gopls check
run: echo "::add-matcher::.github/problem-matcher.json" For this, you'd need to create a We sincerely appreciate your understanding and contribution to the community. |
Description:
Tools like
gopls check <files>
can output line column ranges but the matcher installed by this action can not match them.This action can not match these column ranges because the
-
character is not included in the regex^\\s*(.+\\.go):(?:(\\d+):(\\d+):)? (.*)
. All such lines in this sample run should trigger a error annotation, but currently ones ones without a-
trigger it:Action version:
v5.0.0
Platform:
all
Runner type:
all
Tools version:
all
Repro steps:
https://github.com/go-gitea/gitea/actions/runs/8883003671/job/24388906594
Expected behavior:
Lines with
-
in the column field to be detected as error annotation.Actual behavior:
Only lines without
-
in the column are detected as error annotation.The text was updated successfully, but these errors were encountered: