www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - code-d 0.20.0 - serve-d 0.4.0 - Happy new year!

reply WebFreak001 <d.forum webfreak.org> writes:
Hi guys!

I'm proud to announce the next code-d release with a lot of 
improvements in stability and usability.

code-d[1] is the Visual Studio Code extension for my Language 
Server serve-d[2] - I have been working on this for a while and 
wanted to get as much as possible in before the end of the year. 
You might have heard of dls[3] which is basically the same as 
serve-d, just from another person which is also really cool. My 
focus is more on improving vscode specifically and having a 
stable runtime there, but you can make it work with other LSP 
compatible editors aswell yourself.

As I said, there have been a lot of new big features, you can 
view a full changelog under 
https://github.com/Pure-D/code-d/blob/master/CHANGELOG.md

To summarize:
== The biggest features ==
- Embedded dpldocs.info - press ctrl-q ctrl-q (changable) to open 
an embedded documentation browser inside vscode, this is a lot 
more productive than always switching between browser and vscode. 
You can also have them in multiple tabs in vscode
- vibe.d Diet template autocompletion - Are you doing web dev 
with diet? Diet templates now complete HTML tags as well as D 
code! This is still the first version of the auto complete so 
expect bugs and some stuff not working, but for many places this 
already works great and makes diet and vibe.d a lot more 
accessible.
- New syntax highlighting - the old syntax was buggy and often 
faulty, it has been updated to be more consistent and all of 
phobos looks good with it by testing random samples and scrolling 
through the whole files.

== other great stuff ==
- code-d and serve-d are a lot more stable for a lot more 
different projects, expect less crashes (but there might still be 
issues with missing dependencies for auto completion, just no 
longer causing the entire plugin to halt)
- Implement interface got a lot better - no longer will it insert 
duplicate methods if you implement an interface twice and it's 
all a lot more accurate with more tests to make the inserted code 
actually correct and compilable
- The argument snippets which were enablable per 
d.argumentSnippets for a while have become a lot more useful. If 
you use the vscode Java extension by Red Hat you can enable this 
to get the same auto completion of method arguments as you get in 
there, which is basically inserting snippets of 
"function(arg1name, arg2name, arg3name)"
- You can convert between dub.json and dub.sdl via a button click 
in the editor now
- Implemented outline view and breadcrumbs in vscode

Many bugs have also been fixed, especially with configuration 
enabling/disabling features, so check out the changelog for the 
rest. This serve-d version ships with dfmt 0.9.0 and dscanner 
0.6.0 and it will download DCD 0.10.2


Get the extension now:
https://marketplace.visualstudio.com/items?itemName=webfreak.code-d
or search for "D programming language" inside vscode and click 
the code-d one.

It requires at least Visual Studio Code 1.29


Wish you all a happy new year and a good start into 2019!

I want to eventually write a blog post about some features you 
might not know about in code-d and how to be more productive 
using all of its features, because it really has a ton a lot of 
people don't know about.

Tweet to this: 
https://twitter.com/WebFreak001/status/1079790275940286464

[1]: https://github.com/Pure-D/code-d
[2]: https://github.com/Pure-D/serve-d
[3]: 
https://forum.dlang.org/thread/hhfttrqwvgedbaytsmmt forum.dlang.org
Dec 31 2018
next sibling parent reply learnfirst1 <learnfirst1 gmail.com> writes:
On Monday, 31 December 2018 at 17:42:46 UTC, WebFreak001 wrote:
 Hi guys!

 I'm proud to announce the next code-d release with a lot of 
 improvements in stability and usability.


 [1]: https://github.com/Pure-D/code-d
 [2]: https://github.com/Pure-D/serve-d
 [3]: 
 https://forum.dlang.org/thread/hhfttrqwvgedbaytsmmt forum.dlang.org
Great work, try on mac it start work . How can i turn off the Dscanner warnning ? And seems it can not understand any of template return type, and alias this.
Dec 31
parent reply WebFreak001 <d.forum webfreak.org> writes:
On Tuesday, 1 January 2019 at 04:17:18 UTC, learnfirst1 wrote:
 On Monday, 31 December 2018 at 17:42:46 UTC, WebFreak001 wrote:
 Hi guys!

 I'm proud to announce the next code-d release with a lot of 
 improvements in stability and usability.


 [1]: https://github.com/Pure-D/code-d
 [2]: https://github.com/Pure-D/serve-d
 [3]: 
 https://forum.dlang.org/thread/hhfttrqwvgedbaytsmmt forum.dlang.org
Great work, try on mac it start work . How can i turn off the Dscanner warnning ? And seems it can not understand any of template return type, and alias this.
hi, you can disable dscanner warnings by disabling d.enableStaticLinting in your user settings Do you mean it doesn't understand these things in auto completion? It uses DCD for auto completion so it will be the same as most other editors and it will eventually get fixed in the future.
Jan 01
parent reply ezneh <petitv.isat gmail.com> writes:
I sadly get this error when updating to the new version:

Installing DCD
Downloading from 
https://github.com/dlang-community/DCD/releases/download/v0.10.2/dcd-v0.
0.2-windows-x86.zip to C:\Users\Ezneh\AppData\Roaming\code-d\bin
Failed installing: 
std.net.curl.CurlException std\net\curl.d(4340): Peer certificate 
cannot be authenticated with given CA certificates on handle 
3803558

I'll try with uninstalling & reinstalling it to see if it helps.
Jan 01
parent WebFreak001 <d.forum webfreak.org> writes:
On Tuesday, 1 January 2019 at 12:54:13 UTC, ezneh wrote:
 I sadly get this error when updating to the new version:

 Installing DCD
 Downloading from 
 https://github.com/dlang-community/DCD/releases/download/v0.10.2/dcd-v0.
0.2-windows-x86.zip to C:\Users\Ezneh\AppData\Roaming\code-d\bin
 Failed installing: 
 std.net.curl.CurlException std\net\curl.d(4340): Peer 
 certificate cannot be authenticated with given CA certificates 
 on handle 3803558

 I'll try with uninstalling & reinstalling it to see if it helps.
some people seem to be experiencing issues with downloading DCD from github on Windows because of the certificates, I don't know what it is yet but I think this might resolve itself with time
Jan 01
prev sibling next sibling parent reply Laurent =?UTF-8?B?VHLDqWd1aWVy?= <laurent.treguier.sink gmail.com> writes:
On Monday, 31 December 2018 at 17:42:46 UTC, WebFreak001 wrote:
 Hi guys!

 I'm proud to announce the next code-d release with a lot of 
 improvements in stability and usability.
I had been waiting for new serve-d+code-d releases after seeing https://github.com/Pure-D/serve-d/commit/488e0f3135d32364f16c a5da96331c74f4c2afa :) Just tested on Ubuntu and Windows, the installation and everything else just work! Have you considered using Travis or CircleCI to build releases for macOS as well?
 Wish you all a happy new year and a good start into 2019!
Happy new year!
 I want to eventually write a blog post about some features you 
 might not know about in code-d and how to be more productive 
 using all of its features, because it really has a ton a lot of 
 people don't know about.
Looking forward to reading it!
 Installing DCD
 Downloading from 
 https://github.com/dlang-community/DCD/releases/download/v0.10.2/dcd-v0.
0.2-windows-x86.zip to C:\Users\Ezneh\AppData\Roaming\code-d\bin
 Failed installing: 
 std.net.curl.CurlException std\net\curl.d(4340): Peer 
 certificate cannot be authenticated with given CA certificates 
 on handle 3803558
I've had this error when using libeay32.dll and ssleay32.dll, that dub uses. I think they are related to SSL handling, but I'm far from being an expert on this; are they necessary?
Jan 01
next sibling parent JN <666total wp.pl> writes:
On Tuesday, 1 January 2019 at 19:49:46 UTC, Laurent Tréguier 
wrote:
 I've had this error when using libeay32.dll and ssleay32.dll, 
 that dub uses. I think they are related to SSL handling, but 
 I'm far from being an expert on this; are they necessary?
Looks like here someone was struggling with it as well (curl + windows): https://github.com/benbalter/jekyll-remote-theme/issues/9#issuecomment-368340758 If it was commandline curl, one could add --insecure switch, the same equivalent can be done for libcurl to disable SSL verification. While it shouldn't be a default for security reasons, perhaps a checkbox should be added to code-d settings? Something like [ ] (UNSAFE) Disable Curl SSL verification
Jan 01
prev sibling parent greatsam4sure <greatsam4sure gmail.com> writes:
On Tuesday, 1 January 2019 at 19:49:46 UTC, Laurent Tréguier 
wrote:
 On Monday, 31 December 2018 at 17:42:46 UTC, WebFreak001 wrote:
 [...]
I had been waiting for new serve-d+code-d releases after seeing https://github.com/Pure-D/serve-d/commit/488e0f3135d32364f16c a5da96331c74f4c2afa :) Just tested on Ubuntu and Windows, the installation and everything else just work! Have you considered using Travis or CircleCI to build releases for macOS as well?
 [...]
Happy new year!
 [...]
Looking forward to reading it!
 [...]
I've had this error when using libeay32.dll and ssleay32.dll, that dub uses. I think they are related to SSL handling, but I'm far from being an expert on this; are they necessary?
Under windows 10 I have the same issue. When I check code-d folder, I found that it download Dcd but did no extract it. So I extracted it and code the content to code-d/bin. That solve the problem. Hope this help
Jan 06
prev sibling parent reply Murilo <murilomiranda92 hotmail.com> writes:
On Monday, 31 December 2018 at 17:42:46 UTC, WebFreak001 wrote:
 Hi guys!

 I'm proud to announce the next code-d release with a lot of 
 improvements in stability and usability.

 code-d[1] is the Visual Studio Code extension for my Language 
 Server serve-d[2] - I have been working on this for a while and 
 wanted to get as much as possible in before the end of the 
 year. You might have heard of dls[3] which is basically the 
 same as serve-d, just from another person which is also really 
 cool. My focus is more on improving vscode specifically and 
 having a stable runtime there, but you can make it work with 
 other LSP compatible editors aswell yourself.
It would be a good idea to publish that on the facebook group for users of D. There you would be able to spread the information fast. It is called Programming in D. Here is the link: https://www.facebook.com/groups/662119670846705/
Jan 13
next sibling parent Neia Neutuladh <neia ikeran.org> writes:
On Sun, 13 Jan 2019 21:40:43 +0000, Murilo wrote:
 It would be a good idea to publish that on the facebook group for users
 of D. There you would be able to spread the information fast. It is
 called Programming in D. Here is the link:
 https://www.facebook.com/groups/662119670846705/
I think one post advertising the facebook group per week would be more appropriate than three in one day.
Jan 13
prev sibling parent WebFreak001 <d.forum webfreak.org> writes:
On Sunday, 13 January 2019 at 21:40:43 UTC, Murilo wrote:
 On Monday, 31 December 2018 at 17:42:46 UTC, WebFreak001 wrote:
 [...]
It would be a good idea to publish that on the facebook group for users of D. There you would be able to spread the information fast. It is called Programming in D. Here is the link: https://www.facebook.com/groups/662119670846705/
sorry I don't use Facebook, but I would be glad if anyone who posts stuff there could share this :)
Jan 14