crytic / slither-action

GNU Affero General Public License v3.0
127 stars 19 forks source link

I need your help! I'm keep getting ;ERROR:ContractSolcParsing:Impossible to generate IR' error #78

Open DanielLee49 opened 5 months ago

DanielLee49 commented 5 months ago

I need to run slither CI test by using the code below, using ignore-compile: true. It was not suitable for a monorepo scenario where the dependency's pnpm-lock file exists at the top level of the repository, but the target directory I want to analyze is not located at the top level of the repository.

https://github.com/tokamak-network/tokamak-titan-canyon/blob/main/packages/tokamak/contracts-bedrock/test/safe-tools/SafeTestTools.sol

--ignore-compile used, if something goes wrong, consider removing the ignore compile flag ERROR:ContractSolcParsing:Impossible to generate IR for LibSort._toInts (scripts/libraries/LibSort.sol#469-474): 'str' object has no attribute 'type' ERROR:SlitherSolcParsing: Failed to generate IR for LivenessGuard_TestInit._initializeSafeTools. Please open an issue https://github.com/crytic/slither/issues. LivenessGuard_TestInit._initializeSafeTools (test/safe-tools/SafeTestTools.sol#509-513): singleton = new GnosisSafe() proxyFactory = new GnosisSafeProxyFactory() handler = new CompatibilityFallbackHandler() Traceback (most recent call last):

-> this is the error message and the slither version is 0.10.0

0xalpharush commented 5 months ago

This was discussed here https://github.com/crytic/slither/issues/2354. Could you see if that helps and let us know what you need help with, if any, afterward?