haskell / haskell/haskell-language-server

Retrie refactoring fails when variable name has quote mark

Open
#1,831 0 comments 0 reactions 0 assignees View on GitHub
component: hls-retrie-plugin level: easy type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
4d 3h
Merged PRs (30d)
12

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.