dlang-vscode icon indicating copy to clipboard operation
dlang-vscode copied to clipboard

Install fail

Open TurkeyMan opened this issue 6 years ago • 1 comments

I installed the plugin, it tried to fetch and build dependent tools. This failed pretty spectacularly.

In addition to not working, it also took ages to build! Why wouldn't we just pull a binary? Binary distribution is best distribution ;)

Dub fetch : dfix
Dub build : dfix
Error: linker exited with status 1
C:\dev\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
Dub fetch : d-profile-viewer
Dub build : d-profile-viewer
Dub fetch : dcd
Dub build : dcd (client)
Dub fetch : dcd
Dub build : dcd (server)
DCD : starting server...
Dub fetch : dfmt
Dub build : dfmt
src\dfmt\main.d(90,38): Deprecation: function `std.exception.enforceEx!(GetOptException).enforceEx!bool.enforceEx` is deprecated - Use `enforce`. `enforceEx` will be removed with 2.089.
Error: linker exited with status 1
C:\dev\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
Dub fetch : dscanner
Dub build : dscanner
Invalid source/import path: C:\Users\Manu\AppData\Local\dub\packages\dscanner-0.5.3\dscanner\bin
src\dscanner\analysis\unused.d(314,18): Error: no property `statementNoCaseNoDefault` for type `const(WithStatement)`
C:\dev\D\dmd2\windows\bin\dmd.exe failed with exit code 1.

TurkeyMan avatar May 14 '18 04:05 TurkeyMan

There hasn't been much development on here recently. Developing a complete extension takes time, and it's only compatible with one editor; since Microsoft has been developing the Language Server Protocol to remedy this, I've begun working on a language server to get all the work to something that could be used by more than just one editor. I didn't try to integrate it with this extension simply because it started out with not nearly as many features.

Regarding the linker problem, maybe using a build from the development branch would give you better results ?

The reasons for building the tools instead of using binaries are :

  • it would have required hosting the binaries somewhere (I don't think DCD & others had binaries on Github back then)
  • it's cross-platform and thus easier to do (I'm lazy)

LaurentTreguier avatar May 14 '18 17:05 LaurentTreguier