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

Builds failing with 'CXX-public_undocumented_api' does not exist error #2610

Open
renukaholimath opened this issue Jan 17, 2024 · 1 comment
Labels
Milestone

Comments

@renukaholimath
Copy link

hi Team,

We have hosted SonarQube Datacenter edition v10.1.0 in our environment. Based on the request of one user, we have installed the "sonar-cxx-plugin-2.1.1.488.jar" plugin on our Pilot instance. After the plugin installation, all the builds are failing with the below error. PFA the complete scanner context error.
builderror.txt

Is this a known issue? Could you please let us know if there is any fix available for this issue?

Caused by: java.lang.IllegalStateException: Metric with key 'CXX-public_undocumented_api' does not exist
at org.sonar.ce.task.projectanalysis.metric.MetricRepositoryImpl.getByKey(MetricRepositoryImpl.java:67)
at org.sonar.ce.task.projectanalysis.api.measurecomputer.MeasureComputerContextImpl.getMeasure(MeasureComputerContextImpl.java:112)
at org.sonar.cxx.DensityMeasureComputer.compute(DensityMeasureComputer.java:72)
at org.sonar.cxx.DensityMeasureComputer.compute(DensityMeasureComputer.java:120)
at org.sonar.ce.task.projectanalysis.measure.MeasureComputersVisitor.visitAny(MeasureComputersVisitor.java:65)
at org.sonar.ce.task.projectanalysis.component.TypeAwareVisitorWrapper.visitAny(TypeAwareVisitorWrapper.java:77)
at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitNode(VisitorsCrawler.java:114)
at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:97)
at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:69)

Regards,
Renuka

@guwirth guwirth added this to the 2.1.1 milestone Jan 17, 2024
@guwirth
Copy link
Collaborator

guwirth commented Jan 17, 2024

Hello @renukaholimath,

the plugin supports only LTS versions, see compatibility matrix:
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Compatibility-Matrix

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants