haskell / haskell/haskell-language-server

evaluate plugin error hPutChar: invalid argument (cannot encode character '\8216')

Open
#3,841 14 comments 0 reactions 0 assignees View on GitHub
can-workaround component: hls-eval-plugin type: bug type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

### Your environment

Which OS do you use?
windows 10

Which version of GHC do you use and how did you install it?
ghc 9.8.1 / tried other versions 9.2.2 same issue

How is your project built (alternative: link to the project)?
stack build

Which LSP client (editor/plugin) do you use?

vscode latest + extension Haskell v2.4.1

Which version of HLS do you use and how did you install it?
hls v 2.4.0.0
ghcup installed it

Have you configured HLS in any way (especially: a `hie.yaml` file)?
no

### Steps to reproduce

stack new project

in any hs file

try add evaluation
{-| double
>>> double 2
: hPutChar: invalid argument (cannot encode character '\8216')
-}

double :: Num a => a -> a
double x = (2*x)

### Expected behaviour

{-| double
>>> double 2
4
-}

### Actual behaviour

{-| double
>>> double 2
: hPutChar: invalid argument (cannot encode character '\8216')
-}

### Debug information

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.