fortls icon indicating copy to clipboard operation
fortls copied to clipboard

Incomplete hover of parameters variables

Open gbogopolsky opened this issue 1 year ago • 1 comments

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

gbogopolsky avatar May 19 '23 14:05 gbogopolsky

I suggest the solution of this bug. Add several tests. But pytest -v failed in one test test/test_interface.py::test_version_update_pypi.

folk85 avatar Jun 11 '23 07:06 folk85