Duplicate hints, popups, and processes opening project + standalone files

Abierto
#300 11 comentarios 9 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
haskell, typescript, vscode

Línea de trabajo

Comienza reproduciendo los hovers, las sugerencias y los procesos de haskell-language-server duplicados con las versiones indicadas de VS Code, la extensión, GHC y HLS. Después, inspecciona el ciclo de vida del proceso de HLS de la extensión de VS Code; se considera terminado cuando un único proceso del servidor sirve al workspace sin duplicar las funciones de lenguaje después de recargas o reinicios.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

type: bug

I’ve got a weird issue where hints, popups, etc. get duplicated. See for example this screenshot, where I have not one, but two lovely hovers showing the type of the symbol I’ve moused over, as well as duplicated suggestions above the imports to list their imported symbols explicitly:

Screen shot of the bug as described above

This was pretty baffling to me until I noticed that I’ve got not one, but two lovely haskell-language-server-wrapper & haskell-language-server-8.10.2 processes running 😄

Screen shot of the process table showing the duplicate processes

I’ve only got the one workspace open (and nothing else using hls), and the process group indicates that they were indeed launched by VS Code:

Screen shot showing the process groups for the processes

If I kill one of them, it gets relaunched, but relaunching VS Code generally gets it back down to one. I’ve had mixed results with this, however, and with reloading the window; when I first noticed this, it was spawning double processes on reload/relaunch too, and eventually I had to close all the panes in one editor group, close the editor group, and relaunch VS Code before it resolved and I could open the editor group and keep going with only a single set of processes. But eventually it happened again; unfortunately, I don’t know why.

I am using ghc 8.10.2 and the following HLS version, both installed via ghcup:

❱ haskell-language-server-8.10.2 --version
haskell-language-server version: 0.4.0.0 (GHC: 8.10.2) (PATH: /Users/rob/.ghcup/bin/haskell-language-server-8.10.2~0.4.0) (GIT hash: 0a18edde24923251a148cbbc0ae993a6aac83b9c)

I have v1.1.0 of this VS Code extension, v3.3.0 of the Haskell syntax extension, and have been using Version: 1.49.2 of VS Code itself, although it tells me there is an update so I will install it presently.

Lenguaje dominante
TypeScript
Estrellas
594
Forks
99
Merge medio
18 h 19 min
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de haskell/vscode-haskell

Todos los issues de haskell/vscode-haskell

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.