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
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 the contracts/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:
exportasyncfunctiongotoResultCode(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 :)
The text was updated successfully, but these errors were encountered:
farazsth98
changed the title
Cannot jump to file by clicking on an issue in the Analysis tab
Error when attempting to jump to a file by clicking on an analysis result
Dec 28, 2022
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:
cd
to thecontracts/ethereum
directoryyarn
slither .
(it should run successfully now)slither
through the VSC extension.From my quick attempt at debugging this issue, it seems like the problem is in this line of code:
Here,
result.elements
is undefined.Let me know if there's any other information I can provide to assist with this :)
The text was updated successfully, but these errors were encountered: