Linux path separator used under Windows for pylint command line

For some reason, the scanner calls pylint with a suspicious formatting:

DEBUG: Calling command: 'pylint --msg-template {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} -r n /C:/f1/f2/repo/f3/src/m1/m2.py'
DEBUG: Cannot parse the line: ************* Module /C:/f1/f2/repo/f3/src/m1/m2.py

Ubuntu 18.04.2 LTS:

  • SonarQube: 7.8.0.26217
  • SonarPython 1.14 (build 3086)

Windows 7 x64:

  • SonarQube Scanner 3.3.0.1492

Anyone else encountered this issue?

SonarPython 1.13.0.2922 works fine, so it seems to be just a regression in 1.14.

Is there an easy way to notify the SonarPython team? Their GitHub repo is not configured for issues.

@edu You already reached the right people :slight_smile:

Indeed, there could be a regression.
We have to investigate that.

My guess: SONARPY-333 and more particularly that line.

Indeed, either that line or this one: https://github.com/SonarSource/sonar-python/commit/a6ac95b01b57bfb5f4ca604b4234595bb9f04b7e#diff-e67f450b5cc563e348bb2c9c7c9b159cR40

Unfortunately, I don’t have enough Java/Maven experience so I have to be patient.

Hi @edu,
We just released SonarPython 1.14.1 that should fix your problem.

https://docs.sonarqube.org/latest/analysis/languages/python/

Hi @Andrea_Guarino , the new version works just fine. Thank you very much for your help and sorry for the delay.

1 Like