From 2a6a0d1f4bc458e4c03551f5ee857655dd6e9b01 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 1 Jun 2022 11:27:02 +0200 Subject: [PATCH 1/2] fixed file in error --- apps/solidity-compiler/src/app/compiler-api.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/solidity-compiler/src/app/compiler-api.ts b/apps/solidity-compiler/src/app/compiler-api.ts index 25dfb09925..fb8d848039 100644 --- a/apps/solidity-compiler/src/app/compiler-api.ts +++ b/apps/solidity-compiler/src/app/compiler-api.ts @@ -304,14 +304,15 @@ export const CompilerApiMixin = (Base) => class extends Base { if (data.errors) { for (const error of data.errors) { let pos = helper.getPositionDetails(error.formattedMessage) - if (pos.errFile) { + const file = pos.errFile + if (file) { pos = { row: pos.errLine, column: pos.errCol, text: error.formattedMessage, type: error.severity } - await this.call('editor', 'addAnnotation', pos, pos.errFile) + await this.call('editor', 'addAnnotation', pos, file) } } } From 0b871d4604ce9d404a6cc2f05a87c1226f62be3e Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 1 Jun 2022 11:36:45 +0200 Subject: [PATCH 2/2] Update publishIpfs --- apps/remix-ide/ci/publishIpfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/ci/publishIpfs b/apps/remix-ide/ci/publishIpfs index 0f8fd96ca0..0f4b1a7fc8 100755 --- a/apps/remix-ide/ci/publishIpfs +++ b/apps/remix-ide/ci/publishIpfs @@ -5,8 +5,8 @@ const { globSource } = IpfsHttpClient const folder = process.cwd() + '/dist/apps/remix-ide'; (async () => { - const host = 'ipfs.remixproject.org' - const ipfs = IpfsHttpClient({ host, port: 443, protocol: 'https' }) + const host = 'ipfs.infura.io' + const ipfs = IpfsHttpClient({ host, port: 5001, protocol: 'https' }) try { let result = await ipfs.add(globSource(folder, { recursive: true}), { pin: false }) const hash = result.cid.toString()