New code analysis not working in both VSCode and Eclipse sonarqube for IDE

  • Operating system: Windows 11
  • IDE name and version: Eclipse, IBm developer for zOS 17.0.2
  • SonarQube for Eclipse plugin version: 11.11
  • sonarsource.sonarlint-vscode: 4.26.0
  • Programming language you’re coding in: COBOL
  • Is connected mode used: Yes
    • SonarQube Server

Problem description:
we have a sonarqube server setup and our COBOL projects have been configured with New code analysis as Previous version. when i run the analyze from my eclipse IDE, instead of just new code, i am seeing the markers for the whole code. i have also selected “Show sonar qube markers only for new code” in preferences. I am running in connected mode, have bound the local project to sonarqube server.
I am facing similar issue from vscode sonarqube for IDE plugin as well.

Hello @Madhubalan-p, sorry for the relatively late reply!

I think the easiest way would be for you to run the following query on your SonarQube Server, and share the result with us:

https://next.sonarqube.com/sonarqube/api/measures/component?metricKeys=projects&component=<project_key>additionalFields=period

You should see a similar response:

"period":{"index":1,"mode":"PREVIOUS_VERSION","date":"2025-07-11T09:25:09+0000","parameter":"10.27.1-SNAPSHOT"}

This way, we can assess what is the data retrieved from the server, and understand if the problem is coming from the IDE or the server.

Thanks!