We have a issue since few days when we have scanned our DOT NET and PL/SQL code we are getting the below warning due to which we are not able to see our latest scanned reports.
Warnings:
DOT NET: CSS rules were not executed. Error when running: ‘node -v’. Is Node.js available during analysis?
JavaScript and/or TypeScript rules were not executed. Error when running: ‘node -v’. Is Node.js available during analysis?
Those warnings are just that: only warnings. When you say “not able to see our latest scanned reports” what exactly do you mean? Are you saying you run analysis and the project homepage isn’t updated? How about a screenshot?
Thank you for your response, yes by “not able to see our latest scanned reports” I mean our recently scanned analysis are not available in the dashboard as a New Code.
I have attached the screenshot of our dashboard with the screenshot of last scanned reports.
Those screenshots all agree that your last analysis of that project was on June 15. If you’ve done a more recent analysis, can you provide the analysis log?
Looking at your MAGMA log, since it matches your screenshots above, I see a successful analysis. I guess you’re going to say those screenshots are still current? I.e. that June 15 still shows up as the latest analysis, with nothing in the background tasks?
Can you check the access log to see if the analysis report was received?
Given what you’ve provided, here are the scenarios I see:
analysis report was sent to a different server
analysis report was sent to a different project (i.e. the project key got swapped somehow & there are now 2 instances of MAGMA on your SonarQube server)
an intermediary on the network (i.e. proxy, etc) killed the analysis report in flight so it never got to SonarQube.
I checked for all the possible issues you have mentioned but I did not notice any of that.
When I used to scan earlier with the same script it was working showing up the latest analysis in the dashboard.
Now also the same script works without any errors but the dashboard is never updated.
I checked for all the activity on the projects and they are all showing up.
Scanned analysis is showing up against the project that means Project ID and URL is correct
It also shows warning for the latest scan as mentioned earlier but the dashboard is not updated.
%SONAR_RUNNER_HOME%\SonarScanner.MSBuild.exe begin /k:“MAGMA” /d:sonar.host.url=“http://apdvadc614.eu.averydennison.net:9000” /d:sonar.login=“ee21059981af204a55fbb4a362a8f5281a702b22”
I’m confused. Your new set of screenshots does show the MAGMA project updated. What do you mean “the dashboard is never updated”? What are you expecting to change that doesn’t?
Uhm… no. First, your most recent set of screenshots includes one Projects page and two Background Tasks pages. In the list of projects I see “Last analysis: 20 hours ago” for LILY and the same for MAGMA.
Now, I do also see “New code: last 4 months 4 days” for both projects. Is that what you’re referring to? That’s an entirely different thing.
That’s correct, I am referring to the same on dashboard page where it shows New Code as last 4 months and 4 days, while the newly scanned report is not available anywhere.
Normally when we scan the code we expect to them the see in updated dashboard with New Code and the number defects as shown in both the screenshots for MAGMA and LILY.
I don’t see anything unusual in the latest set of screenshots. You last ran analysis on 14 July, and your New Code Period started in March. So all the issues &etc shown on your New Code tab are the issues accumulated since March.