-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNAP: setup and translv has wrong location #62
Comments
The location information for lfortran --lookup-name --continue-compilation -I. --line=102 --column=32 snap_main.f90 | jq
[
{
"kind": 12,
"location": {
"range": {
"start": {
"character": 29,
"line": 10
},
"end": {
"character": 22,
"line": 400
}
},
"uri": "translv.f90"
},
"name": "translv",
"filename": "translv.f90"
}
] |
Thanks, made this lfortran/lfortran#5860 (comment). |
MRE:
PROGRAM snap_main
USE setup_module, ONLY: setup
IMPLICIT NONE
INTEGER :: ierr, i
CALL setup ( )
END PROGRAM snap_main
MODULE setup_module
CONTAINS
SUBROUTINE setup ( )
INTEGER :: flg, &
mie
END SUBROUTINE setup
END MODULE setup_module % lfortran a.f90 --line=6 --column=9 --lookup-name | jq
[
{
"kind": 12,
"location": {
"range": {
"start": {
"character": 11,
"line": 4
},
"end": {
"character": 22,
"line": 8
}
},
"uri": "b.f90"
},
"name": "setup",
"filename": "b.f90"
}
] |
This is tricky, I am trying to debug we are correctly mapping as well but the highlight is shifted by an offset. |
I think it's the |
Finding definitions from the main program leads to this location:
Which is the right file and it's almost correct, but it should be 5 lines earlier, the column seems incorrect too.
The text was updated successfully, but these errors were encountered: