fortls
fortls copied to clipboard
Incomplete hover of parameters variables
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:
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
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
.