hansec / fortran-language-server

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

Renaming module does not detect USEs with different uppercase/lowercase #156

Open cafhach opened 4 years ago

cafhach commented 4 years ago

The module "Test" is renamed to "Result"

module Test
end module

Points where the module was USEd with the exact same lowercase/uppercase are correctly renamed

subroutine bla()
use Test
end subroutine

But other points, were the module names was referenced with different lowercase/uppercase are not correctly renamed

subroutine bla2()
use test
end subroutine
hansec commented 4 years ago

Thanks for the report. Unfortunately, I am unable to reproduce this issue with the simple single file case below. Can you test if this error still occurs with the file below and if so, can you please provide more information about your setup (fortls version, editor, and OS)?

module Test
end module

subroutine bla()
use Test
end subroutine

subroutine bla2()
use test
end subroutine
JHenneberg commented 3 years ago

I can confirm that it is working on WIN 10, VSCode 1.49.2, 1.11.1