[WINDOWS] failed to initialize LSP server: server did not provide SemanticTokensProvider
- Lenguaje dominante
- Go
- Estrellas
- 390
- Forks
- 57
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 1
Descripción
I installed on windows 11 with python 3.14.
I provide the steps:
## Install scoop
```Powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
```
## Install mingw
```
scoop install mingw
```
## Install abcoder
```
go env -w CGO_ENABLED=1
go install github.com/cloudwego/abcoder@latest
```
## After installing I run it:
```
abcoder parse python ../rojo -o rojo_abcoder.json -verbose
[ERROR]14:46:39 lib.go:70: Installing pylsp... Now running git clone -b abc https://github.com/Hoblovski/python-lsp-server.git pylsp
[ERROR]14:46:39 lib.go:72: git clone failed: exit status 128
[INFO]14:46:40 parse.go:138: open file '' and wait for 5 seconds for initialize workspace
[INFO]14:46:40 parse.go:81: start initialize LSP server pylsp...
[ERROR]14:46:40 parse.go:91: failed to initialize LSP server: Failed to start LSP server: exec: "pylsp": executable file not found in %PATH%
[ERROR]14:46:40 main.go:142: Failed to parse: Failed to start LSP server: exec: "pylsp": executable file not found in %PATH%
```
## Install pylsp by hand
```
pip install python-lsp-server[all]
```
## Second Run:
```
abcoder parse python ../rojo -o rojo_abcoder.json -verbose
[ERROR]14:36:18 parse.go:91: failed to initialize LSP server: server did not provide SemanticTokensProvider
[ERROR]14:36:18 main.go:142: Failed to parse: server did not provide SemanticTokensProvider
```
Guía de contribución
Línea de trabajo
Reproduce la segunda ejecución con la configuración indicada de Windows y Python y, a continuación, inspecciona el fallo de instalación en lib.go:70-72 y el inicio de LSP a través de parse.go:81 y parse.go:91. Comprueba main.go:142 para ver la ruta del fallo indicada. Se considera completado cuando abcoder pueda analizar el objetivo sin el error de inicialización de SemanticTokensProvider.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- go, python
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100