haskell / haskell/haskell-language-server

Error: "Connection got disposed" on eval

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

Description

versions
Haskell extension v1.7.1.
GHCi, version 8.10.7
Vscode:

```
Version: 1.62.2
Commit: 3a6960b964327f0e3882ce18fcebd07ed191b316
Date: 2021-11-11T20:59:05.913Z (5 days ago)
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0
```

### How to reproduce

Assume the following code. Opened in Vscode as `test.hs`.

```haskell
{-|
>>> add 1 2

}
add x y = x + y
```

1. The extension will show `Evaluate...` on top of `>>>add 1 2`.
1. At first it is just stating evaluating without response.
1. Once clicked a new window pops up in the bottom right corner of the window
2. It states ` REDCROSS_IN_CIRCLE Connection got disposed`

#### What I tried.
1. I tried to run the command `>Haskell: Restart Haskell LSP Server`
2. I rebooted the system

No fix as of now.

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.