Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
1d9fbc31
Commit
1d9fbc31
authored
Aug 27, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CLI with relative path
parent
d4793079
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
compiler.ts
libs/remix-solidity/src/compiler/compiler.ts
+1
-2
compiler.ts
libs/remix-tests/src/compiler.ts
+1
-1
run.ts
libs/remix-tests/src/run.ts
+2
-1
No files found.
libs/remix-solidity/src/compiler/compiler.ts
View file @
1d9fbc31
...
...
@@ -130,10 +130,9 @@ export class Compiler {
onCompilationFinished
(
data
:
CompilationResult
,
missingInputs
?:
string
[],
source
?:
SourceWithTarget
):
void
{
let
noFatalErrors
=
true
// ie warnings are ok
const
checkIfFatalError
=
(
error
:
CompilationError
)
=>
{
// Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround
const
isValidError
=
(
error
.
message
&&
error
.
message
===
'Deferred import'
)
?
false
:
error
.
severity
!==
'warning'
const
isValidError
=
(
error
.
message
&&
error
.
message
.
includes
(
'Deferred import'
)
)
?
false
:
error
.
severity
!==
'warning'
if
(
isValidError
)
noFatalErrors
=
false
}
if
(
data
.
error
)
checkIfFatalError
(
data
.
error
)
...
...
libs/remix-tests/src/compiler.ts
View file @
1d9fbc31
...
...
@@ -129,7 +129,7 @@ export function compileFileOrFiles(filename: string, isDirectory: boolean, opts:
],
function
(
err
:
Error
|
null
|
undefined
,
result
:
any
)
{
const
error
:
Error
[]
=
[]
if
(
result
.
error
)
error
.
push
(
result
.
error
)
const
errors
=
(
result
.
errors
||
error
).
filter
((
e
)
=>
e
.
type
===
'Error'
||
e
.
severity
===
'error'
)
const
errors
=
(
result
.
errors
||
error
).
filter
((
e
)
=>
(
e
.
type
===
'Error'
||
e
.
severity
===
'error'
)
)
if
(
errors
.
length
>
0
)
{
if
(
!
isBrowser
)
require
(
'signale'
).
fatal
(
errors
)
return
cb
(
new
CompilationErrors
(
errors
))
...
...
libs/remix-tests/src/run.ts
View file @
1d9fbc31
import
commander
from
'commander'
import
Web3
from
'web3'
;
import
path
from
'path'
import
{
runTestFiles
}
from
'./runTestFiles'
import
fs
from
'./fileSystem'
import
{
Provider
}
from
'@remix-project/remix-simulator'
...
...
@@ -58,7 +59,7 @@ commander
}
const
isDirectory
=
fs
.
lstatSync
(
filename
).
isDirectory
()
runTestFiles
(
filename
,
isDirectory
,
web3
)
runTestFiles
(
path
.
resolve
(
filename
)
,
isDirectory
,
web3
)
})
if
(
!
process
.
argv
.
slice
(
2
).
length
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment