You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The range comes directly from lfortran --show-errors. If you check the character range that is underscored, it is from character/column 32 through 38, as the diagnostic shows below:
lfortran --show-errors --continue-compilation -I. snap_main.f90 | jq
{
"uri": "uri",
"diagnostics": [
{
"source": "lpyth",
"range": {
"start": {
"line": 97,
"character": 33
},
"end": {
"line": 97,
"character": 37
}
},
"message": "Symbol 'iproc' from module 'plib_module' shadows 'iproc' in the current scope",
"severity": 2
},
{
"source": "lpyth",
"range": {
"start": {
"line": 97,
"character": 40
},
"end": {
"line": 97,
"character": 43
}
},
"message": "Symbol 'root' from module 'plib_module' shadows 'root' in the current scope",
"severity": 2
},
{
"source": "lpyth",
"range": {
"start": {
"line": 100,
"character": 32
},
"end": {
"line": 100,
"character": 38
}
},
"message": "Symbol 'swp_typ' from module 'control_module' shadows 'swp_typ' in the current scope",
"severity": 2
}
]
}
In SNAP:
The location is incorrect.
The text was updated successfully, but these errors were encountered: