fortran-language-server icon indicating copy to clipboard operation
fortran-language-server copied to clipboard

Renaming module does not detect USEs with different uppercase/lowercase

Open cafhach opened this issue 5 years ago • 2 comments

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

cafhach avatar Feb 03 '20 13:02 cafhach

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

hansec avatar Mar 31 '20 21:03 hansec

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

JHenneberg avatar Oct 02 '20 07:10 JHenneberg