From 56e1f435f1a1678ed448d2f8a7603514725fde3b Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Thu, 1 Jul 2021 12:07:31 +0530 Subject: [PATCH] slither plugin timeout increased --- apps/remix-ide/src/remixEngine.js | 1 + .../static-analyser/src/lib/remix-ui-static-analyser.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/remixEngine.js b/apps/remix-ide/src/remixEngine.js index abf20340f6..2836d974b2 100644 --- a/apps/remix-ide/src/remixEngine.js +++ b/apps/remix-ide/src/remixEngine.js @@ -10,6 +10,7 @@ export class RemixEngine extends Engine { setPluginOption ({ name, kind }) { if (kind === 'provider') return { queueTimeout: 60000 * 2 } if (name === 'LearnEth') return { queueTimeout: 60000 } + if (name === 'slither') return { queueTimeout: 60000 * 4 } // Requires when a solc version is installed return { queueTimeout: 10000 } } diff --git a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx index 15b3297885..c18fea6478 100644 --- a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx +++ b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx @@ -263,7 +263,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { showWarningsByModule('Slither Analysis') } } - }).catch(() => { + }).catch((error) => { + console.log('Error found:', error) // This should be removed once testing done props.analysisModule.call('terminal', 'log', { type: 'error', value: '[Slither Analysis]: Error occured! See remixd console for details.' }) }) })