You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Conversion from DECIMAL to INT can overflow: not reported in PDSOE when decimal returned from METHOD #1102
I thought I had cleaned up everything in PDSOE only to find that there were still issues according to SonarQube server.
CLASS foo:
METHOD DECIMAL bar ( i_c AS CHARACTER ):
RETURN DECIMAL( i_c ).
END METHOD.
METHOD VOID nowarning ():
DEFINE VARIABLE i AS INTEGER NO-UNDO.
i = bar( '123':u ). // no warning in PDSOE, only in SonarQube server
i = DECIMAL( '123':u ). // warning in PDSOE
END METHOD.
END CLASS.
9.1.2906 generates .sonarlint/rcc.txt with the list of known classes, and passes a property to SonarLint with this filename. However, that was dependant on the status of the PDSOE code model. In 9.1.2912, the property is always passed, even when the code model is not available when starting SonarLint.
So if you never the issue, check that rcc.txt contains your classname. You can delete the file, it will be regenerated. If this issue is reported intermittently, then upgrade to 9.1.2912 (I'll send a link soon).
Activity
gquerret commentedon Jan 15, 2024
Should be fixed with SonarLint 7.13 or 9.1. Could you check in your environment ?
stefandrissen commentedon Jan 18, 2024
Updated to 9.1.2906 - still an issue:
gquerret commentedon Jan 18, 2024
Could this be related to this issue: #1105 ?
Do you see the issue intermittently ?
stefandrissen commentedon Jan 18, 2024
The tiny file above reproduces the issue, #1105 seems to be related to larger files?
gquerret commentedon Jan 18, 2024
It's in fact not directly related to the size of the file.
stefandrissen commentedon Jan 18, 2024
I now see that #1105 is marked as fixed in 9.1.2912 - the latest release, which I am using, is 9.1.2906.
gquerret commentedon Jan 19, 2024
9.1.2906 generates
.sonarlint/rcc.txtwith the list of known classes, and passes a property to SonarLint with this filename. However, that was dependant on the status of the PDSOE code model. In 9.1.2912, the property is always passed, even when the code model is not available when starting SonarLint.So if you never the issue, check that rcc.txt contains your classname. You can delete the file, it will be regenerated. If this issue is reported intermittently, then upgrade to 9.1.2912 (I'll send a link soon).