Skip to content

Function symbol rename does not rename the variable name inside the function #322

@aerosayan

Description

@aerosayan

I'm using neovim, and installed fortls using Mason.

In this code ...

    real pure function sind(x)

        real, intent(in), value :: x

        sind = sin(x*((4.0*atan(1.0))/180.0))

    end function

Going to the function name sind in the line real pure function sind(x) and renaming it using the symbol rename method in neovim( with fortls LSP) only changes the function name, and everywhere it's used, which is good, but does not change the internal variable name sind in the line sind = sin(x*((4.0*atan(1.0))/180.0))

I had to manually rename it.

It would be nice if the variable name sind was also renamed automatically.

I'm not sure if this was intended, or if it is a bug, but if it would be easy to support this feature, then I humbly request this to be supported.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglsp/renameIssues related with renaming objects

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions