From 9047e367fd825626240e1bd904deac33afa3acf7 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 8 Jul 2021 15:49:00 +0100 Subject: [PATCH 1/3] Bump master to 0.15.0-dev --- package-lock.json | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9e028132b2..00f3c8bef9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "remix-project", - "version": "0.14.0-dev", + "version": "0.15.0-dev", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 70cc4eea20..3fccb111f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "remix-project", - "version": "0.14.0-dev", + "version": "0.15.0-dev", "license": "MIT", "description": "Ethereum Remix Monorepo", "keywords": [ @@ -177,7 +177,7 @@ "web3": "1.2.4", "winston": "^3.3.3", "ws": "^7.3.0" - }, + }, "devDependencies": { "@babel/core": "^7.4.5", "@babel/plugin-transform-modules-amd": "^7.10.4", From fd3686b8084f88876fa0af4351cfe6021a4a66ee Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 12 Jul 2021 09:51:01 +0200 Subject: [PATCH 2/3] Add solidity compile custom action (#1356) It doesn't necessarily need to be merged now. I've put some comment regarding the QA document regarding that. Co-authored-by: bunsenstraat --- apps/remix-ide/src/app/tabs/compile-tab.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index cb0773b2b0..038458e87d 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -33,7 +33,7 @@ const profile = { location: 'sidePanel', documentation: 'https://remix-ide.readthedocs.io/en/latest/solidity_editor.html', version: packageJson.version, - methods: ['getCompilationResult', 'compile', 'compileWithParameters', 'setCompilerConfig'] + methods: ['getCompilationResult', 'compile', 'compileWithParameters', 'setCompilerConfig', 'compileFile'] } @@ -508,6 +508,21 @@ class CompileTab extends ViewPlugin { onActivation () { this.call('manager', 'activatePlugin', 'solidity-logic') this.listenToEvents() + this.call('filePanel', 'registerContextMenuItem', { + id: 'solidity', + name: 'compileFile', + label: 'Compile', + type: [], + extension: ['.sol'], + path: [], + pattern: [] + }) + } + + compileFile (event) { + if (event.path.length > 0) { + this.compileTabLogic.compileFile(event.path[0]) + } } onDeactivation () { From 605d443a6c2392b162de3cad620ca1cdb4311584 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Tue, 13 Jul 2021 13:36:41 +0530 Subject: [PATCH 3/3] imports location fixed --- .../static-analyser/src/lib/remix-ui-static-analyser.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 be7e405499..bdf361e8c9 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 @@ -130,7 +130,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { row = location.start.line column = location.start.column locationString = row + 1 + ':' + column + ':' - fileName = Object.keys(lastCompilationResult.contracts)[file] + fileName = Object.keys(lastCompilationResult.sources)[file] } warningCount++ const msg = message(item.name, item.warning, item.more, fileName, locationString)