Visual Studio Code
Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. Or just vote here: http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language Bit
Re: Visual Studio Code
On 03/08/15 02:24, bitwise wrote: Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. If I recall correctly it supports TextMate bundles. Try the D TextMate bundle and see what happens. -- /Jacob Carlborg
Re: Visual Studio Code
Im using visual studio code with vibed and dub, it's working very well. Visual studio code support jade files. Would be happy to see official support for D. atm I have my own basic custom "D support". You can copy/paste/edit c# support and edit the files to add D keywords, it's very easy. You can do this in this path (for windows): %AppData%\Local\Code\app-0.1.2\resources\app\plugins If you want visual code to recognize .dt (vibed diet templates) as jade files, you can edit vs.language.jade/ticino.plugin.json add .dt in extentions : "extensions": [ ".jade" , ".dt"], restart visual studio code.
Re: Visual Studio Code
On Monday, 3 August 2015 at 00:24:56 UTC, bitwise wrote: Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. Or just vote here: http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language Bit Approaching 200 votes! I think at least 500 would be needed for D support to be considered...tell your friends! ;)
Re: Visual Studio Code
On 8/7/15 4:07 PM, bitwise wrote: On Monday, 3 August 2015 at 00:24:56 UTC, bitwise wrote: Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. Or just vote here: http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language Bit Approaching 200 votes! I think at least 500 would be needed for D support to be considered...tell your friends! ;) Great, I popularized the link on Facebook and Twitter and votes seem to be adding up. -- Andrei
Re: Visual Studio Code
On Saturday, 8 August 2015 at 15:02:45 UTC, Andrei Alexandrescu wrote: On 8/7/15 4:07 PM, bitwise wrote: On Monday, 3 August 2015 at 00:24:56 UTC, bitwise wrote: Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. Or just vote here: http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language Bit Approaching 200 votes! I think at least 500 would be needed for D support to be considered...tell your friends! ;) Great, I popularized the link on Facebook and Twitter and votes seem to be adding up. -- Andrei Awesome, thanks! Votes are sitting at 649 as I'm writing this. Organizing by top ideas currently puts D support near the top of page 2. Just a side note, looking at the main page of dlang.org, I don't see any reference to who's using/contributing to D, or a link thereto. I think it would help a lot of the logos of the D language's top sponsors could be seen somewhere on the main page. Maybe along the bottom as "Proud D users" or something. The top ~10 sponsors could be chosen based of the dollar amounts or man hours contributed. C++ has "Gold members" on their about page: https://isocpp.org/about Rust has a "Team" page: https://www.rust-lang.org/team.html Python has success stories: https://www.python.org/about/success/ I could probably find more, but suffice it to say, it's a common occurrence. Bit
Re: Visual Studio Code
On Saturday, 15 August 2015 at 18:04:20 UTC, bitwise wrote: Just a side note, looking at the main page of dlang.org, I don't see any reference to who's using/contributing to D, or a link thereto. I think it would help a lot of the logos of the D language's top sponsors could be seen somewhere on the main page. Maybe along the bottom as "Proud D users" or something. The top ~10 sponsors could be chosen based of the dollar amounts or man hours contributed. C++ has "Gold members" on their about page: https://isocpp.org/about Rust has a "Team" page: https://www.rust-lang.org/team.html Python has success stories: https://www.python.org/about/success/ I could probably find more, but suffice it to say, it's a common occurrence. Heh, funny you mention this, as I have a tab open in my browser open to the dlang.org github to remind me to submit a PR for just such an "about" page. However, those examples are not that great for D, as it has no foundation or levels of sponsorship like C++, no formal teams like Rust, and that python page is actually not very good, though certainly long. I was thinking a page to briefly recap the language's genesis, introduce the two BDFLs, and mention corporate and project successes, along with some quotes from prominent users. Feel free to submit a PR with what you have in mind and we could write it together: https://github.com/D-Programming-Language/dlang.org/pulls Whether it would ever actually be merged is a different question. ;)
Re: Visual Studio Code
On Sunday, 16 August 2015 at 05:12:06 UTC, Joakim wrote: On Saturday, 15 August 2015 at 18:04:20 UTC, bitwise wrote: Just a side note, looking at the main page of dlang.org, I don't see any reference to who's using/contributing to D, or a link thereto. I think it would help a lot of the logos of the D language's top sponsors could be seen somewhere on the main page. Maybe along the bottom as "Proud D users" or something. The top ~10 sponsors could be chosen based of the dollar amounts or man hours contributed. C++ has "Gold members" on their about page: https://isocpp.org/about Rust has a "Team" page: https://www.rust-lang.org/team.html Python has success stories: https://www.python.org/about/success/ I could probably find more, but suffice it to say, it's a common occurrence. Heh, funny you mention this, as I have a tab open in my browser open to the dlang.org github to remind me to submit a PR for just such an "about" page. However, those examples are not that great for D, as it has no foundation or levels of sponsorship like C++, no formal teams like Rust, and that python page is actually not very good, though certainly long. At the very least, the logos of Facebook and Sociomantic could be displayed at the bottom of the page. I'm not sure who else would be included, but I don't think Walter and Andrei would have any trouble coming up with a decent size list. The point is, I believe there should be "proof at a glance" that D is doing well in several real world scenarios. I was thinking a page to briefly recap the language's genesis, introduce the two BDFLs, and mention corporate and project successes, along with some quotes from prominent users. I believe there is a place for this information, but my specific recommendation is to present meaningful proof of D's usefulness to potential users as soon and succinctly as possible. Feel free to submit a PR with what you have in mind and we could write it together: Whether it would ever actually be merged is a different question. ;) Unfortunately, I am a little out of the loop with respect to who exactly is using D, but if Walter or Andrei agreed with this idea, doing the actual work would be trivial. Anyways, not making demands here, just my 2 cents :) Bit
Re: Visual Studio Code
On Monday, 17 August 2015 at 01:12:29 UTC, bitwise wrote: At the very least, the logos of Facebook and Sociomantic could be displayed at the bottom of the page. I'm not sure who else would be included, but I don't think Walter and Andrei would have any trouble coming up with a decent size list. The point is, I believe there should be "proof at a glance" that D is doing well in several real world scenarios. I agree, it is a big failure of the current site that real-world deployments are not mentioned on the front page or one click away. I was thinking a page to briefly recap the language's genesis, introduce the two BDFLs, and mention corporate and project successes, along with some quotes from prominent users. I believe there is a place for this information, but my specific recommendation is to present meaningful proof of D's usefulness to potential users as soon and succinctly as possible. Well, that's what the last part is about, but I think you also have to tell a story about how the project came to be: that's what the first two are about. Feel free to submit a PR with what you have in mind and we could write it together: Whether it would ever actually be merged is a different question. ;) Unfortunately, I am a little out of the loop with respect to who exactly is using D, but if Walter or Andrei agreed with this idea, doing the actual work would be trivial. Anyways, not making demands here, just my 2 cents :) The information exists, it's just not easy to find or particularly expansive: http://wiki.dlang.org/Current_D_Use You're not going to get people to agree on the idea, or they'd have done it already. ;) Somebody needs to submit a PR and force a decision, and as you say, it's not much work. You can do that and I'll chip in, or I'll get around to it eventually.
Re: Visual Studio Code
On Tuesday, 18 August 2015 at 15:11:53 UTC, Joakim wrote: Well, that's what the last part is about, but I think you also have to tell a story about how the project came to be: that's what the first two are about. I don't know the details, but I read a post somewhere that there are misconceptions about how long D, or more specifically D2 has been around. I believe these misconceptions could beget questions like "D has been around so long, why does it still have so many bugs!?" So you're probably right that this should be addressed. The information exists, it's just not easy to find or particularly expansive: http://wiki.dlang.org/Current_D_Use You're not going to get people to agree on the idea, or they'd have done it already. ;) Somebody needs to submit a PR and force a decision, and as you say, it's not much work. You can do that and I'll chip in, or I'll get around to it eventually. I think the first step would be to draft an email explaining the intent to put these companies' logos on the home page as "Proud Users of the D Programming Language" and get Walter or Andrei to sign off on it. This email could also contain a suggested layout. If approved, we could send the letter to the relevant contacts, and if we get a decent number of Yes's, we could move forward with collecting the companies' information/logos and deciding how/where they should be displayed. This could also act as a sort of plug for the companies involved. It could also be discussed whether or not it was a good idea to put an "Are you using D?" link on the main page by which a company could ask for their name/logo to be included.
Re: Visual Studio Code
On Monday, 3 August 2015 at 00:24:56 UTC, bitwise wrote: Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. Or just vote here: http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language Holding strong on page one of the top ideas! But if you haven't casted your vote(s) yet, please do! Bit
Re: Visual Studio Code
On 2015-08-03 02:24, bitwise wrote: Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. Or just vote here: http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language I noticed there are (at least) two entries for the D programming language. The other one is [1]. [1] http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/8214915-d -- /Jacob Carlborg
Re: Visual Studio Code
On Wednesday, 9 September 2015 at 06:42:15 UTC, Jacob Carlborg wrote: On 2015-08-03 02:24, bitwise wrote: Just stumbled upon this: https://code.visualstudio.com/ I see support for Rust and Go, but no D. If you download it, there is a little smiley/frowny in the bottom right corner for feedback/feature requests. Or just vote here: http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language I noticed there are (at least) two entries for the D programming language. The other one is [1]. [1] http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/8214915-d Yeah.. that was actually there when I initially posted this, but it only had ~1 vote. It's actually a waste... I've added a comment directing people to the other idea. Thanks, Bit
D plugin for Visual Studio Code
Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text?
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:16:36 UTC, Martin Nowak wrote: Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text? https://marketplace.visualstudio.com/items?itemName=mattiascibien.dlang
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:16:36 UTC, Martin Nowak wrote: Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text? There is very good plugin already but it has rather bad name and due to that it isn't easily discoverable. https://marketplace.visualstudio.com/items?itemName=webfreak.code-d
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:33:47 UTC, nazriel wrote: On Sunday, 22 May 2016 at 12:16:36 UTC, Martin Nowak wrote: Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text? There is very good plugin already but it has rather bad name and due to that it isn't easily discoverable. https://marketplace.visualstudio.com/items?itemName=webfreak.code-d Is the name really that bad? I mean you can find it if you search for `dlang` in the editor because it has dlang in the description.
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:39:08 UTC, WebFreak001 wrote: On Sunday, 22 May 2016 at 12:33:47 UTC, nazriel wrote: On Sunday, 22 May 2016 at 12:16:36 UTC, Martin Nowak wrote: Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text? There is very good plugin already but it has rather bad name and due to that it isn't easily discoverable. https://marketplace.visualstudio.com/items?itemName=webfreak.code-d Is the name really that bad? I mean you can find it if you search for `dlang` in the editor because it has dlang in the description. Bad in the sense that you are required to actually do the searching ;) And it breaks the convention used by other language plugins. So as you can see by the presence of this topic, plugin (which is really top notch btw) is easily overlooked
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:42:51 UTC, nazriel wrote: Bad in the sense that you are required to actually do the searching ;) And it breaks the convention used by other language plugins. So as you can see by the presence of this topic, plugin (which is really top notch btw) is easily overlooked When I made the plugin there was no convention because there were only some syntax highlighting packages and maybe 4 or 5 actual plugins for anything more than syntax highlighting. Any idea for a better plugin name? I can easily rename it in the marketplace and it will still be installable with `code-d`
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:47:36 UTC, WebFreak001 wrote: On Sunday, 22 May 2016 at 12:42:51 UTC, nazriel wrote: Bad in the sense that you are required to actually do the searching ;) And it breaks the convention used by other language plugins. So as you can see by the presence of this topic, plugin (which is really top notch btw) is easily overlooked When I made the plugin there was no convention because there were only some syntax highlighting packages and maybe 4 or 5 actual plugins for anything more than syntax highlighting. Any idea for a better plugin name? I can easily rename it in the marketplace and it will still be installable with `code-d` The code-d plugin doesn't work on Windows for a very long time (months). There is even an issue on github https://github.com/Pure-D/code-d/issues/38 Do you have any plans of fixing it or is Windows low priority?
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 15:35:23 UTC, poliklosio wrote: The code-d plugin doesn't work on Windows for a very long time (months). There is even an issue on github https://github.com/Pure-D/code-d/issues/38 Do you have any plans of fixing it or is Windows low priority? It would be nice to fix it but I have no way of testing if it actually worked. Everything works here on linux, even if I change dcd to use TCP instead of unix domain sockets. I made some minor changes to catch some errors, can you recompile workspace-d and update code-d and try if it works now?
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 17:04:01 UTC, WebFreak001 wrote: On Sunday, 22 May 2016 at 15:35:23 UTC, poliklosio wrote: The code-d plugin doesn't work on Windows for a very long time (months). There is even an issue on github https://github.com/Pure-D/code-d/issues/38 Do you have any plans of fixing it or is Windows low priority? It would be nice to fix it but I have no way of testing if it actually worked. Everything works here on linux, even if I change dcd to use TCP instead of unix domain sockets. I made some minor changes to catch some errors, can you recompile workspace-d and update code-d and try if it works now? Oh, I see. I didn't realize you don't have a Windows machine available. I'll try to build the newest version when I have the time. Its pretty unfortunate that it doesn't work because VSCode is the only editor that has all ticks on this page https://wiki.dlang.org/Editors so people new to D are more likely to try VSCode first (like me), only wasting time if they are on Windows.
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 17:49:08 UTC, poliklosio wrote: On Sunday, 22 May 2016 at 17:04:01 UTC, WebFreak001 wrote: [...] Oh, I see. I didn't realize you don't have a Windows machine available. I'll try to build the newest version when I have the time. Its pretty unfortunate that it doesn't work because VSCode is the only editor that has all ticks on this page https://wiki.dlang.org/Editors so people new to D are more likely to try VSCode first (like me), only wasting time if they are on Windows. Actually, I can use my mother's laptop. Gonna try to fix it now
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 18:07:55 UTC, WebFreak001 wrote: Actually, I can use my mother's laptop. Gonna try to fix it now Check debugger also, please, because it also doesn't work.
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:16:36 UTC, Martin Nowak wrote: Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text? There are about 3 plug-ins for D on Atom, all of which aren't exactly spectacular. They are all missing a few keywords IIRC and/or also fuck up your syntax highlighting quite badly with some constructions (primarily the ones with parentheses).
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 17:49:08 UTC, poliklosio wrote: Oh, I see. I didn't realize you don't have a Windows machine available. I'll try to build the newest version when I have the time. Its pretty unfortunate that it doesn't work because VSCode is the only editor that has all ticks on this page https://wiki.dlang.org/Editors so people new to D are more likely to try VSCode first (like me), only wasting time if they are on Windows. windows hates me too much, these permission issues don't make any sense. Why wouldn't dub be able to write the lib file to the project directory? Fixing workspace-d-installer is just as important as fixing workspace-d for windows. Also the laptop is so super slow, I think my Windows VM would be faster. Gonna try and fix the issues on there in the next few days.
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 21:33:49 UTC, WebFreak001 wrote: On Sunday, 22 May 2016 at 17:49:08 UTC, poliklosio wrote: Oh, I see. I didn't realize you don't have a Windows machine available. I'll try to build the newest version when I have the time. Its pretty unfortunate that it doesn't work because VSCode is the only editor that has all ticks on this page https://wiki.dlang.org/Editors so people new to D are more likely to try VSCode first (like me), only wasting time if they are on Windows. windows hates me too much, these permission issues don't make any sense. Why wouldn't dub be able to write the lib file to the project directory? Fixing workspace-d-installer is just as important as fixing workspace-d for windows. Also the laptop is so super slow, I think my Windows VM would be faster. Gonna try and fix the issues on there in the next few days. Maybe you are trying to write to the Program Files folder which became unwritable without admin priviledges since approximately Windows 7? Anyway, good luck! I hope you don't give up. For those who wonder what works on Windows, Eclipse + DDT works great for me (specifically Windows 7).
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 15:35:23 UTC, poliklosio wrote: The code-d plugin doesn't work on Windows for a very long time (months). There is even an issue on github https://github.com/Pure-D/code-d/issues/38 Do you have any plans of fixing it or is Windows low priority? Doesn't work on OSX as well due to this issue https://github.com/Pure-D/code-d/issues/29
Re: D plugin for Visual Studio Code
On Monday, 23 May 2016 at 06:20:41 UTC, finalpatch wrote: On Sunday, 22 May 2016 at 15:35:23 UTC, poliklosio wrote: The code-d plugin doesn't work on Windows for a very long time (months). There is even an issue on github https://github.com/Pure-D/code-d/issues/38 Do you have any plans of fixing it or is Windows low priority? Doesn't work on OSX as well due to this issue https://github.com/Pure-D/code-d/issues/29 I just wanted to post that. It is a real bummer - long standing bug! U have no idea how much effort I put into researching that one ;) Cheers, Stephan
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:16:36 UTC, Martin Nowak wrote: Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text? I don't use Windows || Visual Studio, but what happend to VisualD? http://rainers.github.io/visuald/visuald/StartPage.html
Re: D plugin for Visual Studio Code
On Monday, 23 May 2016 at 12:27:23 UTC, Seb wrote: I don't use Windows || Visual Studio, but what happend to VisualD? http://rainers.github.io/visuald/visuald/StartPage.html VisualD is fine, but some of us don't feel like to install a 20Gig IDE just to hack some D code.
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 21:33:49 UTC, WebFreak001 wrote: windows hates me too much, these permission issues don't make any sense. Why wouldn't dub be able to write the lib file to the project directory? Fixing workspace-d-installer is just as important as fixing workspace-d for windows. Also the laptop is so super slow, I think my Windows VM would be faster. Gonna try and fix the issues on there in the next few days. Executable files with the text "install" and "setup" in the name, require elevation. And it's very uncomfortable :( Maybe change the output name from "workspace-d-installer" to "workspace-d-builder". About debugger on windows: https://forum.dlang.org/post/wctrsimrsfpbdkgce...@forum.dlang.org But I think it would be better to fix dmd.
Re: D plugin for Visual Studio Code
On Tuesday, 24 May 2016 at 09:01:15 UTC, akaDemik wrote: Executable files with the text "install" and "setup" in the name, require elevation. Only legacy software: 32-bit applications without manifest.
Re: D plugin for Visual Studio Code
On Tuesday, 24 May 2016 at 09:01:15 UTC, akaDemik wrote: On Sunday, 22 May 2016 at 21:33:49 UTC, WebFreak001 wrote: windows hates me too much, these permission issues don't make any sense. Why wouldn't dub be able to write the lib file to the project directory? Fixing workspace-d-installer is just as important as fixing workspace-d for windows. Also the laptop is so super slow, I think my Windows VM would be faster. Gonna try and fix the issues on there in the next few days. Executable files with the text "install" and "setup" in the name, require elevation. And it's very uncomfortable :( Maybe change the output name from "workspace-d-installer" to "workspace-d-builder". About debugger on windows: https://forum.dlang.org/post/wctrsimrsfpbdkgce...@forum.dlang.org But I think it would be better to fix dmd. The fact the 'security' feature is done on the name of a file and therefore so easily circumvented means it's not a 'security' feature at all, and only an annoyance!
Re: D plugin for Visual Studio Code
On Tuesday, 24 May 2016 at 09:46:28 UTC, wobbles wrote: The fact the 'security' feature is done on the name of a file and therefore so easily circumvented means it's not a 'security' feature at all, and only an annoyance! If the filename does not contain install or setup there is no elevation at all, so nothing is circumvented. As Kagamin noted this is to keep legacy installers working in a way that your average non-poweruser can use. If you wish to use these words in your filename without elevating, just add a manifest, which you should do anyways ^^
Re: D plugin for Visual Studio Code
On Tuesday, 24 May 2016 at 09:46:28 UTC, wobbles wrote: The fact the 'security' feature is done on the name of a file and therefore so easily circumvented means it's not a 'security' feature at all, and only an annoyance! Elevation heuristics is not a security feature indeed, it only improves security UX. If an installer runs nonelevated, it will fail halfway through, which is bad UX, the solution is to run it elevated from the beginning, the system detects the need for elevation when the process starts. A proper way to do it is to inform the system whether the process needs elevation, it's done in a manifest, but old installers don't have manifest, so they are detected heuristically.
Re: D plugin for Visual Studio Code
On Tuesday, 24 May 2016 at 09:01:15 UTC, akaDemik wrote: About debugger on windows: https://forum.dlang.org/post/wctrsimrsfpbdkgce...@forum.dlang.org But I think it would be better to fix dmd. Yep, already working on implementing that into code-debug (my debugging/MI extension for vscode)
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 12:39:08 UTC, WebFreak001 wrote: Is the name really that bad? I mean you can find it if you search for `dlang` in the editor because it has dlang in the description. I used the web search (which is really bad) and tried D, dlang, D lang, and D language.
Re: D plugin for Visual Studio Code
On Sunday, 29 May 2016 at 18:20:29 UTC, Martin Nowak wrote: I used the web search (which is really bad) and tried D, dlang, D lang, and D language. Apparently didn't try dlang, my fault. Would it be possible to add the other search terms? Same point had already been raised in a plugin review btw. Maybe you could also rename the plugin to dlang?
Re: D plugin for Visual Studio Code
On Sunday, 22 May 2016 at 23:13:45 UTC, poliklosio wrote: Anyway, good luck! I hope you don't give up. code-d & workspace-d now work on windows. You just need to compile workspace-d with LDC but the installer will do that for you
[OT] Visual Studio Code on three platform
Microsoft is releasing .NET Core for Linux, Windows, and Mac. http://techcrunch.com/2015/04/29/microsoft-launches-its-net-distribution-for-linux-and-mac/#.jlueia:elZb I cannot find the flexibility of D in C# though, having .NET on every platform will be a big gain for them I think. http://live.theverge.com/microsoft-build-2015-live-blog/
Visual Studio Code, Code-D and Microsoft's Visual C++ Debugger (cppvsdbg)
Good time of day, everyone Recently I've got myself into D Language again, but got a problem with debugging on Windows, obviously. While Visual D with Mago provides pretty comfortable workflow, I highly appreciate what Code D did with it's more closer and tight integrating with DScanner and DFormat, better DUB workflow and so on... The biggest problem there is debugging on Windows OS. GDB from either Microsoft's C/C++ plugin (ms-vscode.cpptools) or WebFreak's Native Debug (webfreak.debug) didn't took me anywhere. Broken Mago-MI integration in WebFreak's Native Debug (which I have "fixed" locally after few moves around) didn't took me far as well, the best I got was something bad about Stack Frame. Meanwhile, the original Microsoft's Visual C++ Debugger (cppvsdbg) is working pretty much flawless with D. With the problem, of course, not being able to show what is inside of the slice/dynamic arrays. Having "fun" with Natvis (The Visual Studio Natvis framework lets you customize the way Visual Studio displays native types in debugger variable windows) I found that giving D types to catch won't work as Visual C++ Debugger (cppvsdbg) is expecting valid C++ names to work with. I mostly gave up there, but then I found interesting trick that Visual Rust and Rust plugin for Visual Studio Code are using. They added option to compiler to write debug information as that's C++ code (so they doesn't have to come up with their own debugger for Windows), with pretty simple trick in rustc and simplest Natvis file they then have integrated into PDB that they ship with it. So I've tried to apply that to DMD and see what will happen. Currently, as matter of experiment, I've changed it on my side permanently, but thinking about adding new flag to DMD. The change was about this big: // diff --git a/src/dmd/hdrgen.d b/src/dmd/hdrgen.d index d9eca8721..a02c6bfef 100644 --- a/src/dmd/hdrgen.d +++ b/src/dmd/hdrgen.d @@ -814,8 +814,9 @@ public: else { L1: +buf.writestring("__dlang::__darray<"); visitWithMask(t.next, t.mod); -buf.writestring("[]"); +buf.writestring(">"); } } // Now, equipped with that one and fairly small Natvis file that can be integrated into DMD somewhere and/or Code D, I've got nice views with flawlessly working Visual C++ Debugger on my D code. For matter of showcase, links with the screenshots: 1) https://cdn.discordapp.com/attachments/463259852311887874/491953617545330689/unknown.png 2) https://cdn.discordapp.com/attachments/463259852311887874/491956446469029888/unknown.png This one can be further expanded with correct expanding of string, wstring, dstring and/or any other built-in interesting/specific/complex types from D. What people working on DMD think about adding something likes this? Will it break everything? What if that will be added as DMD command line option to make life easier for end user on Windows for their own projects (at least they may enable that temporary while debugging, so it won't add side effects to anything else)? P.S. Even without any optional switch that haven't broke Mago on Visual D, so working with D, especially debugging, can become far, far easier than it's now. Even with this small change I'm able to continue working on my project without thinking twice why I haven't stayed on C++.
Re: Visual Studio Code, Code-D and Microsoft's Visual C++ Debugger (cppvsdbg)
On Wednesday, 19 September 2018 at 14:22:13 UTC, Void-995 wrote: [...] Cool! What if that will be added as DMD command line option DMD used to have the switch -gc, which meant to emit debug information but pretend to be C as much as possible. It was removed as it wasn't considered necessary any more, but this looks like the perfect use case for it. I suppose it's not possible to make Natvis understand D symbols? Rainer Schuetze would be the person closest to this topic, I think. Doesn't Visual D already have something in it to get the VS debugger to understand some D types better?
Re: Visual Studio Code, Code-D and Microsoft's Visual C++ Debugger (cppvsdbg)
On Wednesday, 19 September 2018 at 14:29:27 UTC, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 14:22:13 UTC, Void-995 wrote: [...] Cool! What if that will be added as DMD command line option DMD used to have the switch -gc, which meant to emit debug information but pretend to be C as much as possible. It was removed as it wasn't considered necessary any more, but this looks like the perfect use case for it. I suppose it's not possible to make Natvis understand D symbols? Rainer Schuetze would be the person closest to this topic, I think. Doesn't Visual D already have something in it to get the VS debugger to understand some D types better? Unfortunately you can't make Natvis to understand D symbols as it's purely for C++. You can make C# extension for Visual Studio to do pretty much whatever, but that's not usable much as it doesn't work for VS Code from what I found (and C# are extremely complex for this matter from my point of view). I think Visual D is using Mago internally via DLLs or something, and doing it's own thing. Something like -gc would be great to have again (I guess I missed that one), even -gcpp (to pretend it's C++) that can be used by pretty printing in GDB (fairly simple changes in Python scripts from printing standard C++ stuff) and Microsoft's Debugger. So the classes, namespaces, containers, dynamic arrays can be easily represented with actually having structure and sense from C++ point of view.
Re: Visual Studio Code, Code-D and Microsoft's Visual C++ Debugger (cppvsdbg)
On Wednesday, 19 September 2018 at 14:37:32 UTC, Void-995 wrote: On Wednesday, 19 September 2018 at 14:29:27 UTC, Vladimir Panteleev wrote: [...] Unfortunately you can't make Natvis to understand D symbols as it's purely for C++. You can make C# extension for Visual Studio to do pretty much whatever, but that's not usable much as it doesn't work for VS Code from what I found (and C# are extremely complex for this matter from my point of view). I think Visual D is using Mago internally via DLLs or something, and doing it's own thing. Something like -gc would be great to have again (I guess I missed that one), even -gcpp (to pretend it's C++) that can be used by pretty printing in GDB (fairly simple changes in Python scripts from printing standard C++ stuff) and Microsoft's Debugger. So the classes, namespaces, containers, dynamic arrays can be easily represented with actually having structure and sense from C++ point of view. Forgot to mention that Microsoft added partial support (that may be more than sufficient for D case) to their C/C++ in VS code for both GDB and LLDB. So this one may be useful to make debugging more friendly on Linux and Mac as well!
Re: Visual Studio Code, Code-D and Microsoft's Visual C++ Debugger (cppvsdbg)
On Wednesday, 19 September 2018 at 14:29:27 UTC, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 14:22:13 UTC, Void-995 wrote: [...] Cool! What if that will be added as DMD command line option DMD used to have the switch -gc, which meant to emit debug information but pretend to be C as much as possible. It was removed as it wasn't considered necessary any more, but this looks like the perfect use case for it. I suppose it's not possible to make Natvis understand D symbols? Rainer Schuetze would be the person closest to this topic, I think. Doesn't Visual D already have something in it to get the VS debugger to understand some D types better? Thanks for pointing me at -gc. That's way better place to continue needed work for making Natvis working properly and happy. Of course, the start is ugly, bat that's the start: https://www.dropbox.com/s/vb5fjwclrzcwl3l/dmd-return-of-gc-for-natvis-0001.diff?dl=0