Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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?
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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.
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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).
Re: workspace-d 2.7.2 & code-d 0.10.14
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.
Re: workspace-d 2.7.2 & code-d 0.10.14
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/
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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?
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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)
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
If open working folder: https://snag.gy/MnTJtB.jpg
Re: workspace-d 2.7.2 & code-d 0.10.14
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"
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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?
Re: workspace-d 2.7.2 & code-d 0.10.14
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)
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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.
Re: workspace-d 2.7.2 & code-d 0.10.14
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?
Re: workspace-d 2.7.2 & code-d 0.10.14
"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
Re: workspace-d 2.7.2 & code-d 0.10.14
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)
Re: workspace-d 2.7.2 & code-d 0.10.14
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?
Re: workspace-d 2.7.2 & code-d 0.10.14
On 7 September 2016 at 13:29, WebFreak001 via Digitalmars-d-announcewrote: > 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...?
Re: workspace-d 2.7.2 & code-d 0.10.14
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
Re: workspace-d 2.7.2 & code-d 0.10.14
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-announcewrote: > 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
workspace-d 2.7.2 & code-d 0.10.14
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