www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - serve-d break on every update of vs code

reply greatsam4sure <greatsam4sure gmail.com> writes:
vs code update every time I am connected to internet. Each time I 
accept the update my code-d stops to show autocomplete. what is 
the best way to solve this problem.

Just updated today. These are the error report



Installing into C:\Users\Greatsam\AppData\Roaming\code-d\bin
 git clone --recursive https://github.com/Pure-D/serve-d.git 
 serve-d
Cloning into 'serve-d'...
 dub upgrade
Upgrading project in C:\Users\Greatsam\AppData\Roaming\code-d\bin\serve-d
 dub build --arch=x86_mscoff
Running pre-generate commands for dfmt... Running pre-generate commands for dscanner... Performing "debug" build using dmd for x86, x86_mscoff. diet-complete 0.0.1: building configuration "library"... ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(409,43): Error: statement expected to be `{ }`, not `(` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(409,50): Error: template argument expected following `!` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(409,50): Error: found `is` when expecting `)` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(409,53): Error: missing `{ ... }` for function literal ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(409,53): Error: found `null` when expecting `;` following statement ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(409,57): Error: declaration expected, not `)` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\diet \complete.d(413,9): Error: no identifier for declarator `code` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\diet \complete.d(413,9): Error: declaration expected, not `~=` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\diet \complete.d(414,4): Error: declaration expected, not `if` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(417,16): Error: unexpected `(` in declarator ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(417,22): Error: no identifier for declarator `stmt.accept(this)` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(418,10): Error: no identifier for declarator `code` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(418,10): Error: declaration expected, not `~=` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(423,35): Error: statement expected to be `{ }`, not `(` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(423,42): Error: template argument expected following `!` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(423,42): Error: found `is` when expecting `)` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(423,45): Error: missing `{ ... }` for function literal ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(423,45): Error: found `null` when expecting `;` following statement ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\dietc complete.d(423,49): Error: declaration expected, not `)` ..\..\..\..\Local\dub\packages\diet-complete-0.0.1\diet-complete\source\diet \complete.d(426,5): Error: declaration expected, not `if` dmd failed with exit code 1. Failed to install serve-d (Error code 2)
Nov 30 2018
next sibling parent reply WebFreak001 <d.forum webfreak.org> writes:
On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure wrote:
 vs code update every time I am connected to internet. Each time 
 I accept the update my code-d stops to show autocomplete. what 
 is the best way to solve this problem.

 [...]
hi, update dmd
Nov 30 2018
parent greatsam4sure <greatsam4sure gmail.com> writes:
On Friday, 30 November 2018 at 14:38:14 UTC, WebFreak001 wrote:
 On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure 
 wrote:
 vs code update every time I am connected to internet. Each 
 time I accept the update my code-d stops to show autocomplete. 
 what is the best way to solve this problem.

 [...]
hi, update dmd
I am using dmd 2.083. What can I do next
Nov 30 2018
prev sibling parent reply Laurent =?UTF-8?B?VHLDqWd1aWVy?= <laurent.treguier.sink gmail.com> writes:
On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure wrote:
 vs code update every time I am connected to internet. Each time 
 I accept the update my code-d stops to show autocomplete. what 
 is the best way to solve this problem.

 Just updated today. These are the error report



 Installing into C:\Users\Greatsam\AppData\Roaming\code-d\bin
 git clone --recursive https://github.com/Pure-D/serve-d.git 
 serve-d
Cloning into 'serve-d'...
 dub upgrade
Upgrading project in C:\Users\Greatsam\AppData\Roaming\code-d\bin\serve-d
 dub build --arch=x86_mscoff
Running pre-generate commands for dfmt... Running pre-generate commands for dscanner... Performing "debug" build using dmd for x86, x86_mscoff. [...]
If you need to keep your dmd at a version that can't compile it, there is a precompiled binary for Windows in the Github releases
Nov 30 2018
parent reply greatsam4sure <greatsam4sure gmail.com> writes:
On Friday, 30 November 2018 at 16:24:35 UTC, Laurent Tréguier 
wrote:
 On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure 
 wrote:
 vs code update every time I am connected to internet. Each 
 time I accept the update my code-d stops to show autocomplete. 
 what is the best way to solve this problem.

 Just updated today. These are the error report



 Installing into C:\Users\Greatsam\AppData\Roaming\code-d\bin
 [...]
Cloning into 'serve-d'...
 [...]
Upgrading project in C:\Users\Greatsam\AppData\Roaming\code-d\bin\serve-d
 [...]
Running pre-generate commands for dfmt... Running pre-generate commands for dscanner... Performing "debug" build using dmd for x86, x86_mscoff. [...]
If you need to keep your dmd at a version that can't compile it, there is a precompiled binary for Windows in the Github releases
Plz I need more explanation
Nov 30 2018
parent reply WebFreak001 <d.forum webfreak.org> writes:
On Friday, 30 November 2018 at 22:37:02 UTC, greatsam4sure wrote:
 On Friday, 30 November 2018 at 16:24:35 UTC, Laurent Tréguier 
 wrote:
 On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure 
 wrote:
 vs code update every time I am connected to internet. Each 
 time I accept the update my code-d stops to show 
 autocomplete. what is the best way to solve this problem.

 Just updated today. These are the error report



 Installing into C:\Users\Greatsam\AppData\Roaming\code-d\bin
 [...]
Cloning into 'serve-d'...
 [...]
Upgrading project in C:\Users\Greatsam\AppData\Roaming\code-d\bin\serve-d
 [...]
Running pre-generate commands for dfmt... Running pre-generate commands for dscanner... Performing "debug" build using dmd for x86, x86_mscoff. [...]
If you need to keep your dmd at a version that can't compile it, there is a precompiled binary for Windows in the Github releases
Plz I need more explanation
Are you running vscode in some kind of sandbox like a flatpak or something? Try running dmd --version and send the output. To validate, try manually compiling serve-d: git clone --recursive https://github.com/Pure-D/serve-d.git serve-d cd serve-d dub build --arch=x86_mscoff
Nov 30 2018
parent greatsam4sure <greatsam4sure gmail.com> writes:
On Friday, 30 November 2018 at 23:02:13 UTC, WebFreak001 wrote:
 On Friday, 30 November 2018 at 22:37:02 UTC, greatsam4sure 
 wrote:
 On Friday, 30 November 2018 at 16:24:35 UTC, Laurent Tréguier 
 wrote:
 On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure 
 wrote:
 vs code update every time I am connected to internet. Each 
 time I accept the update my code-d stops to show 
 autocomplete. what is the best way to solve this problem.

 Just updated today. These are the error report



 Installing into C:\Users\Greatsam\AppData\Roaming\code-d\bin
 [...]
Cloning into 'serve-d'...
 [...]
Upgrading project in C:\Users\Greatsam\AppData\Roaming\code-d\bin\serve-d
 [...]
Running pre-generate commands for dfmt... Running pre-generate commands for dscanner... Performing "debug" build using dmd for x86, x86_mscoff. [...]
If you need to keep your dmd at a version that can't compile it, there is a precompiled binary for Windows in the Github releases
Plz I need more explanation
Are you running vscode in some kind of sandbox like a flatpak or something? Try running dmd --version and send the output. To validate, try manually compiling serve-d: git clone --recursive https://github.com/Pure-D/serve-d.git serve-d cd serve-d dub build --arch=x86_mscoff
Sorry, I am not using dmd 2.083 but 2.080. I just check and update it. It is a mistake on my part. I was using dmd 2.083 before but due to link error with vibe.d 0.8.4, I change it. It is just show installing DCD for a long time without installing it. I guess it is network issue. I think it will install later
Nov 30 2018