Skip to content

character(len=*) underlined as an error when len is a declared variable elsewhere. #173

Description

@blaylockbk

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.

image

The "len" statemen inside a character declaration should never refer to a declared variable named len, right? This may be a bug in fortls.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions