cloudwego / cloudwego/abcoder

[WINDOWS] failed to initialize LSP server: server did not provide SemanticTokensProvider

Ouverte
#136 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
390
Forks
57
Merge moyen
2 j 21 h
PR mergées (30 j)
1

Description

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
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez la deuxième exécution avec la configuration Windows et Python indiquée, puis examinez l’échec de l’installation à lib.go:70-72 ainsi que le démarrage de LSP via parse.go:81 et parse.go:91. Vérifiez main.go:142 pour le chemin d’échec signalé. C’est terminé lorsque abcoder peut analyser la cible sans l’erreur d’initialisation de SemanticTokensProvider.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go, python
Domaine
devtools
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.