Originally Discussed Here: fortran-lang/vscode-fortran-support#574
Describe the bug
I have a subroutine in a large code base. I get an underlined error indicator for character(len=10) when there happens to be a variable len declared elsewhere. When I hover over the error underlining, the message says Object "len" not found in scope and then gives the name of the file where the variable len is declared as an object.

The "len" statemen inside a character declaration should never refer to a declared variable named len, right? This may be a bug in fortls.
Describe the bug
I have a subroutine in a large code base. I get an underlined error indicator for
character(len=10)when there happens to be a variablelendeclared elsewhere. When I hover over the error underlining, the message saysObject "len" not found in scopeand then gives the name of the file where the variablelenis declared as an object.The "len" statemen inside a character declaration should never refer to a declared variable named len, right? This may be a bug in fortls.