d-language-server / dls

A Language Server implementation for D
http://dls.dub.pm
106 stars 15 forks source link

dls server start error? #61

Closed xywf221 closed 4 years ago

xywf221 commented 4 years ago

vscode display : Connection to server is erroring. Shutting down server.

LaurentTreguier commented 4 years ago

What is your OS and its version ? If you just upgraded to macOS Catalina, can you try to reinstall DLS (by running dub fetch dls; dub run dls:bootstrap) ?

xywf221 commented 4 years ago

What is your OS and its version ? If you just upgraded to macOS Catalina, can you try to reinstall DLS (by running dub fetch dls; dub run dls:bootstrap) ?

macos mojave 10.14.6

LaurentTreguier commented 4 years ago

That's strange. I would have expected binaries to stay compatible with previous macOS versions. What is the output/error when running $HOME/.dub/packages/.bin/dls-latest/dls --version ?

Also, is this your first time trying the extension, or did it use to work ?

xywf221 commented 4 years ago

output: DLS version 0.25.16 [posix osx, x86_64, release, curl] Compiled with LDC 1.17.0 (DMDFE: 2087) If I remember correctly, I installed this extension before.

LaurentTreguier commented 4 years ago

This might be a crash when parsing a file in your workspace; this is going to be more complicated then. Does it work with a simple "Hello World" project created using something like dub init hello ?

xywf221 commented 4 years ago

using dub init hello created project iIt's normal.

xywf221 commented 4 years ago

I used 'vscode' to open a D file directly

LaurentTreguier commented 4 years ago

Ok, thanks for the info. I'll try to explore this more later today when I get back on my machine.

LaurentTreguier commented 4 years ago

Opening a file without a workspace should be fixed with version 0.25.17. It will be available within about an hour