hansec / fortran-language-server

Fortran Language Server for the Language Server Protocol
MIT License
296 stars 57 forks source link

Handle old external definitions properly #220

Closed grisuthedragon closed 2 years ago

grisuthedragon commented 2 years ago

Dealing with very old style fortran codes, I have the following situation:

SUBROUTINE X()
EXTERNAL LSAME                                                                                                                  
LOGICAL LSAME
....
END SUBROUTINE 

where the language server claims

Error:Variable "LSAME" declared twice in scope 

which is not an error in this case.

gnikit commented 2 years ago

Duplicate of #169 This bug has been fixed in fortls(https://github.com/gnikit/fortls), a diverged fork I made from fortran-language-server

grisuthedragon commented 2 years ago

Thanks, I switched to your fork,