Thread overview
code-d 0.10.1 released (D support for vscode)
Mar 11, 2016
WebFreak001
Mar 12, 2016
WebFreak001
Mar 12, 2016
Dmitry Olshansky
Mar 12, 2016
Dmitry
Mar 12, 2016
WebFreak001
Mar 12, 2016
Dmitry
Mar 12, 2016
WebFreak001
March 11, 2016
I just released a new version of code-d, it now supports projects without any dub.json file which some people probably will like. This is really useful for standalone projects with a custom build system like writing an OS/Kernel or other projects that don't want to use dub.

Additionally some bugs like the dcd-server staying open got fixed.

But probably the biggest news for this update is the improved support for DlangUI markup language.

It's is now completing enums for enum fields and true/false. Also it knows about the relations between the Widget classes so it will also complete all inherited children.

If you want to give it a try just install the most recent workspace-d build using the workspace-d CLI installer:

https://github.com/Pure-D/workspace-d-installer

Once you have workspace-d installed and added the binaries to your path you can simply install the latest stable release of code-d in vscode using 'ext install code-d'

If you have any suggestions/ideas/feedback don't forget to post it as reply to this post.

Project github: https://github.com/Pure-D/code-d

PS:

If you need a debugger frontend (currently GDB and LLDB) for vscode, try my debugging extension. It supports most features and D is working like a charm in there: https://github.com/WebFreak001/code-debug (install using 'ext install gdb')
March 12, 2016
Additionally if you use dub for your projects you can now get an additional package version manager from the vscode marketplace which makes sure your dependencies are up to date.

ext install versionlens

then open a dub.json file and you are ready to go

Github: https://github.com/pflannery/vscode-versionlens
Marketplace: https://marketplace.visualstudio.com/items?itemName=pflannery.vscode-versionlens
March 12, 2016
On 11-Mar-2016 23:03, WebFreak001 wrote:
> I just released a new version of code-d, it now supports projects
> without any dub.json file which some people probably will like. This is
> really useful for standalone projects with a custom build system like
> writing an OS/Kernel or other projects that don't want to use dub.
>

It would really help to state first of all that code-d is a D extension for Visual Studio Code which is a nice thing even though I never tried it.


-- 
Dmitry Olshansky
March 12, 2016
On Friday, 11 March 2016 at 20:03:47 UTC, WebFreak001 wrote:
> I just released a new version of code-d, it now supports projects without any dub.json file which some people probably will like. This is really useful for standalone projects with a custom build system like writing an OS/Kernel or other projects that don't want to use dub.
After last update I have an exeption when close VSCode: https://dl.dropboxusercontent.com/u/78963719/D/forum/error.png

> If you want to give it a try just install the most recent workspace-d build using the workspace-d CLI installer:
>
> https://github.com/Pure-D/workspace-d-installer
Error: http://pastebin.com/wqmkMw7c

> If you need a debugger frontend (currently GDB and LLDB) for vscode, try my debugging extension. It supports most features and D is working like a charm in there: https://github.com/WebFreak001/code-debug (install using 'ext install gdb')
Is it work only with GDC and LDC? Because with DMD it doesn't.
Then where I can get GDC and LDC for Windows (of course, I'm about binaries)?

P.S. Windows 7 x64

March 12, 2016
On Saturday, 12 March 2016 at 18:41:23 UTC, Dmitry wrote:
> On Friday, 11 March 2016 at 20:03:47 UTC, WebFreak001 wrote:
>> [...]
> After last update I have an exeption when close VSCode: https://dl.dropboxusercontent.com/u/78963719/D/forum/error.png
>
>> [...]
> Error: http://pastebin.com/wqmkMw7c

Right, gonna fix the bugs later. Didn't test it on windows yet

>> [...]
> Is it work only with GDC and LDC? Because with DMD it doesn't.
> Then where I can get GDC and LDC for Windows (of course, I'm about binaries)?
>
> P.S. Windows 7 x64

the debugger extension is using GDB or LLDB, just install one of those programs. Both GDB and LLDB work with gdc, ldc and dmd

March 12, 2016
On Saturday, 12 March 2016 at 18:44:23 UTC, WebFreak001 wrote:
>> Is it work only with GDC and LDC? Because with DMD it doesn't.
>> Then where I can get GDC and LDC for Windows (of course, I'm about binaries)?
>>
>> P.S. Windows 7 x64
>
> the debugger extension is using GDB or LLDB, just install one of those programs. Both GDB and LLDB work with gdc, ldc and dmd
I have installed GDB, and debugging doesn't start.
In previous version of code-d I saw something like "not in executable format: File format not recognized" in the console output (current version has no any messages).

LLDB - I didn't found binaries for Widnows.
March 12, 2016
On Saturday, 12 March 2016 at 18:57:41 UTC, Dmitry wrote:
> On Saturday, 12 March 2016 at 18:44:23 UTC, WebFreak001 wrote:
>>> Is it work only with GDC and LDC? Because with DMD it doesn't.
>>> Then where I can get GDC and LDC for Windows (of course, I'm about binaries)?
>>>
>>> P.S. Windows 7 x64
>>
>> the debugger extension is using GDB or LLDB, just install one of those programs. Both GDB and LLDB work with gdc, ldc and dmd
> I have installed GDB, and debugging doesn't start.
> In previous version of code-d I saw something like "not in executable format: File format not recognized" in the console output (current version has no any messages).
>
> LLDB - I didn't found binaries for Widnows.

Not sure how that happens... You need code-debug and just follow the instructions in the code-debug README.

But both for GDB and LLDB you need to compile it yourself for Windows