code-d 0.17.0 + serve-d 0.1.2

Arredondo arm.plus at gmail.com
Tue Apr 3 23:50:24 UTC 2018


I could not get this to work for me in the past (I'm using 
Windows 10). I saw this announcement so I decided to try again. 
After reinstalling code-d I got this in the OUTPUT console:

Installing DCD
Installing into C:\Users\Wulfrick\AppData\Roaming\code-d\bin
  > git clone --recursive --depth=1 
https://github.com/Hackerpilot/DCD.git DCD
Failed to install DCD
std.process.ProcessException at std\process.d(753): Failed to spawn 
new process (The system cannot find the file specified.)
----------------
0x00384D1F
0x00384AD2
0x00382ADD

The syntax coloring seems wrong, go to definition doesn't work, 
and there are no completition suggestions (Ctr+Space just 
displays "Loading...").

Moreover, the extension is completely SPAMMING the output 
console, making it pop up constantly with endless messages like:


2018-04-04T01:33:46.184:source\served\jsonrpc.d:send:66 
{"id":27,"jsonrpc":"2.0","result":{"command":{"arguments":[],"command":"","title":"~30ms for importing this"},"data":{"code":"import std.algorithm.iteration : sum;","module":"std.algorithm.iteration","type":"importcompilecheck"},"range":{"end":{"character":4,"line":245},"start":{"character":4,"line":245}}}}
2018-04-04T01:33:46.184:source\app.d:main:226 Has Message
2018-04-04T01:33:46.184:source\app.d:main:228 Message: 
RequestMessage(28, "codeLens/resolve", {"data":{"code":"import 
std.algorithm.comparison : 
max;","module":"std.algorithm.comparison","type":"importcompilecheck"},"range":{"end":{"character":4,"line":250},"start":{"character":4,"line":250}}})
2018-04-04T01:33:46.200:source\app.d:__lambda10:234 Processing as 
request
2018-04-04T01:33:46.200:source\app.d:processRequest:77 Calling 
resolveCodeLens
2018-04-04T01:33:46.200:source\app.d:__lambda10:236 Responding 
with: ResponseMessage(28, 
{"command":{"arguments":[],"command":"","title":"~280ms for 
importing this"},"data":{"code":"import std.algorithm.comparison 
: 
max;","module":"std.algorithm.comparison","type":"importcompilecheck"},"range":{"end":{"character":4,"line":250},"start":{"character":4,"line":250}}}, null(ResponseError))
2018-04-04T01:33:46.200:source\served\jsonrpc.d:send:66 
{"id":28,"jsonrpc":"2.0","result":{"command":{"arguments":[],"command":"","title":"~280ms for importing this"},"data":{"code":"import std.algorithm.comparison : max;","module":"std.algorithm.comparison","type":"importcompilecheck"},"range":{"end":{"character":4,"line":250},"start":{"character":4,"line":250}}}}
2018-04-04T01:33:46.200:source\app.d:main:226 Has Message
2018-04-04T01:33:46.200:source\app.d:main:228 Message: 
RequestMessage(29, "codeLens/resolve", {"data":{"code":"import 
std.range : 
iota;","module":"std.range","type":"importcompilecheck"},"range":{"end":{"character":4,"line":251},"start":{"character":4,"line":251}}})
2018-04-04T01:33:46.216:source\app.d:__lambda10:234 Processing as 
request
2018-04-04T01:33:46.216:source\app.d:processRequest:77 Calling 
resolveCodeLens
2018-04-04T01:33:46.216:source\app.d:__lambda10:236 Responding 
with: ResponseMessage(29, 
{"command":{"arguments":[],"command":"","title":"~290ms for 
importing this"},"data":{"code":"import std.range : 
iota;","module":"std.range","type":"importcompilecheck"},"range":{"end":{"character":4,"line":251},"start":{"character":4,"line":251}}}, null(ResponseError))





... and it goes like this for a while. This is at the very bottom:





[Info  - 1:33:54 AM] Connection to server got closed. Server will 
restart.
[Error - 1:33:54 AM] Request textDocument/codeLens failed.
Error: Connection got disposed.
	at Object.dispose 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
[Error - 1:33:54 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)


Just my two cents.


More information about the Digitalmars-d-announce mailing list