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

Error running Clangformat version 14 #45

Closed
heisencoder opened this issue Jun 26, 2022 · 4 comments
Closed

Error running Clangformat version 14 #45

heisencoder opened this issue Jun 26, 2022 · 4 comments

Comments

@heisencoder
Copy link
Contributor

When I pick clang-format-14, I get this error in the GitHub action:

Run DoozyX/clang-format-lint-action@v0.13
/usr/bin/docker run --name e3[9](https://github.com/.../abrux/runs/7064188379?check_suite_focus=true#step:4:10)52ced078c04cec839df4bf383a0c7c_bc8282 --label 72882e --workdir /github/workspace --rm -e INPUT_SOURCE -e INPUT_EXTENSIONS -e INPUT_CLANGFORMATVERSION -e INPUT_INPLACE -e INPUT_EXCLUDE -e INPUT_STYLE -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/abrux/abrux":"/github/workspace" 72882e:3952ced078c04cec839df4bf383a0c7c  "--clang-format-executable" "/clang-format/clang-format14" "-r" "--style" "file" "--inplace" "true" "--extensions" "hpp,cpp" "--exclude" "none" "abrux"
/run-clang-format.py:25: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.util import strtobool
run-clang-format.py: error: Command '/clang-format/clang-format14 --version' failed to start: [Errno 2] No such file or directory: '/clang-format/clang-format14'

If I look at my local ubuntu 22.04 system, it looks like the filename is clang-format-14 (with a hyphen before the '14'). Has anyone else seen this issue?

@DoozyX
Copy link
Owner

DoozyX commented Jun 27, 2022

Hello, are you using the 0.13 version? clang 14 was added in 0.14

@heisencoder
Copy link
Contributor Author

I had cut-and-paste the boilerplate from the README.md, so it does look like I inadvertently grabbed version 0.13. I've updated my version to 0.14 and confirmed it works!

Let me know if you'd like me to create a pull request against the README.md to update the sample code to the latest version.

Thanks!

@DoozyX
Copy link
Owner

DoozyX commented Jun 30, 2022

yea, forgot to update the README in last version, that would be nice thank you

@heisencoder
Copy link
Contributor Author

Sorry! See #46

Thanks!

@DoozyX DoozyX closed this as completed Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants