Skip to content

Incomplete hover of parameters variables #284

Closed
@gbogopolsky

Description

@gbogopolsky

Describe the bug
When hovering over a variable that was defined as a computed parameter, only the first member of the computation shows up

To Reproduce
Define a computed parameter, use it in the code and hover over it.
If there is a space or "/" in the parameter definition, anything after will not show up.

real(8), parameter :: three = 1.0d0*3.0d0
real(8), parameter :: six = 2.0d0 * 3.0d0
real(8), parameter :: one = 1.0d0
real(8), parameter :: sixth = one / six
real(8), parameter :: third = one/three

On Hovering, one gets the following:

image
image
image
image
image

Except when there is a "*" without spaces, the second term of the computed parameter is always missing.

Expected behavior
I would expect the whole line to show up, until an endline character or the start of a comment.

Setup information (please complete the following information):

  • OS: Mac with Linux SSH Server
  • Python 3.8.1
  • fortls 2.13.0
  • VS Code
  • Modern Fortran v3.4.2023051701

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions