[ANN] SonarQube 5.4 RC2 is now available

304 views
Skip to first unread message

Fabrice Bellingard

unread,
Feb 16, 2016, 12:30:27 PM2/16/16
to SonarQube
Hi SonarQube Community,

Here is the second public release candidate of SonarQube 5.4 that fixes a couple of bugs found on the RC1.


Best regards,

Fabrice BELLINGARD | SonarSource
SonarQube Platform Product Manager
http://sonarsource.com

Eduard-Cristian Stefan

unread,
Feb 16, 2016, 4:55:41 PM2/16/16
to SonarQube
Win 7 SP1 x64
JDK 1.8.0.74 x64
service is running under a dedicated user
clean install

steps:
1. uninstall bundled SVN plugin
2. restart from the web interface

Exception in thread "Restartor 0" java.lang.RuntimeException: Failed to reset file system
at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:125)
at org.sonar.process.monitor.Monitor.startProcesses(Monitor.java:105)
at org.sonar.process.monitor.Monitor.access$500(Monitor.java:38)
at org.sonar.process.monitor.Monitor$RestartorThread.run(Monitor.java:282)
Caused by: java.nio.file.FileSystemException: D:\__devops\Sonar\Qube\temp\sharedmemory: The process cannot access the file because it is being used by another process.

at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:151)
at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:135)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at org.sonar.process.FileUtils.cleanDirectoryImpl(FileUtils.java:123)
at org.sonar.process.FileUtils.cleanDirectory(FileUtils.java:60)
at org.sonar.application.AppFileSystem.createOrCleanDirectory(AppFileSystem.java:116)
at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:73)
at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:122)
... 3 more

Eduard-Cristian Stefan

unread,
Feb 16, 2016, 4:59:00 PM2/16/16
to SonarQube
same behavior when uninstalling the bundled Java plugin

Eduard-Cristian Stefan

unread,
Feb 16, 2016, 5:08:22 PM2/16/16
to SonarQube
- No plugins listed in the Available tab
- Git plugin listed in the Updates Only tab (1.0 installed), but no info related to the actual update (like version, or Update button)

Last log line related to the update:
    2016.02.16 23:57:45 INFO  web[o.s.s.p.UpdateCenterClient] Update center: http://update.sonarsource.org/update-center.properties (no proxy)

Fabrice Bellingard

unread,
Feb 17, 2016, 4:14:39 AM2/17/16
to Eduard-Cristian Stefan, SonarQube
Hello,

First: being polite and saying things like "hello" and "thanks" is not an option when asking for support on an open-source community.

Second: can you please send a dedicated email to create a new thread of discussion instead of answering the announcement email? This makes it easier for us to track the different topics.

Thanks

Best regards,

Fabrice BELLINGARD | SonarSource
SonarQube Platform Product Manager
http://sonarsource.com

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/02cf65e1-3c55-4bd7-8974-1a654fc7f4f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eduard-Cristian Stefan

unread,
Feb 17, 2016, 4:48:58 AM2/17/16
to SonarQube, alexan...@gmail.com
Hello Fabrice,

First: being polite and saying things like "hello" and "thanks" is not an option when asking for support on an open-source community.

1. Fully agree on the polite aspect, sorry about that.

2. Next time it would be nicer if you would take into consideration the local time of the sender,
especially during the work days, and let it go.

3. I personally appreciate a lot more the actual data, and not so much the envelope
(you can hurt my feelings as you wish, as long as you provide environment details
and reproducible steps), and I have made one too many assumptions, sorry about that too.

4. Providing feedback for a release candidate build, just a few hours after the announcement -
IMHO it seems that I'm doing a big favor for your project, not the other way around.
Fully agree with you on issues found in a public release (like 5.4)
 
Second: can you please send a dedicated email to create a new thread of discussion instead of answering the announcement email? This makes it easier for us to track the different topics.

Sure, I will try to do it tomorrow (I have wasted too much time trying to compose this mail :D )

Have a nice day,
  Eduard

Günter Wirth

unread,
Feb 29, 2016, 5:17:19 AM2/29/16
to SonarQube
Hi,

We still have problems with coverage metrics, also with SQ5.4-RC2 some values are null:

Assertion Failed: 
    class_complexity is actually 0.0
    function_complexity is actually None

Report: https://travis-ci.org/SonarOpenCommunity/sonar-cxx/jobs/112268664
Implementation:
https://github.com/guwirth/sonar-cxx/blob/enhancement/COMPLEXITY_IN_CLASSES/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/squid/CxxSquidSensor.java

  private void saveClassComplexity(InputFile inputFile, SourceFile squidFile) {
    Collection<SourceCode> classes = scanner.getIndex().search(new QueryByParent(squidFile), new QueryByType(SourceClass.class));
    double complexityInClasses = 0;
    for (SourceCode squidClass : classes) {
      double classComplexity = squidClass.getDouble(CxxMetric.COMPLEXITY);
      complexityInClasses += classComplexity;
    }
    context.saveMeasure(inputFile, CoreMetrics.COMPLEXITY_IN_CLASSES, complexityInClasses);
  }

 
  private void saveFunctionsComplexityDistribution(InputFile inputFile, SourceFile squidFile) {
    Collection<SourceCode> squidFunctionsInFile = scanner.getIndex().search(new QueryByParent(squidFile), new QueryByType(SourceFunction.class));
    RangeDistributionBuilder complexityDistribution = new RangeDistributionBuilder(CoreMetrics.FUNCTION_COMPLEXITY_DISTRIBUTION, FUNCTIONS_DISTRIB_BOTTOM_LIMITS);
    for (SourceCode squidFunction : squidFunctionsInFile) {
      complexityDistribution.add(squidFunction.getDouble(CxxMetric.COMPLEXITY));
    }
    context.saveMeasure(inputFile, complexityDistribution.build().setPersistenceMode(PersistenceMode.MEMORY));
  }


  private void saveFilesComplexityDistribution(InputFile inputFile, SourceFile squidFile) {
    RangeDistributionBuilder complexityDistribution = new RangeDistributionBuilder(CoreMetrics.FILE_COMPLEXITY_DISTRIBUTION, FILES_DISTRIB_BOTTOM_LIMITS);
    complexityDistribution.add(squidFile.getDouble(CxxMetric.COMPLEXITY));
    context.saveMeasure(inputFile, complexityDistribution.build().setPersistenceMode(PersistenceMode.MEMORY));
  }

Any hints what's wrong?
Is FUNCTION_COMPLEXITY_DISTRIBUTION and COMPLEXITY_IN_CLASSES working for others?

Regards,

Julien Lancelot

unread,
Feb 29, 2016, 8:36:04 AM2/29/16
to Günter Wirth, SonarQube
Hi Günter,

This issue is related to this ticket : https://jira.sonarsource.com/browse/SONAR-7169
Now complexity_in_classes requires the measure complexity_in_classes to be computed.
You should update the cxx in order to feed the complexity_in_classes measure.

Regards,


--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Julien LANCELOT | SonarSource

Günter Wirth

unread,
Feb 29, 2016, 10:33:11 AM2/29/16
to SonarQube, wirth....@me.com
Hi Julien,

Thanks a lot for your link. We already tried this (see code sample) but without success.
Any hints? Or a link to a working sample?

Regards,
Günter

Reply all
Reply to author
Forward
0 new messages