d-language-server / vscode-dlang

D language support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=LaurentTreguier.vscode-dls
MIT License
22 stars 7 forks source link

No compiler found in PATH #10

Closed sgf closed 5 years ago

sgf commented 5 years ago

when im enable this plugs its always "No compiler found in PATH"

but im sure the PATH is exists the DMD path

and idont know how to use it. what should i do?

LaurentTreguier commented 5 years ago

What editor and OS are you using?

sgf commented 5 years ago

VS-Code the last version DMD the last version windows 10 x64

And Smart tip is not valid (code-d is work fine,but code-d's Compile has some problem)

LaurentTreguier commented 5 years ago

Can you do where dub and where dmd in the command console ?

LaurentTreguier commented 5 years ago

You can also try to do dub fetch dls and dub run dls:bootstrap in the command console, and restart VSCode.

sgf commented 5 years ago

C:\WINDOWS\system32>where dub
D:\AppDev\D\dmd2\windows\bin\dub.exe

C:\WINDOWS\system32>where dmd
D:\AppDev\D\dmd2\windows\bin\dmd.exe

C:\WINDOWS\system32>dub fetch dls
Fetching dls 0.24.4...
Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.

C:\WINDOWS\system32>dub run dls:bootstrap
Building package dls:bootstrap in C:\Users\super\AppData\Local\dub\packages\dls-0.24.4\dls\bootstrap\
Running pre-generate commands for dls:i18n...
Performing "debug" build using D:\AppDev\D\dmd2\windows\bin\dmd.exe for x86.
dls:protocol 0.24.4: building configuration "library"...
dls:i18n 0.24.4: building configuration "library"...
dls:bootstrap 0.24.4: building configuration "application"...
Linking...
Running ..\..\Users\super\AppData\Local\dub\packages\dls-0.24.4\dls\bootstrap\dls_bootstrap.exe
LaurentTreguier commented 5 years ago

After some time, it should stop and output C:\Users\super\AppData\Local\dub\packages\.bin\dls-latest\dls.exe. Does it never stop?

sgf commented 5 years ago

I have this file C:\Users\super\AppData\Local\dub\packages\.bin\dls-v0.24.4\dls.exe

LaurentTreguier commented 5 years ago

If you have this file, then now the extension should be able to work without saying No compiler found in PATH.

sgf commented 5 years ago

thank you i will test that later. dls.exe is new file in my disk.

sgf commented 5 years ago

Hi,was DLS support IntelliSense now ?

LaurentTreguier commented 5 years ago

If you don't have an error, DLS should support intellisense

sgf commented 5 years ago

have little ,but no such as parmeters info of functions . and input chars no full functions list out. example: im input 'wr' it wont list out all 'wr' begin's function of all namespace at current d file what im imports;

was there config for that? im used VisualD before, its also has little intellisense support,but little better for DLS.

LaurentTreguier commented 5 years ago

This is partly because D is hard to parse. DLS uses DCD for completion. Do you use Dub for your projects ?

sgf commented 5 years ago

yes,im use dub create project and build. but just do that things.no others. thank you. Now I know why so many years there's not a easy to use IDE for the D language .