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
e50f292e
Commit
e50f292e
authored
Jan 12, 2021
by
aniket-engg
Committed by
Aniket
Jan 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting fix
parent
b8cfcac1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
renderer.js
apps/remix-ide/src/app/ui/renderer.js
+2
-2
No files found.
apps/remix-ide/src/app/ui/renderer.js
View file @
e50f292e
...
@@ -52,7 +52,7 @@ Renderer.prototype._errorClick = function (errFile, errLine, errCol) {
...
@@ -52,7 +52,7 @@ Renderer.prototype._errorClick = function (errFile, errLine, errCol) {
function
getPositionDetails
(
msg
)
{
function
getPositionDetails
(
msg
)
{
const
result
=
{}
const
result
=
{}
// To handle some compiler warning without location like SPDX license warning etc
// To handle some compiler warning without location like SPDX license warning etc
if
(
!
msg
.
includes
(
':'
))
return
{
errLine
:
-
1
,
errCol
:
-
1
,
errFile
:
msg
}
if
(
!
msg
.
includes
(
':'
))
return
{
errLine
:
-
1
,
errCol
:
-
1
,
errFile
:
msg
}
...
@@ -107,7 +107,7 @@ Renderer.prototype.error = function (message, container, opt) {
...
@@ -107,7 +107,7 @@ Renderer.prototype.error = function (message, container, opt) {
// For compiler version 0.8.0 and upcoming versions, errors and warning will be reported in a different way
// For compiler version 0.8.0 and upcoming versions, errors and warning will be reported in a different way
// Above method regex will return type of error as 'errFile'
// Above method regex will return type of error as 'errFile'
// Comparison of 'errFile' with passed error type will ensure the reporter type
// Comparison of 'errFile' with passed error type will ensure the reporter type
if
(
!
position
.
errFile
||
(
opt
.
errorType
&&
opt
.
errorType
===
position
.
errFile
))
{
if
(
!
position
.
errFile
||
(
opt
.
errorType
&&
opt
.
errorType
===
position
.
errFile
))
{
// Updated error reported includes '-->' before file details
// Updated error reported includes '-->' before file details
const
errorDetails
=
text
.
split
(
'-->'
)
const
errorDetails
=
text
.
split
(
'-->'
)
...
...
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