Comments renaming should not be allowed #3915
Labels
status: needs triage
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
Which OS do you use?
Operating System: openSUSE Tumbleweed 20231206
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.3-1-default (64-bit)
Graphics Platform: X11
Which version of GHC do you use and how did you install it?
Output of
haskell-language-server-wrapper --probe-tools
:Installed via
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
How is your project built (alternative: link to the project)?
N/A
Which LSP client (editor/plugin) do you use?
VSCode 1.85.0 +
haskell.haskell
2.4.2Which version of HLS do you use and how did you install it?
See above.
Have you configured HLS in any way (especially: a
hie.yaml
file)?No.
Steps to reproduce
I discovered the issue accidentally when using a spell checker to correct a typo in my comment. But it caused an error message from HLS. These are the steps to reproduce:
Open a
.hs
file and place the cursor on a comment.Press
F2
.The word will be prompted to rename.
Enter a new word and press
Enter
, error occurs:Expected behaviour
Renaming comments should never be allowed, i.e, pressing
F2
on comments should have no effect at all.Actual behaviour
There is a renaming prompt but renaming will eventually cause error.
Include debug information
Execute in the root of your project the command
haskell-language-server-wrapper --debug .
and paste the logs here (you can find the executable location here):Debug output:
Paste the contents of extension specific log, you can check instructions about how to find it here
Extension log:
The text was updated successfully, but these errors were encountered: