Skip to content

bug: Error hovering an associated function #269

@minhqdao

Description

@minhqdao

When I use the Modern Fortran plugin in VSCode and hover hi in this little piece of code:

program main
  implicit none

  associate (hi => say_hi())
    if (hi) print *, 'Bye'
  end associate

contains

  logical function say_hi()
    print *, 'Hi'
    say_hi = .true.
  end

end program

I get this error message:

Screenshot 2023-03-19 at 22 51 04

The program, however, runs normally and prints:

Hi
Bye

Specs

  • macOS Ventura 13.2.1, M1
  • Visual Studio Code 1.76.2
  • Modern Fortran v3.2.0, but the same is observed on the pre-release version v3.4.2023030801
  • fortls 2.13.0, installed via Homebrew
  • Python 3.11.2

Related Issues: #214, #108

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglsp/hoverIssues related with hovering requests

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions