Open
Description
Slither version: 0.8.3
Repository: https://github.com/fluidity-money/fluidity-app (specifically the contracts/ethereum
directory)
I'm able to run slither through the extension just fine, and it shows up with a bunch of issues. However, when clicking on an issue to jump to the file containing the issue, I get a Error: cannot read properties of undefined (reading 'length')
error.
You can reproduce it by doing the following:
- Install slither version 0.8.3 (unsure if that matters)
- Clone the repository from above
cd
to thecontracts/ethereum
directory- Run
yarn
- Run
slither .
(it should run successfully now) - Run
slither
through the VSC extension. - Attempt to jump to an issue by clicking on it through the Slither Analysis tab
From my quick attempt at debugging this issue, it seems like the problem is in this line of code:
export async function gotoResultCode(workspaceFolder : string, result : SlitherResult) {
try {
// If there are no elements for this check which map to source, we stop.
if (result.elements.length <= 0 || !result.elements[0].source_mapping) {
// ...
} catch (r) {
// Log our error.
Logger.error(r.message);
}
}
Here, result.elements
is undefined.
Let me know if there's any other information I can provide to assist with this :)
Metadata
Metadata
Assignees
Labels
No labels