Skip to content

Retrie refactoring fails when variable name has quote mark #1831

Open
@2jacobtan

Description

@2jacobtan

These lines from output suggest the reason for failure.

My variable was named ry'

shellCmd:
xargs grep -l 'ry''

Using VSCode Haskell extension, latest version (v1.4.0).
On WSL2 Ubuntu.

haskell-language-server version: 1.0.0.0 (GHC: 8.10.4) (PATH: /home/jt2/.ghcup/bin/haskell-language-server-wrapper-1.0.0) (GIT hash: 4cd1cf934638881e52b3eba9f70157a4b799c0e9)
Tool versions found on the $PATH
cabal:          3.4.0.0
stack:          2.7.1
ghc:            8.10.4

Related note: the file sometimes needs to be saved first, before activating retrie refactoring. Probably expected behaviour. In case someone finds this useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-retrie-pluginlevel: easyThe issue is suited for beginnerstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions