Comments (5)
Reading the workflow's log that you linked in the discussion, it looks like clang-tidy-14 was able to be called and returned a result. Even if that result is undesirable, the fact that the clang-tidy-14 executable was found (& invoked) tells me that it isn't an installation problem.
Have you tried using a compilation database (highly recommended)? This is a rather strict sticking point for clang-tidy (despite the version used).
from cpp-linter-action.
I have updated the docker image clang-tools:all
and I can not reproduce this issue anymore.
Currently, this is a temporary solution: just copy the missing *.h files to /usr/include
, because keeping llvm-13 and llvm-14 folders in the image will extremely increase the size of the image and cause action to slow down.
from cpp-linter-action.
keeping llvm-13 and llvm-14 folders in the image will extremely increase the size of the image and cause action to slow down.
This is why I've been trying to use the action's src code as an installable python package. The docker image isn't needed if executing the action as a python package, but it does require the end-user to consciously install the desired version of clang-tidy & clang-format (github's actions/cache action can further reduce the setup-time in this scenario). Clearly, this will also require some finesse with the --version
arg though.
from cpp-linter-action.
Currently, this is a temporary solution: just copy the missing *.h files to /usr/include
UPDATE: Permanent solution has been done and the docker image has been updated. See cpp-linter/clang-tools-docker#25
from cpp-linter-action.
This issue has been fixed in the latest docker image xianpengshen/clang-tools:all
, I'm going to close it.
Please feel free to reopen it in case of any problems.
from cpp-linter-action.
Related Issues (20)
- .clang-tidy is not considered HOT 2
- How to specify "Build path" (`-p`) for .clang-tidy? HOT 2
- Option to only post thread comment when errors are detected HOT 14
- Warning: 2 File(s) not formatted (should be 1) HOT 3
- How to make cpp-linter-action work with Conan? HOT 5
- Seperate output for `clang-format` and `clang-tidy` HOT 5
- Python `error: externally-managed-environment` during installation HOT 32
- _pygit2.GitError: repository path '/__w/Waybar/Waybar/' is not owned by current user HOT 6
- [BUG][v2.7.4] _pygit2.GitError: trailing data at line 3734 HOT 12
- Preparing for v2.9.0 PR review feature release HOT 8
- State what python version is used in README HOT 8
- create an examples folder to demonstrate various usage HOT 2
- generate the "Inputs and Outputs" page using action.yml
- cpp-linter workflows runs for every change HOT 9
- Incorrectly added `latest` tag for PR testing and not trigger test action HOT 2
- unexpected `minimun-version` field on latest v2 release HOT 5
- Option to allow acting against different files for clang-tidy and clang-format HOT 4
- MacOS runners fail with clang versions 15-18 HOT 8
- Update "What's New" of v2 in README page HOT 3
- apt install stuck at "Nothing to restart" with custom container image HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpp-linter-action.