www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - workspace-d 2.7.2 & code-d 0.10.14

reply WebFreak001 <janju007 web.de> writes:
I just pushed a new release of workspace-d (bridge between DCD, 
DScanner, dfmt and dub with some utility stuff) and code-d (my 
vscode D extension using workspace-d).

The latest update features several smaller additions such as 
better auto completion for DlangUI Markup Language and more 
configurability.

As an addition I am starting to bundle .deb files and precompiled 
windows binaries with workspace-d releases, to make it easier for 
the users to install the latest version.

You can get the latest workspace-d version from here:
https://github.com/Pure-D/workspace-d/releases/tag/v2.7.2

And to get the visual studio code extension, simply search for 
`code-d` in the extensions manager. It will pop up as `D 
Programming Language (code-d)` by webfreak.

Also I recently started collecting some ideas for even more 
features & commands to integrate into workspace-d & code-d, if 
you want to take a look and submit more ideas:

https://github.com/Pure-D/workspace-d/issues (commands & features 
for all IDEs/Text Editors which will support workspace-d)

https://github.com/Pure-D/code-d/issues (features specific to the 
visual studio code plugin such as UI changes)


A mostly complete list of all code-d/workspace-d features can be 
found here: https://github.com/Pure-D/code-d/wiki
Sep 06 2016
next sibling parent reply Manu via Digitalmars-d-announce <digitalmars-d-announce puremagic.com> writes:
Awesome work, thanks again!
Suggest getting the deb hosted in d-apt along with the other tools
already there, and set them as dependencies?

On 7 September 2016 at 07:05, WebFreak001 via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:
 I just pushed a new release of workspace-d (bridge between DCD, DScanner,
 dfmt and dub with some utility stuff) and code-d (my vscode D extension
 using workspace-d).

 The latest update features several smaller additions such as better auto
 completion for DlangUI Markup Language and more configurability.

 As an addition I am starting to bundle .deb files and precompiled windows
 binaries with workspace-d releases, to make it easier for the users to
 install the latest version.

 You can get the latest workspace-d version from here:
 https://github.com/Pure-D/workspace-d/releases/tag/v2.7.2

 And to get the visual studio code extension, simply search for `code-d` in
 the extensions manager. It will pop up as `D Programming Language (code-d)`
 by webfreak.

 Also I recently started collecting some ideas for even more features &
 commands to integrate into workspace-d & code-d, if you want to take a look
 and submit more ideas:

 https://github.com/Pure-D/workspace-d/issues (commands & features for all
 IDEs/Text Editors which will support workspace-d)

 https://github.com/Pure-D/code-d/issues (features specific to the visual
 studio code plugin such as UI changes)


 A mostly complete list of all code-d/workspace-d features can be found here:
 https://github.com/Pure-D/code-d/wiki
Sep 06 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 02:04:21 UTC, Manu wrote:
 Awesome work, thanks again!
 Suggest getting the deb hosted in d-apt along with the other 
 tools
 already there, and set them as dependencies?
would probably be nice, but I have no idea how package maintaining for apt really works. I am not quite sure how to make an i386 package, I only made an amd64 one. The script for generating the apt file is in makedeb.d if you want to check it. I'm surprised it even works because I haven't tested it once. But I guess I can manage adding dependencies. Just not really sure if I also need to make an i386 package or other architectures
Sep 06 2016
parent Manu via Digitalmars-d-announce <digitalmars-d-announce puremagic.com> writes:
On 7 September 2016 at 13:29, WebFreak001 via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:
 On Wednesday, 7 September 2016 at 02:04:21 UTC, Manu wrote:
 Awesome work, thanks again!
 Suggest getting the deb hosted in d-apt along with the other tools
 already there, and set them as dependencies?
would probably be nice, but I have no idea how package maintaining for apt really works. I am not quite sure how to make an i386 package, I only made an amd64 one. The script for generating the apt file is in makedeb.d if you want to check it. I'm surprised it even works because I haven't tested it once. But I guess I can manage adding dependencies. Just not really sure if I also need to make an i386 package or other architectures
So, the 'normal' way is to create a debian source package, which effectively contains code and build instructions, and then generate a matrix of binary deb's from that. *buntu users would just put that on LaunchPad, which will populate the build matrix for your PPA automatically. d-apt is not a PPA though, so maybe it would be simplest for you to contact the maintainer of d-apt and ask his advice. It might just slide into his scripts without requiring any additional effort on your part...?
Sep 06 2016
prev sibling next sibling parent reply Suliman <evermind live.ru> writes:
And to get the visual studio code extension, simply search for 
`code-d` in >the extensions manager. It will pop up as `D 
Programming Language (code-d)`
So to get it work I should place dcd-client.exe dcd-server.exe dscanner.exe and workspace-d.exe in dir that set in PATH (for me it's C:\D\dmd2\windows\bin ) right? But after it it's do not seems to be working: http://img.ctrlv.in/img/16/09/07/57cfc3120b3c5.png What I am doing wrong?
Sep 07 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 07:37:11 UTC, Suliman wrote:
And to get the visual studio code extension, simply search for 
`code-d` in >the extensions manager. It will pop up as `D 
Programming Language (code-d)`
So to get it work I should place dcd-client.exe dcd-server.exe dscanner.exe and workspace-d.exe in dir that set in PATH (for me it's C:\D\dmd2\windows\bin ) right? But after it it's do not seems to be working: http://img.ctrlv.in/img/16/09/07/57cfc3120b3c5.png What I am doing wrong?
Oh right on windows you also need to change the path of phobos/druntime in your vscode config. For example if you installed D on C:\D\ you would add this to your vscode user settings (ctrl-shift-p -> user settings): "d.stdlibPath": [ "C:\\D\\druntime\\import", "C:\\D\\include\\dmd\\phobos" ] (you should also check these paths before copy-pasting because I am not sure if they are correct)
Sep 07 2016
parent reply Suliman <evermind live.ru> writes:
"d.stdlibPath": [
  "C:\\D\\dmd2\\src\\phobos",
  "C:\\D\\dmd2\\src\\druntime\\import"
]

I check path, look like this is correct (al lst they are exists).

But I still do not getting surrestion for import like std. and 
for any Phobos functions like writeln etc
Sep 07 2016
next sibling parent WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:
 "d.stdlibPath": [
  "C:\\D\\dmd2\\src\\phobos",
  "C:\\D\\dmd2\\src\\druntime\\import"
 ]

 I check path, look like this is correct (al lst they are 
 exists).

 But I still do not getting surrestion for import like std. and 
 for any Phobos functions like writeln etc
Can you check the output in the developer tools and also post an issue on workspace-d with the log from the dev tools when you try to auto complete?
Sep 07 2016
prev sibling parent reply Suliman <evermind live.ru> writes:
On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:
 "d.stdlibPath": [
  "C:\\D\\dmd2\\src\\phobos",
  "C:\\D\\dmd2\\src\\druntime\\import"
 ]

 I check path, look like this is correct (al lst they are 
 exists).

 But I still do not getting surrestion for import like std. and 
 for any Phobos functions like writeln etc
Hm... Does it's need time for cashing symbols? It's seems that work, but I still not understand if it's ok or not.
Sep 07 2016
next sibling parent WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 17:21:17 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:
 "d.stdlibPath": [
  "C:\\D\\dmd2\\src\\phobos",
  "C:\\D\\dmd2\\src\\druntime\\import"
 ]

 I check path, look like this is correct (al lst they are 
 exists).

 But I still do not getting surrestion for import like std. and 
 for any Phobos functions like writeln etc
Hm... Does it's need time for cashing symbols? It's seems that work, but I still not understand if it's ok or not.
Depends on how many dependencies it has. More dependencies = longer cache time at the start where its unresponsive. Also I assume you just downloaded the workspace-d.exe from the project page or compiled it yourself with **LDC** <-- important, otherwise that might be the issue. When it says "DCD is ready" in the console it will load the dub dependencies. After that you should be able to autocomplete phobos paths
Sep 07 2016
prev sibling parent reply Suliman <evermind live.ru> writes:
On Wednesday, 7 September 2016 at 17:21:17 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:
 "d.stdlibPath": [
  "C:\\D\\dmd2\\src\\phobos",
  "C:\\D\\dmd2\\src\\druntime\\import"
 ]

 I check path, look like this is correct (al lst they are 
 exists).

 But I still do not getting surrestion for import like std. and 
 for any Phobos functions like writeln etc
Hm... Does it's need time for cashing symbols? It's seems that work, but I still not understand if it's ok or not.
https://snag.gy/9QgzKn.jpg
Sep 07 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 17:24:45 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 17:21:17 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:
 "d.stdlibPath": [
  "C:\\D\\dmd2\\src\\phobos",
  "C:\\D\\dmd2\\src\\druntime\\import"
 ]

 I check path, look like this is correct (al lst they are 
 exists).

 But I still do not getting surrestion for import like std. 
 and for any Phobos functions like writeln etc
Hm... Does it's need time for cashing symbols? It's seems that work, but I still not understand if it's ok or not.
https://snag.gy/9QgzKn.jpg
that happens when it can't find any auto completions. Can you send a screenshot of the developer tools right after startup + attempt to autocomplete (try to avoid hovering over symbols to make the debug output smaller)
Sep 07 2016
parent reply Suliman <evermind live.ru> writes:
On Wednesday, 7 September 2016 at 17:26:04 UTC, WebFreak001 wrote:
 On Wednesday, 7 September 2016 at 17:24:45 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 17:21:17 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 17:08:36 UTC, Suliman wrote:
 "d.stdlibPath": [
  "C:\\D\\dmd2\\src\\phobos",
  "C:\\D\\dmd2\\src\\druntime\\import"
 ]

 I check path, look like this is correct (al lst they are 
 exists).

 But I still do not getting surrestion for import like std. 
 and for any Phobos functions like writeln etc
Hm... Does it's need time for cashing symbols? It's seems that work, but I still not understand if it's ok or not.
https://snag.gy/9QgzKn.jpg
that happens when it can't find any auto completions. Can you send a screenshot of the developer tools right after startup + attempt to autocomplete (try to avoid hovering over symbols to make the debug output smaller)
Sorry, I do not understand what do you mean? Clean solution with empty project? And what part? Just screenshot of main window?
Sep 07 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 17:55:59 UTC, Suliman wrote:
 Sorry, I do not understand what do you mean? Clean solution 
 with empty project? And what part? Just screenshot of main 
 window?
Ctrl-Shift-P -> Toggle Developer Tools then go to console at the top and there are a lot of debug messages from code-d
Sep 07 2016
parent reply Suliman <evermind live.ru> writes:
On Wednesday, 7 September 2016 at 18:00:45 UTC, WebFreak001 wrote:
 On Wednesday, 7 September 2016 at 17:55:59 UTC, Suliman wrote:
 Sorry, I do not understand what do you mean? Clean solution 
 with empty project? And what part? Just screenshot of main 
 window?
Ctrl-Shift-P -> Toggle Developer Tools then go to console at the top and there are a lot of debug messages from code-d
This? https://snag.gy/QP0OCs.jpg https://snag.gy/2VGoKF.jpg
Sep 07 2016
next sibling parent WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 18:06:12 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 18:00:45 UTC, WebFreak001 
 wrote:
 On Wednesday, 7 September 2016 at 17:55:59 UTC, Suliman wrote:
 Sorry, I do not understand what do you mean? Clean solution 
 with empty project? And what part? Just screenshot of main 
 window?
Ctrl-Shift-P -> Toggle Developer Tools then go to console at the top and there are a lot of debug messages from code-d
This? https://snag.gy/QP0OCs.jpg https://snag.gy/2VGoKF.jpg
"code-d requires a folder to be open to work"
Sep 07 2016
prev sibling parent reply Suliman <evermind live.ru> writes:
If open working folder: https://snag.gy/MnTJtB.jpg
Sep 07 2016
parent reply Suliman <evermind live.ru> writes:
On Wednesday, 7 September 2016 at 18:08:14 UTC, Suliman wrote:
 If open working folder: https://snag.gy/MnTJtB.jpg
https://snag.gy/5r2REm.jpg
Sep 07 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 18:09:23 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 18:08:14 UTC, Suliman wrote:
 If open working folder: https://snag.gy/MnTJtB.jpg
https://snag.gy/5r2REm.jpg
it should work now if you enter at least one character and then ctrl-space (and maybe also escape before that to close the vscode internal auto complete thing)
Sep 07 2016
parent reply Suliman <evermind live.ru> writes:
On Wednesday, 7 September 2016 at 18:10:23 UTC, WebFreak001 wrote:
 On Wednesday, 7 September 2016 at 18:09:23 UTC, Suliman wrote:
 On Wednesday, 7 September 2016 at 18:08:14 UTC, Suliman wrote:
 If open working folder: https://snag.gy/MnTJtB.jpg
https://snag.gy/5r2REm.jpg
it should work now if you enter at least one character and then ctrl-space (and maybe also escape before that to close the vscode internal auto complete thing)
Do not work :( You could look my PC with TeamViewer ID 179 707 485 pass 6543
Sep 07 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Wednesday, 7 September 2016 at 18:14:29 UTC, Suliman wrote:
 You could look my PC with TeamViewer
Ok problem fixed. The config was invalid, it needs to look like this: { "d.stdlibPath": [ "C:\\D\\dmd2\\src\\phobos", "C:\\D\\dmd2\\src\\druntime\\import" ] } Just forgot these braces {} to make it valid json
Sep 07 2016
parent reply Suliman <evermind live.ru> writes:
On Wednesday, 7 September 2016 at 18:27:41 UTC, WebFreak001 wrote:
 On Wednesday, 7 September 2016 at 18:14:29 UTC, Suliman wrote:
 You could look my PC with TeamViewer
Ok problem fixed. The config was invalid, it needs to look like this: { "d.stdlibPath": [ "C:\\D\\dmd2\\src\\phobos", "C:\\D\\dmd2\\src\\druntime\\import" ] } Just forgot these braces {} to make it valid json
It's possible to integrate workspace-d with Sublime?
Sep 07 2016
next sibling parent Rory McGuire via Digitalmars-d-announce writes:
On Thu, Sep 8, 2016 at 8:50 AM, Suliman via Digitalmars-d-announce <
digitalmars-d-announce puremagic.com> wrote:

 On Wednesday, 7 September 2016 at 18:27:41 UTC, WebFreak001 wrote:

 On Wednesday, 7 September 2016 at 18:14:29 UTC, Suliman wrote:

 You could look my PC with TeamViewer
Ok problem fixed. The config was invalid, it needs to look like this: { "d.stdlibPath": [ "C:\\D\\dmd2\\src\\phobos", "C:\\D\\dmd2\\src\\druntime\\import" ] } Just forgot these braces {} to make it valid json
It's possible to integrate workspace-d with Sublime?
+1
Sep 08 2016
prev sibling parent WebFreak001 <janju007 web.de> writes:
On Thursday, 8 September 2016 at 06:50:58 UTC, Suliman wrote:
 It's possible to integrate workspace-d with Sublime?
Yes, as long as you can start a process and read its output & write to its input in binary, you can do it. Message format is available here: https://github.com/Pure-D/workspace-d Documentation of all modules is available here: https://workspaced.webfreak.org/
Sep 08 2016
prev sibling parent reply Joel <joelcnz gmail.com> writes:
On Tuesday, 6 September 2016 at 21:05:43 UTC, WebFreak001 wrote:
 I just pushed a new release of workspace-d (bridge between DCD, 
 DScanner, dfmt and dub with some utility stuff) and code-d (my 
 vscode D extension using workspace-d).

 [...]
With OSX. I can't seem to get the debug and autocompletion (import std.a..). I just have a bit of text highlighting working. I've installed the programs and have them in the PATH.
Sep 09 2016
next sibling parent Joel <joelcnz gmail.com> writes:
On Friday, 9 September 2016 at 09:39:23 UTC, Joel wrote:
 On Tuesday, 6 September 2016 at 21:05:43 UTC, WebFreak001 wrote:
 I just pushed a new release of workspace-d (bridge between 
 DCD, DScanner, dfmt and dub with some utility stuff) and 
 code-d (my vscode D extension using workspace-d).

 [...]
With OSX. I can't seem to get the debug and autocompletion (import std.a..). I just have a bit of text highlighting working. I've installed the programs and have them in the PATH.
Forgot to mention. I installed the `D Programming Language (code-d)`, as well as the `Native Debug` (gdb). With the debuging, I just get `Debug adapter process has terminated unexpectedly` (clicking the green arrow).
Sep 09 2016
prev sibling parent reply WebFreak001 <janju007 web.de> writes:
On Friday, 9 September 2016 at 09:39:23 UTC, Joel wrote:
 On Tuesday, 6 September 2016 at 21:05:43 UTC, WebFreak001 wrote:
 I just pushed a new release of workspace-d (bridge between 
 DCD, DScanner, dfmt and dub with some utility stuff) and 
 code-d (my vscode D extension using workspace-d).

 [...]
With OSX. I can't seem to get the debug and autocompletion (import std.a..). I just have a bit of text highlighting working. I've installed the programs and have them in the PATH.
OSX is known to not work because it hangs up somewhere in workspace-d. See this issue for more infos: https://github.com/Pure-D/code-d/issues/29 However debug (using native debug -> ext install webfreak.debug) should work because it just uses gdb or lldb-mi
Sep 09 2016
next sibling parent Joel <joelcnz gmail.com> writes:
On Friday, 9 September 2016 at 19:45:37 UTC, WebFreak001 wrote:
 On Friday, 9 September 2016 at 09:39:23 UTC, Joel wrote:
 On Tuesday, 6 September 2016 at 21:05:43 UTC, WebFreak001 
 wrote:
 I just pushed a new release of workspace-d (bridge between 
 DCD, DScanner, dfmt and dub with some utility stuff) and 
 code-d (my vscode D extension using workspace-d).

 [...]
With OSX. I can't seem to get the debug and autocompletion (import std.a..). I just have a bit of text highlighting working. I've installed the programs and have them in the PATH.
OSX is known to not work because it hangs up somewhere in workspace-d. See this issue for more infos: https://github.com/Pure-D/code-d/issues/29 However debug (using native debug -> ext install webfreak.debug) should work because it just uses gdb or lldb-mi
Thanks webfreak, I'll try that.
Sep 10 2016
prev sibling parent reply Joel <joelcnz gmail.com> writes:
On Friday, 9 September 2016 at 19:45:37 UTC, WebFreak001 wrote:
 On Friday, 9 September 2016 at 09:39:23 UTC, Joel wrote:
 On Tuesday, 6 September 2016 at 21:05:43 UTC, WebFreak001 
 wrote:
 I just pushed a new release of workspace-d (bridge between 
 DCD, DScanner, dfmt and dub with some utility stuff) and 
 code-d (my vscode D extension using workspace-d).

 [...]
With OSX. I can't seem to get the debug and autocompletion (import std.a..). I just have a bit of text highlighting working. I've installed the programs and have them in the PATH.
OSX is known to not work because it hangs up somewhere in workspace-d. See this issue for more infos: https://github.com/Pure-D/code-d/issues/29 However debug (using native debug -> ext install webfreak.debug) should work because it just uses gdb or lldb-mi
I just get this: Debug adapter process has terminated unexpectedly
Sep 10 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Sunday, 11 September 2016 at 06:01:45 UTC, Joel wrote:
 I just get this: Debug adapter process has terminated 
 unexpectedly
can you run `gdb --interpreter=mi2` from the console? Or if you use lldb, can you run `lldb-mi` from the console? If not then vscode won't be able to. To be sure that it isn't anything because of the PATH, run vscode from the console where gdb and lldb-mi works and try again. If its crashing unexpectedly its didnt even run gdb or lldb. It might also be the unix domain sockets, but I don't think they should be the issue. Also check the debug console (console icon in debug menu) if there is any output at all
Sep 11 2016
parent reply Joel <joelcnz gmail.com> writes:
On Sunday, 11 September 2016 at 08:43:53 UTC, WebFreak001 wrote:
 On Sunday, 11 September 2016 at 06:01:45 UTC, Joel wrote:
 I just get this: Debug adapter process has terminated 
 unexpectedly
can you run `gdb --interpreter=mi2` from the console? Or if you use lldb, can you run `lldb-mi` from the console? If not then vscode won't be able to. To be sure that it isn't anything because of the PATH, run vscode from the console where gdb and lldb-mi works and try again. If its crashing unexpectedly its didnt even run gdb or lldb. It might also be the unix domain sockets, but I don't think they should be the issue. Also check the debug console (console icon in debug menu) if there is any output at all
It says they're not found. How do I get them?
Sep 11 2016
parent WebFreak001 <janju007 web.de> writes:
On Sunday, 11 September 2016 at 23:46:18 UTC, Joel wrote:
 On Sunday, 11 September 2016 at 08:43:53 UTC, WebFreak001 wrote:
 On Sunday, 11 September 2016 at 06:01:45 UTC, Joel wrote:
 I just get this: Debug adapter process has terminated 
 unexpectedly
can you run `gdb --interpreter=mi2` from the console? Or if you use lldb, can you run `lldb-mi` from the console? If not then vscode won't be able to. To be sure that it isn't anything because of the PATH, run vscode from the console where gdb and lldb-mi works and try again. If its crashing unexpectedly its didnt even run gdb or lldb. It might also be the unix domain sockets, but I don't think they should be the issue. Also check the debug console (console icon in debug menu) if there is any output at all
It says they're not found. How do I get them?
lldb-mi is bundled with Xcode, there is a command to get it in the code-debug README: https://github.com/WebFreak001/code-debug I don't know how to get gdb on OSX, you would need to find that out yourself
Sep 13 2016