Thread overview | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 03, 2018 code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
new code-d (D extension for vscode) and serve-d (Language Server Protocol server for it) release See the CHANGELOG in vscode, or on https://github.com/Pure-D/code-d/blob/master/CHANGELOG.md Today massive improvements towards windows installation have been made and it should be a lot more painless now. Big thanks to Mike Franklin for helping me debug the windows installation, making this available very quickly and to p0nce for compiling the windows release because my VM wasn't working for this anymore. As now the extension is in stable and no longer requires the beta branch a lot of issues have been fixed and old ones which are probably no longer valid closed. If you find any issue please create a new one or reopen if you have an old issue. Here are some of my personal highlights: https://wfr.moe/fmEfTw.png - documentation inside autocompletion https://wfr.moe/fmq4Da.png - import timing https://wfr.moe/fmqCNt.png https://wfr.moe/fmqh3H.png - simple implement interface action n/a - everything compiles and installs without reloads or cumbersome dialogs, just install from marketplace, wait for the installation which should be very quick, especially with prebuilt binaries and start coding without any distractions! https://wfr.moe/fmzcS8.png - dub dependency browser n/a - automatic insertion of a module statement on rename and file creation code-d beta and code-d are therefore on the same release right now, but code-d beta will still be continuing to get features early. eager to hear your feedback, though gonna go to sleep for now. Planned for next release is internationalizing the final few messages which are in the code-d part, all serve-d parts have already been translated to German and Japanese and are determined by vscode language. |
April 03, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | 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@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. |
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Arredondo | On Tuesday, 3 April 2018 at 23:50:24 UTC, Arredondo wrote:
> 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.
I'm using it in Windows 10 right now, but I did have trouble trying to upgrade an existing installation. To remedy that, try to first delete the %appdata%\code-d directory, and then open VS Code again. It should try to re-install serve-d, and I believe it will then succeed.
mike
|
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Arredondo | On Tuesday, 3 April 2018 at 23:50:24 UTC, Arredondo wrote: > 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. I have a little more experience to share... > std.process.ProcessException@std\process.d(753): Failed to spawn new process (The system cannot find the file specified.) > ---------------- > 0x00384D1F > 0x00384AD2 > 0x00382ADD This seems to appear due to the import timing feature. You can disable it in your settings with `"d.enableDMDImportTiming": false` > Moreover, the extension is completely SPAMMING the output console, making it pop up constantly with endless messages like: The spam to the output console is normal (I think). It's actually quite useful when troubleshooting, and I don't think the popup window should show up uninvited. It doesn't for me, anyway. Mike |
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Arredondo | On Tuesday, 3 April 2018 at 23:50:24 UTC, Arredondo wrote: > 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@std\process.d(753): Failed to spawn new process (The system cannot find the file specified.) > ---------------- > 0x00384D1F > 0x00384AD2 > 0x00382ADD It looks like he doesn't have git installed... My extension still assumes you have git and that probably won't change until DCD provides precompiled binaries. > 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: Yes without DCD many things will not work but formatting, code linting and outline and dub should still work. Loading... should not happen. |
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | On Wednesday, 4 April 2018 at 06:36:41 UTC, WebFreak001 wrote: > On Tuesday, 3 April 2018 at 23:50:24 UTC, Arredondo wrote: >> 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@std\process.d(753): Failed to spawn new process (The system cannot find the file specified.) >> ---------------- >> 0x00384D1F >> 0x00384AD2 >> 0x00382ADD > > It looks like he doesn't have git installed... My extension still assumes you have git and that probably won't change until DCD provides precompiled binaries. > >> 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: > > Yes without DCD many things will not work but formatting, code linting and outline and dub should still work. Loading... should not happen. FYI the latest release of dfmt, dscanner and dcd comes with binaries for Linux. The next release will have binaries for OSX: https://github.com/dlang-community/DCD/pull/458 We are still trying to find the easiest way to build binaries for Window on our CIs, see e.g. https://github.com/dlang-community/discussions/issues/9 But either AppVeyor or Wine should work. |
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | On Wednesday, 4 April 2018 at 06:36:41 UTC, WebFreak001 wrote:
> On Tuesday, 3 April 2018 at 23:50:24 UTC, Arredondo wrote:
>> 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@std\process.d(753): Failed to spawn new process (The system cannot find the file specified.)
>> ----------------
>> 0x00384D1F
>> 0x00384AD2
>> 0x00382ADD
>
> It looks like he doesn't have git installed... My extension still assumes you have git and that probably won't change until DCD provides precompiled binaries.
>
>> 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:
>
> Yes without DCD many things will not work but formatting, code linting and outline and dub should still work. Loading... should not happen.
I now provide a precompiled DCD for windows, you can download it off the serve-d release page and just extract into %APPDATA%/code-d/bin (where the serve-d.exe is) and it will automatically find it. I am going to release a new release later which does this automatically.
|
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | Thanks for all the feedback you guys. I'll try the different suggestions when I get home tonight and I'll let you know. Cheers, Arredondo. |
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | Works for me very well out of box, much better than my previous attempts to use vscode. I'll test it more and probable I'll leave sublime text 3 for vscode. I appreciate your nice work! |
April 04, 2018 Re: code-d 0.17.0 + serve-d 0.1.2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | On Tuesday, 3 April 2018 at 23:02:42 UTC, WebFreak001 wrote: > new code-d (D extension for vscode) and serve-d (Language Server Protocol server for it) release > > See the CHANGELOG in vscode, or on https://github.com/Pure-D/code-d/blob/master/CHANGELOG.md > > Today massive improvements towards windows installation have been made and it should be a lot more painless now. > > Big thanks to Mike Franklin for helping me debug the windows installation, making this available very quickly and to p0nce for compiling the windows release because my VM wasn't working for this anymore. > > As now the extension is in stable and no longer requires the beta branch a lot of issues have been fixed and old ones which are probably no longer valid closed. If you find any issue please create a new one or reopen if you have an old issue. > > Here are some of my personal highlights: > > https://wfr.moe/fmEfTw.png - documentation inside autocompletion > https://wfr.moe/fmq4Da.png - import timing > https://wfr.moe/fmqCNt.png https://wfr.moe/fmqh3H.png - simple implement interface action > n/a - everything compiles and installs without reloads or cumbersome dialogs, just install from marketplace, wait for the installation which should be very quick, especially with prebuilt binaries and start coding without any distractions! > https://wfr.moe/fmzcS8.png - dub dependency browser > n/a - automatic insertion of a module statement on rename and file creation > > code-d beta and code-d are therefore on the same release right now, but code-d beta will still be continuing to get features early. > > eager to hear your feedback, though gonna go to sleep for now. > > Planned for next release is internationalizing the final few messages which are in the code-d part, all serve-d parts have already been translated to German and Japanese and are determined by vscode language. // >>> many Could not resolve location of module here <<< Server: 2018-04-04T19:04:39.205:..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\first.d:visit:418 Could not resolve location of module 'tango\io\device\File' Server: 2018-04-04T19:04:39.215:..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\first.d:visit:418 Could not resolve location of module 'tango\io\device\File' Server: 2018-04-04T19:04:39.434:src\dcd\server\main.d:main:163 Shutting down sockets... Server: 2018-04-04T19:04:39.434:src\dcd\server\main.d:main:168 Sockets shut down. Server: Server: core.exception.AssertError@..\..\..\..\Local\dub\packages\libdparse-0.8.0\libdparse\src\dparse\rollback_allocator.d(84): Assertion failure Server: ---------------- Server: 0x014F5533 in _d_assertp Server: 0x0149A709 in dparse at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\libdparse-0.8.0\libdparse\src\dparse\parser.d(4101) Server: 0x0142E89F in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\package.d(86) Server: 0x0141B4E1 in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\modulecache.d(193) Server: 0x014343AE in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(142) Server: 0x0142ABF8 in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(62) Server: 0x0142AC42 in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(77) Server: 0x0141B56B in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\modulecache.d(202) Server: 0x014343AE in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(142) Server: 0x0142ABF8 in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(62) Server: 0x0142AC42 in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(77) Server: 0x0141B56B in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\modulecache.d(202) Server: 0x014343AE in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(142) Server: 0x0142ABF8 in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(62) Server: 0x0142AC42 in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\conversion\second.d(77) Server: 0x0141B56B in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\bin\DCD\..\..\..\..\Local\dub\packages\dsymbol-0.3.0\dsymbol\src\dsymbol\modulecache.d(202) Server: 0x014343AE in dsymbol at C:\Users\Domain-Work\AppData\Roaming\code-d\b |
Copyright © 1999-2021 by the D Language Foundation