Important Announcement

This forum will be discontinued.

The creation of new topics is disabled.

Please open GitHub issues for the corresponding topics/products in the following Trivadis repositories:

A lot of user have already a GitHub account and the management of the issues is better than in this forum. For example, closing a forum topic is never related to a product change. Closing a GitHub issue for an accepted bug, means that the bug is fixed. This should simplify the work for all involved parties.

See this blog post for more information.

Thank you for your understanding.

Notifications
Clear all

[Solved] Support for SonarQube 7.7  

   RSS

0

Hi there, 

Is there any support being planned for SonarQube plugin for version 7.x (or 7.7)?

The reason being asked is because of error message below which I assume is related to the changes in the API SonarQube 

12:15:18.969 ERROR: Error during SonarQube Scanner execution
java.lang.UnsupportedOperationException: Metric 'files' should not be computed by a Sensor
at org.sonar.scanner.sensor.DefaultSensorStorage.saveMeasure(DefaultSensorStorage.java:168)
at org.sonar.scanner.sensor.DefaultSensorStorage.store(DefaultSensorStorage.java:132)
at org.sonar.api.batch.sensor.measure.internal.DefaultMeasure.doSave(DefaultMeasure.java:95)
at org.sonar.api.batch.sensor.internal.DefaultStorable.save(DefaultStorable.java:45)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopSensor.saveResourceCoreMetrics(PlSqlCopSensor.java:153)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopSensor.access$000(PlSqlCopSensor.java:25)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopSensor$1.onResource(PlSqlCopSensor.java:59)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopReportParser$Parser.loadResource(PlSqlCopReportParser.java:107)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopReportParser$Parser.parseFile(PlSqlCopReportParser.java:74)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopReportParser$Parser.parse(PlSqlCopReportParser.java:58)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopReportParser.parse(PlSqlCopReportParser.java:34)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopSensor.analyze(PlSqlCopSensor.java:91)
at com.trivadis.sonar6.plugins.plsqlcop.PlSqlCopSensor.execute(PlSqlCopSensor.java:196)

 

Other plugins had similar issue

https://github.com/Backelite/sonar-swift/issues/61

https://github.com/SonarOpenCommunity/sonar-cxx/issues/1696 (See their PULL Request)

https://github.com/mwz/sonar-scala/issues/181

 

Thank you for your plugin and help with this. ! 

This topic was modified 1 year ago by f789gh
Topic Tags
1 Answer
0

We will eventually.

However, we decided to postpone changes until SonarSource releases another LTS release.

It's just difficult to keep up with the APIs changes in the intermediate versions of SonarQube. Therefore we recommend to use only the LTS versions for the time being.