From 1576493862b1a7120c798699e111a38f5b09a6c0 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 9 Oct 2024 17:50:44 +0200 Subject: [PATCH] extract relative path --- apps/vyper/src/app/app.tsx | 8 +++++--- apps/vyper/src/app/utils/index.ts | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index a4dfc44b70..915cfd35bc 100644 --- a/apps/vyper/src/app/app.tsx +++ b/apps/vyper/src/app/app.tsx @@ -1,7 +1,7 @@ import { useState, useEffect, useRef } from 'react' import { IntlProvider } from 'react-intl' import { Renderer } from '@remix-ui/renderer' -import { remixClient } from './utils' +import { remixClient, extractRelativePath } from './utils' import { CompilationResult } from '@remixproject/plugin-api' // Components @@ -173,7 +173,7 @@ const App = () => {
setOutput({ ...output, [name]: update })} resetCompilerState={resetCompilerResultState} output={output} remixClient={remixClient}/>
-
+
{output && output.status === 'success' && <> @@ -181,8 +181,10 @@ const App = () => { } {output && output.status === 'failed' && output.errors && output.errors.map((error: VyperCompilationError, index: number) => { + // we need to tweak the path to not show the filesystem absolute error. + return