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

pre-commit: An unexpected error has occurred: CalledProcessError: command: ('/usr/local/go/bin/go', 'install', './...') - /usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory #324

Open
BaseMax opened this issue Nov 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@BaseMax
Copy link
Member

BaseMax commented Nov 19, 2024

max@DESKTOP-SSI3MPL:/mnt/c/Users/MAX/Salam$ pre-commit run --all-files
[INFO] Initializing environment for local:[email protected].
[INFO] Initializing environment for https://github.com/jendrikseipp/vulture.
[INFO] Initializing environment for https://github.com/psf/black-pre-commit-mirror.
[INFO] Initializing environment for https://github.com/PyCQA/bandit.
[INFO] Initializing environment for https://github.com/gitleaks/gitleaks.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/codespell-project/codespell.
[INFO] Initializing environment for https://github.com/tcort/markdown-link-check.
[INFO] Initializing environment for https://github.com/igorshubovych/markdownlint-cli.
[INFO] Initializing environment for https://github.com/shssoichiro/oxipng.
[INFO] Initializing environment for https://github.com/adrienverge/yamllint.
[WARNING] Unexpected key(s) present on https://github.com/adrienverge/yamllint => yamllint: env
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-clang-format.
[INFO] Initializing environment for https://github.com/pycqa/isort.
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/jendrikseipp/vulture.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/psf/black-pre-commit-mirror.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/bandit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/gitleaks/gitleaks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/usr/local/go/bin/go', 'install', './...')
return code: 1
stdout: (none)
stderr:
    go: downloading github.com/gitleaks/go-gitdiff v0.9.1
    go: downloading github.com/rs/zerolog v1.26.1
    go: downloading github.com/lucasjones/reggen v0.0.0-20200904144131-37ba4fa293bb
    go: downloading github.com/fatih/semgroup v1.2.0
    go: downloading github.com/spf13/viper v1.8.1
    go: downloading golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
    go: downloading github.com/spf13/cobra v1.2.1
    go: downloading github.com/BobuSumisu/aho-corasick v1.0.3
    go: downloading github.com/charmbracelet/lipgloss v0.5.0
    go: downloading github.com/h2non/filetype v1.1.3
    go: downloading github.com/spf13/pflag v1.0.5
    go: downloading golang.org/x/sync v0.8.0
    go: downloading github.com/fsnotify/fsnotify v1.4.9
    go: downloading github.com/hashicorp/hcl v1.0.0
    go: downloading github.com/magiconair/properties v1.8.5
    go: downloading github.com/mitchellh/mapstructure v1.4.1
    go: downloading github.com/pelletier/go-toml v1.9.3
    go: downloading github.com/spf13/afero v1.6.0
    go: downloading github.com/spf13/jwalterweatherman v1.1.0
    go: downloading github.com/spf13/cast v1.3.1
    go: downloading github.com/subosito/gotenv v1.2.0
    go: downloading gopkg.in/ini.v1 v1.62.0
    go: downloading gopkg.in/yaml.v2 v2.4.0
    go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
    go: downloading github.com/mattn/go-runewidth v0.0.14
    go: downloading github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68
    go: downloading github.com/muesli/termenv v0.15.1
    go: downloading golang.org/x/sys v0.6.0
    go: downloading golang.org/x/text v0.3.8
    go: downloading github.com/rivo/uniseg v0.2.0
    go: downloading github.com/mattn/go-isatty v0.0.17
    go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
    # runtime/cgo
    In file included from _cgo_export.c:3:
    /usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
       26 | #include <bits/libc-header-start.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
Check the log at /home/max/.cache/pre-commit/pre-commit.log
@BaseMax
Copy link
Member Author

BaseMax commented Nov 19, 2024

To fix the problem in WSL - my laptop:

sudo apt install --reinstall build-essential gcc
sudo apt install -y pkg-config
sudo apt upgrade -y
sudo apt dist-upgrade -y

sudo apt-get install gcc-multilib

@BaseMax BaseMax changed the title pre-commit: /usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory pre-commit: An unexpected error has occurred: CalledProcessError: command: ('/usr/local/go/bin/go', 'install', './...') - /usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory Nov 19, 2024
@BDadmehr0
Copy link
Member

BDadmehr0 commented Nov 19, 2024

Could you please share the content of the log file here, or at least the last few lines or the sections where the issue occurred? @BaseMax

/home/max/.cache/pre-commit/pre-commit.log

@BaseMax
Copy link
Member Author

BaseMax commented Nov 19, 2024

This is working now.
Thank you.

Here is output:

max@DESKTOP-SSI3MPL:/mnt/c/Users/MAX/Salam$  pre-commit run --all-files
[WARNING] Unexpected key(s) present on https://github.com/adrienverge/yamllint => yamllint: env
[INFO] Installing environment for https://github.com/shssoichiro/oxipng.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/adrienverge/yamllint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-clang-format.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pycqa/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
run identity.............................................................Passed
- hook id: identity
- duration: 0.07s

example/card-header.salam
example/test2.salam
.github/linters/.hadolint.yaml
src/ast.h
config/layout/attribute/style/value.yaml
src/downloader.c
LICENSE
config/language.validate.py
src/string_buffer.c
src/generator_layout.c
src/ast_layout.h
example/test-input.salam
src/array_custom.h
src/main.h
config/layout/attribute/style/state.validate.py
src/main.c
src/log.h
src/config/ast_layout_attribute_style_state_type.h
src/log.c
src/array.h
example/test-button.salam
test/layout/body-hover/tokens.txt
example/testgroup.salam
src/token.h
.gitignore
src/memory.h
test/layout/body-hover/style.css
src/hashmap_custom.h
requirements.txt
assets/logo.png
example/layout.salam
example/test-custom-button.salam
example/test-select.salam
config/type.validate.py
config/layout/attribute/type.validate.py
test/layout/body-hover/layout.salam
.github/workflows/first_interaction.yml
.clang-format
assets/logo-box.png
config/layout/attribute/style/type.validate.py
CODE_OF_CONDUCT.md
.github/workflows/web-assembly.yml
src/parser_layout.h
example/repeat-block.salam
.github/ISSUE_TEMPLATE/bug_report.md
build-linux.sh
src/config/ast_block_type.h
.pre-commit-config.yaml
CONTRIBUTING.md
src/base.h
example/test4.salam
test/layout/body-hover/script.js
config/sync.py
src/hashmap.c
src/generator.h
src/generator_identifier.c
src/lexer.c
src/config/ast_layout_attribute_style_value.h
test/layout/custom-font/index.html
example/test7.salam
.prettierignore
.github/labeler.yml
.github/CODEOWNERS
example/test-box.salam
.codespellrc
example/bintext.py
src/config/ast_layout_type.h
src/generator_salam.c
VERSION
.github/linters/codespell.txt
src/ast_layout_style.c
src/parser.c
example/everything.salam
src/config/ast_layout_attribute_style_type.h
test/layout/body-hover/index.html
test/layout/custom-font/layout.salam
example/custom-font.salam
example/test.salam
example/testme.salam
.proselintrc.json
example/form.salam
build-webassembly.sh
src/config/ast_layout_attribute_type.h
src/parser_layout.c
.github/ISSUE_TEMPLATE/feature_request.md
.github/linters/.markdown-lint.yml
src/ast_layout.c
src/config/ast_layout_attribute_style_filter.h
config/language.yaml
src/hashmap.h
assets/logo.svg
config/layout/type.validate.py
src/generator_salam.h
src/ast.c
test/layout/custom-font/style.css
example/testhover.salam
example/test-first.salam
.prettierrc
.github/workflows/test.yml
config/layout/attribute/style/state.yaml
.editorconfig
assets/logo-box.svg
src/generator_layout_style.c
example/test-textarea.salam
example/hover.salam
src/string_buffer.h
config/layout/attribute/style/global_value.yaml
src/generator_layout.h
example/test5.salam
test/tests.py
.dockerignore
test/layout/custom-font/tokens.txt
example/test-lint.salam
src/parser.h
example/page-hover-opacity.salam
example/margin-auto.salam
build-windows.bat
src/config/ast_layout_attribute_style_global.h
example/input.salam
example/test-include.salam
Makefile
src/generator_layout_style.h
example/js.salam
.github/ISSUE_TEMPLATE/custom.md
config/layout/attribute/style/global_value.validate.py
src/file.h
src/config/ast_type.h
pyproject.toml
.github/workflows/build-release.yml
config/layout/type.yaml
.bashrc
config/block.yaml
src/generator.c
config/layout/attribute/style/type.yaml
src/generator_identifier.h
config/layout/attribute/type.yaml
.github/linters/.yaml-lint.yml
.gitattributes
example/inputme.salam
.github/linters/.htmlhintrc
src/lexer.h
.github/dependabot.yml
example/test3.salam
example/card.salam
src/file.c
salam-online.html
example/test-label.salam
src/validator.h
example/test6.salam
.github/pull_request_template.md
example/test-table.salam
src/array.c
example/form-action.salam
.github/workflows/proselint.yml
test/layout/custom-font/script.js
src/ast_layout_style.h
.github/workflows/pr-labeler.yml
.github/workflows/super-linter.yml
src/array_custom.c
README.md
src/hashmap_custom.c
config/type.yaml
src/downloader.h
example/test-link.salam
example/test-image-link.salam
config/layout/attribute/style/value.validate.py
src/validator.c
src/config/ast_value_kind.h
src/memory.c

check hooks apply to the repository......................................Passed
run prettier.............................................................Failed
- hook id: prettier
- exit code: 2
- files were modified by this hook

.clang-format 30ms (unchanged)
.github/dependabot.yml 10ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 87ms (unchanged)
.github/ISSUE_TEMPLATE/custom.md 6ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 22ms (unchanged)
.github/labeler.yml 14ms (unchanged)
.github/linters/.hadolint.yaml 5ms (unchanged)
.github/linters/.htmlhintrc 59ms (unchanged)
.github/linters/.markdown-lint.yml 9ms (unchanged)
.github/linters/.yaml-lint.yml 6ms (unchanged)
.github/pull_request_template.md 14ms (unchanged)
.github/workflows/build-release.yml 63ms (unchanged)
.github/workflows/first_interaction.yml 39ms (unchanged)
.github/workflows/pr-labeler.yml 6ms (unchanged)
.github/workflows/proselint.yml 12ms (unchanged)
.github/workflows/super-linter.yml 6ms (unchanged)
.github/workflows/test.yml 17ms (unchanged)
.github/workflows/web-assembly.yml 14ms (unchanged)
.pre-commit-config.yaml 31ms (unchanged)
.prettierrc 8ms (unchanged)
.proselintrc.json 13ms (unchanged)
CODE_OF_CONDUCT.md 7ms (unchanged)
config/block.yaml 2ms (unchanged)
config/language.yaml 5ms (unchanged)
config/layout/attribute/style/global_value.yaml 5ms (unchanged)
config/layout/attribute/style/state.yaml 72ms (unchanged)
config/layout/attribute/style/type.yaml
[error] config/layout/attribute/style/type.yaml: SyntaxError: Map keys must be unique; "values" is repeated (1167:5)
[error]   1165 |         - ستون های الگوی شبکه
[error]   1166 |     values: []
[error] > 1167 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_GRID_TEMPLATE_ROWS
[error]        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1168 |     generate_name: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1169 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1170 |     reserved_values: ast_layout_allowed_style_list_grid_template_rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1171 |     text:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1172 |       en: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1173 |       fa:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1174 |         - ردیف‌های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1175 |         - ردیف های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1176 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1177 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1178 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_JUSTIFY_CONTENT
[error]        | ^
[error]   1179 |     generate_name: justify-content
[error]   1180 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]   1181 |     reserved_values: ast_layout_allowed_style_list_justify_content
config/layout/attribute/type.yaml 65ms (unchanged)
config/layout/type.yaml 158ms (unchanged)
config/type.yaml 8ms (unchanged)
CONTRIBUTING.md 33ms (unchanged)
README.md 14ms (unchanged)
salam-online.html 284ms
.clang-format 22ms (unchanged)
.github/dependabot.yml 16ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 69ms (unchanged)
.github/ISSUE_TEMPLATE/custom.md 8ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 18ms (unchanged)
.github/labeler.yml 20ms (unchanged)
.github/linters/.hadolint.yaml 4ms (unchanged)
.github/linters/.htmlhintrc 63ms (unchanged)
.github/linters/.markdown-lint.yml 5ms (unchanged)
.github/linters/.yaml-lint.yml 8ms (unchanged)
.github/pull_request_template.md 17ms (unchanged)
.github/workflows/build-release.yml 38ms (unchanged)
.github/workflows/first_interaction.yml 8ms (unchanged)
.github/workflows/pr-labeler.yml 4ms (unchanged)
.github/workflows/proselint.yml 15ms (unchanged)
.github/workflows/super-linter.yml 6ms (unchanged)
.github/workflows/test.yml 15ms (unchanged)
.github/workflows/web-assembly.yml 19ms (unchanged)
.pre-commit-config.yaml 22ms (unchanged)
.prettierrc 10ms (unchanged)
.proselintrc.json 4ms (unchanged)
CODE_OF_CONDUCT.md 17ms (unchanged)
config/block.yaml 3ms (unchanged)
config/language.yaml 6ms (unchanged)
config/layout/attribute/style/global_value.yaml 5ms (unchanged)
config/layout/attribute/style/state.yaml 34ms (unchanged)
config/layout/attribute/style/type.yaml
[error] config/layout/attribute/style/type.yaml: SyntaxError: Map keys must be unique; "values" is repeated (1167:5)
[error]   1165 |         - ستون های الگوی شبکه
[error]   1166 |     values: []
[error] > 1167 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_GRID_TEMPLATE_ROWS
[error]        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1168 |     generate_name: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1169 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1170 |     reserved_values: ast_layout_allowed_style_list_grid_template_rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1171 |     text:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1172 |       en: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1173 |       fa:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1174 |         - ردیف‌های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1175 |         - ردیف های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1176 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1177 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1178 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_JUSTIFY_CONTENT
[error]        | ^
[error]   1179 |     generate_name: justify-content
[error]   1180 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]   1181 |     reserved_values: ast_layout_allowed_style_list_justify_content
config/layout/attribute/type.yaml 31ms (unchanged)
config/layout/type.yaml 163ms (unchanged)
config/type.yaml 14ms (unchanged)
CONTRIBUTING.md 102ms (unchanged)
README.md 13ms (unchanged)
salam-online.html 316ms
.clang-format 48ms (unchanged)
.github/dependabot.yml 11ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 75ms (unchanged)
.github/ISSUE_TEMPLATE/custom.md 5ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 25ms (unchanged)
.github/labeler.yml 12ms (unchanged)
.github/linters/.hadolint.yaml 3ms (unchanged)
.github/linters/.htmlhintrc 62ms (unchanged)
.github/linters/.markdown-lint.yml 4ms (unchanged)
.github/linters/.yaml-lint.yml 8ms (unchanged)
.github/pull_request_template.md 14ms (unchanged)
.github/workflows/build-release.yml 35ms (unchanged)
.github/workflows/first_interaction.yml 6ms (unchanged)
.github/workflows/pr-labeler.yml 5ms (unchanged)
.github/workflows/proselint.yml 11ms (unchanged)
.github/workflows/super-linter.yml 12ms (unchanged)
.github/workflows/test.yml 10ms (unchanged)
.github/workflows/web-assembly.yml 13ms (unchanged)
.pre-commit-config.yaml 31ms (unchanged)
.prettierrc 11ms (unchanged)
.proselintrc.json 5ms (unchanged)
CODE_OF_CONDUCT.md 29ms (unchanged)
config/block.yaml 3ms
config/language.yaml 5ms
config/layout/attribute/style/global_value.yaml 4ms
config/layout/attribute/style/state.yaml 33ms (unchanged)
config/layout/attribute/style/type.yaml
[error] config/layout/attribute/style/type.yaml: SyntaxError: Map keys must be unique; "values" is repeated (1167:5)
[error]   1165 |         - ستون های الگوی شبکه
[error]   1166 |     values: []
[error] > 1167 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_GRID_TEMPLATE_ROWS
[error]        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1168 |     generate_name: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1169 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1170 |     reserved_values: ast_layout_allowed_style_list_grid_template_rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1171 |     text:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1172 |       en: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1173 |       fa:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1174 |         - ردیف‌های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1175 |         - ردیف های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1176 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1177 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1178 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_JUSTIFY_CONTENT
[error]        | ^
[error]   1179 |     generate_name: justify-content
[error]   1180 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]   1181 |     reserved_values: ast_layout_allowed_style_list_justify_content
config/layout/attribute/type.yaml 25ms
config/layout/type.yaml 149ms (unchanged)
config/type.yaml 13ms
CONTRIBUTING.md 84ms (unchanged)
README.md 13ms (unchanged)
salam-online.html 267ms
.clang-format 34ms (unchanged)
.github/dependabot.yml 9ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 64ms (unchanged)
.github/ISSUE_TEMPLATE/custom.md 8ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 20ms (unchanged)
.github/labeler.yml 15ms (unchanged)
.github/linters/.hadolint.yaml 3ms (unchanged)
.github/linters/.htmlhintrc 65ms (unchanged)
.github/linters/.markdown-lint.yml 3ms (unchanged)
.github/linters/.yaml-lint.yml 4ms (unchanged)
.github/pull_request_template.md 16ms (unchanged)
.github/workflows/build-release.yml 34ms (unchanged)
.github/workflows/first_interaction.yml 13ms (unchanged)
.github/workflows/pr-labeler.yml 6ms (unchanged)
.github/workflows/proselint.yml 8ms (unchanged)
.github/workflows/super-linter.yml 6ms (unchanged)
.github/workflows/test.yml 20ms (unchanged)
.github/workflows/web-assembly.yml 13ms (unchanged)
.pre-commit-config.yaml 40ms (unchanged)
.prettierrc 8ms (unchanged)
.proselintrc.json 7ms (unchanged)
CODE_OF_CONDUCT.md 13ms (unchanged)
config/block.yaml 3ms (unchanged)
config/language.yaml 5ms
config/layout/attribute/style/global_value.yaml 3ms
config/layout/attribute/style/state.yaml 36ms (unchanged)
config/layout/attribute/style/type.yaml
[error] config/layout/attribute/style/type.yaml: SyntaxError: Map keys must be unique; "values" is repeated (1167:5)
[error]   1165 |         - ستون های الگوی شبکه
[error]   1166 |     values: []
[error] > 1167 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_GRID_TEMPLATE_ROWS
[error]        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1168 |     generate_name: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1169 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1170 |     reserved_values: ast_layout_allowed_style_list_grid_template_rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1171 |     text:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1172 |       en: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1173 |       fa:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1174 |         - ردیف‌های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1175 |         - ردیف های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1176 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1177 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1178 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_JUSTIFY_CONTENT
[error]        | ^
[error]   1179 |     generate_name: justify-content
[error]   1180 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]   1181 |     reserved_values: ast_layout_allowed_style_list_justify_content
config/layout/attribute/type.yaml 42ms
config/layout/type.yaml 211ms (unchanged)
config/type.yaml 10ms (unchanged)
CONTRIBUTING.md 55ms (unchanged)
README.md 13ms (unchanged)
salam-online.html 271ms
.clang-format 49ms (unchanged)
.github/dependabot.yml 10ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 72ms (unchanged)
.github/ISSUE_TEMPLATE/custom.md 7ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 16ms (unchanged)
.github/labeler.yml 11ms (unchanged)
.github/linters/.hadolint.yaml 3ms (unchanged)
.github/linters/.htmlhintrc 68ms (unchanged)
.github/linters/.markdown-lint.yml 8ms (unchanged)
.github/linters/.yaml-lint.yml 12ms (unchanged)
.github/pull_request_template.md 11ms (unchanged)
.github/workflows/build-release.yml 49ms (unchanged)
.github/workflows/first_interaction.yml 8ms (unchanged)
.github/workflows/pr-labeler.yml 4ms (unchanged)
.github/workflows/proselint.yml 10ms (unchanged)
.github/workflows/super-linter.yml 8ms (unchanged)
.github/workflows/test.yml 12ms (unchanged)
.github/workflows/web-assembly.yml 17ms (unchanged)
.pre-commit-config.yaml 32ms (unchanged)
.prettierrc 16ms (unchanged)
.proselintrc.json 3ms (unchanged)
CODE_OF_CONDUCT.md 13ms (unchanged)
config/block.yaml 5ms (unchanged)
config/language.yaml 5ms (unchanged)
config/layout/attribute/style/global_value.yaml 3ms (unchanged)
config/layout/attribute/style/state.yaml 41ms (unchanged)
config/layout/attribute/style/type.yaml
[error] config/layout/attribute/style/type.yaml: SyntaxError: Map keys must be unique; "values" is repeated (1167:5)
[error]   1165 |         - ستون های الگوی شبکه
[error]   1166 |     values: []
[error] > 1167 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_GRID_TEMPLATE_ROWS
[error]        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1168 |     generate_name: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1169 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1170 |     reserved_values: ast_layout_allowed_style_list_grid_template_rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1171 |     text:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1172 |       en: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1173 |       fa:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1174 |         - ردیف‌های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1175 |         - ردیف های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1176 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1177 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1178 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_JUSTIFY_CONTENT
[error]        | ^
[error]   1179 |     generate_name: justify-content
[error]   1180 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]   1181 |     reserved_values: ast_layout_allowed_style_list_justify_content
config/layout/attribute/type.yaml 31ms (unchanged)
config/layout/type.yaml 239ms (unchanged)
config/type.yaml 8ms (unchanged)
CONTRIBUTING.md 36ms (unchanged)
README.md 12ms (unchanged)
salam-online.html 263ms
.clang-format 34ms (unchanged)
.github/dependabot.yml 11ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 67ms (unchanged)
.github/ISSUE_TEMPLATE/custom.md 17ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 23ms (unchanged)
.github/labeler.yml 14ms (unchanged)
.github/linters/.hadolint.yaml 6ms (unchanged)
.github/linters/.htmlhintrc 65ms (unchanged)
.github/linters/.markdown-lint.yml 31ms (unchanged)
.github/linters/.yaml-lint.yml 10ms (unchanged)
.github/pull_request_template.md 8ms (unchanged)
.github/workflows/build-release.yml 44ms (unchanged)
.github/workflows/first_interaction.yml 6ms (unchanged)
.github/workflows/pr-labeler.yml 6ms (unchanged)
.github/workflows/proselint.yml 8ms (unchanged)
.github/workflows/super-linter.yml 6ms (unchanged)
.github/workflows/test.yml 21ms (unchanged)
.github/workflows/web-assembly.yml 16ms (unchanged)
.pre-commit-config.yaml 22ms (unchanged)
.prettierrc 14ms (unchanged)
.proselintrc.json 4ms (unchanged)
CODE_OF_CONDUCT.md 13ms (unchanged)
config/block.yaml 2ms (unchanged)
config/language.yaml 5ms (unchanged)
config/layout/attribute/style/global_value.yaml 3ms (unchanged)
config/layout/attribute/style/state.yaml 40ms (unchanged)
config/layout/attribute/style/type.yaml
[error] config/layout/attribute/style/type.yaml: SyntaxError: Map keys must be unique; "values" is repeated (1167:5)
[error]   1165 |         - ستون های الگوی شبکه
[error]   1166 |     values: []
[error] > 1167 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_GRID_TEMPLATE_ROWS
[error]        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1168 |     generate_name: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1169 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1170 |     reserved_values: ast_layout_allowed_style_list_grid_template_rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1171 |     text:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1172 |       en: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1173 |       fa:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1174 |         - ردیف‌های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1175 |         - ردیف های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1176 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1177 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1178 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_JUSTIFY_CONTENT
[error]        | ^
[error]   1179 |     generate_name: justify-content
[error]   1180 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]   1181 |     reserved_values: ast_layout_allowed_style_list_justify_content
config/layout/attribute/type.yaml 25ms (unchanged)
config/layout/type.yaml 202ms (unchanged)
config/type.yaml 5ms (unchanged)
CONTRIBUTING.md 69ms (unchanged)
README.md 14ms (unchanged)
salam-online.html 283ms
.clang-format 36ms (unchanged)
.github/dependabot.yml 9ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 74ms (unchanged)
.github/ISSUE_TEMPLATE/custom.md 7ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 24ms (unchanged)
.github/labeler.yml 24ms (unchanged)
.github/linters/.hadolint.yaml 3ms (unchanged)
.github/linters/.htmlhintrc 56ms (unchanged)
.github/linters/.markdown-lint.yml 11ms (unchanged)
.github/linters/.yaml-lint.yml 7ms (unchanged)
.github/pull_request_template.md 11ms (unchanged)
.github/workflows/build-release.yml 51ms (unchanged)
.github/workflows/first_interaction.yml 13ms (unchanged)
.github/workflows/pr-labeler.yml 6ms (unchanged)
.github/workflows/proselint.yml 8ms (unchanged)
.github/workflows/super-linter.yml 6ms (unchanged)
.github/workflows/test.yml 12ms (unchanged)
.github/workflows/web-assembly.yml 22ms (unchanged)
.pre-commit-config.yaml 29ms (unchanged)
.prettierrc 8ms (unchanged)
.proselintrc.json 5ms (unchanged)
CODE_OF_CONDUCT.md 11ms (unchanged)
config/block.yaml 3ms (unchanged)
config/language.yaml 3ms (unchanged)
config/layout/attribute/style/global_value.yaml 2ms (unchanged)
config/layout/attribute/style/state.yaml 46ms (unchanged)
config/layout/attribute/style/type.yaml
[error] config/layout/attribute/style/type.yaml: SyntaxError: Map keys must be unique; "values" is repeated (1167:5)
[error]   1165 |         - ستون های الگوی شبکه
[error]   1166 |     values: []
[error] > 1167 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_GRID_TEMPLATE_ROWS
[error]        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1168 |     generate_name: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1169 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1170 |     reserved_values: ast_layout_allowed_style_list_grid_template_rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1171 |     text:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1172 |       en: grid-template-rows
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1173 |       fa:
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1174 |         - ردیف‌های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1175 |         - ردیف های الگوی شبکه
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1176 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1177 |     values: []
[error]        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] > 1178 |   - id: AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_JUSTIFY_CONTENT
[error]        | ^
[error]   1179 |     generate_name: justify-content
[error]   1180 |     type: AST_LAYOUY_ATTRIBUTE_STYLE_FILTER_STRING
[error]   1181 |     reserved_values: ast_layout_allowed_style_list_justify_content
config/layout/attribute/type.yaml 1ms (unchanged)
config/layout/type.yaml 161ms (unchanged)
config/type.yaml 1ms (unchanged)
CONTRIBUTING.md 41ms (unchanged)
README.md 13ms (unchanged)
salam-online.html 190ms


run vulture..............................................................Failed
- hook id: vulture
- exit code: 1

config/sync.py:16: f-string: unmatched '[' at "f"{item["id"]}, " +"

run black................................................................Failed
- hook id: black
- exit code: 123
- files were modified by this hook

reformatted config/layout/attribute/style/global_value.validate.py
reformatted config/language.validate.py
reformatted config/layout/attribute/type.validate.py
reformatted config/layout/type.validate.py
reformatted config/layout/attribute/style/value.validate.py
reformatted config/layout/attribute/style/state.validate.py
reformatted config/layout/attribute/style/type.validate.py
reformatted config/type.validate.py
error: cannot format config/sync.py: cannot use --safe with this file; failed to parse source file AST: f-string: unmatched '[' (<unknown>, line 16)
This could be caused by running Black with an older Python version that does not support new syntax used in your source file.

Oh no! 💥 💔 💥
8 files reformatted, 2 files left unchanged, 1 file failed to reformat.

run bandit...............................................................Failed
- hook id: bandit
- exit code: 2

[main]  ERROR   pyproject.toml : toml parser not available, reinstall with toml extra

run detect hardcoded secrets.............................................Passed
check for added large files..............................................Passed
check for case conflicts.................................................Passed
check illegal windows names..........................(no files to check)Skipped
check for merge conflicts................................................Passed
check that scripts with shebangs are executable..........................Passed
check toml...............................................................Passed
check vcs permalinks.....................................................Passed
check yaml...............................................................Failed
- hook id: check-yaml
- exit code: 1

while constructing a mapping
  in "config/layout/attribute/style/type.yaml", line 1167, column 5
found duplicate key "values" with value "[]" (original value: "[]")
  in "config/layout/attribute/style/type.yaml", line 1177, column 5

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

detect destroyed symlinks................................................Passed
detect aws credentials...................................................Passed
detect private key.......................................................Passed
fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing config/sync.py

fix utf-8 byte order marker..............................................Passed
forbid submodules....................................(no files to check)Skipped
mixed line ending........................................................Passed
trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook

Fixing src/main.c
Fixing src/string_buffer.c
Fixing src/generator_layout.c
Fixing src/ast_layout.h
Fixing src/array_custom.h
Fixing src/ast.h
Fixing src/log.c
Fixing src/ast_layout_style.h
Fixing src/parser_layout.h
Fixing src/base.h
Fixing src/hashmap_custom.c
Fixing src/hashmap.c
Fixing src/generator_layout_style.h
Fixing src/ast_layout.c
Fixing src/generator_salam.c
Fixing src/ast_layout_style.c
Fixing src/parser_layout.c
Fixing src/memory.h
Fixing src/token.h
Fixing src/array.c
Fixing src/log.h
Fixing src/hashmap_custom.h
Fixing src/hashmap.h
Fixing config/sync.py
Fixing src/generator_salam.h
Fixing src/generator.h
Fixing src/validator.c
Fixing src/generator_layout_style.c
Fixing src/string_buffer.h
Fixing src/memory.c
Fixing src/parser.h
Fixing src/generator_identifier.h
Fixing src/file.c
Fixing src/downloader.c
Fixing src/generator_identifier.c
Fixing src/generator_layout.h
Fixing src/lexer.h
Fixing src/generator.c
Fixing src/array.h
Fixing src/validator.h
Fixing src/array_custom.c
Fixing src/ast.c
Fixing src/lexer.c
Fixing src/file.h
Fixing src/downloader.h
Fixing src/parser.c

run codespell............................................................Passed
run markdown link check..................................................Passed
run markdownlint.........................................................Passed
run oxipng...............................................................Passed
run yamllint.............................................................Failed
- hook id: yamllint
- exit code: 1

config/layout/attribute/style/type.yaml
  1177:5    error    duplication of key "values" in mapping  (key-duplicates)

run clang-format.........................................................Failed
- hook id: clang-format
- files were modified by this hook

@BaseMax
Copy link
Member Author

BaseMax commented Nov 19, 2024

Note: If someone is inside Iran, they must activate VPN or Proxy.

@BDadmehr0
Copy link
Member

BDadmehr0 commented Nov 19, 2024

I identified two issues in this log file, which lead to changes in the .pre-commit-config.yaml file.

Issue 1: Yamllint Warning

  • Warning: yamllint: Unexpected key(s) present
  • Cause: The env key was used in yamllint, but it appears that yamllint does not support this key.
    env:
      PYTHONUTF8: '1'
  • Solution: Remove or adjust the env configuration to comply with yamllint requirements.

Issue 2: pyproject.toml Error

  • Error: This error is related to the bandit tool, which attempts to process the pyproject.toml file.
  • Cause: To process this file, the toml package, the bandit tool, and your Python environment need to be correctly configured.
    pip install toml
  • Troubleshooting:
    1. If the issue persists, check whether bandit fully supports pyproject.toml.
    2. If necessary, explicitly specify the bandit configuration file:
      args: ['-r']

@BDadmehr0 BDadmehr0 added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants