www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D plugin for Visual Studio Code

reply Martin Nowak <code dawg.eu> writes:
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?
May 22 2016
next sibling parent Daniel N <ufo orbiting.us> writes:
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
May 22 2016
prev sibling next sibling parent reply nazriel <spam dzfl.pl> writes:
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
May 22 2016
parent reply WebFreak001 <janju007 web.de> writes:
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.
May 22 2016
next sibling parent reply nazriel <spam dzfl.pl> writes:
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
May 22 2016
parent reply WebFreak001 <janju007 web.de> writes:
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`
May 22 2016
parent reply poliklosio <poliklosio happypizza.com> writes:
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?
May 22 2016
next sibling parent reply WebFreak001 <janju007 web.de> writes:
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?
May 22 2016
parent reply poliklosio <poliklosio happypizza.com> writes:
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.
May 22 2016
next sibling parent reply WebFreak001 <janju007 web.de> writes:
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
May 22 2016
parent Dmitry <dmitry indiedev.ru> writes:
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.
May 22 2016
prev sibling parent reply WebFreak001 <janju007 web.de> writes:
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.
May 22 2016
next sibling parent reply poliklosio <poliklosio happypizza.com> writes:
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).
May 22 2016
parent WebFreak001 <janju007 web.de> writes:
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
Jun 02 2016
prev sibling parent reply akaDemik <mail4aka gmail.com> writes:
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/wctrsimrsfpbdkgcejrs forum.dlang.org But I think it would be better to fix dmd.
May 24 2016
next sibling parent Kagamin <spam here.lot> writes:
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.
May 24 2016
prev sibling next sibling parent reply wobbles <grogan.colin gmail.com> writes:
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/wctrsimrsfpbdkgcejrs 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!
May 24 2016
next sibling parent Rene Zwanenburg <renezwanenburg gmail.com> writes:
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 ^^
May 24 2016
prev sibling parent Kagamin <spam here.lot> writes:
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.
May 24 2016
prev sibling parent WebFreak001 <janju007 web.de> writes:
On Tuesday, 24 May 2016 at 09:01:15 UTC, akaDemik wrote:
 About debugger on windows:
 https://forum.dlang.org/post/wctrsimrsfpbdkgcejrs 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)
May 24 2016
prev sibling parent reply finalpatch <fengli gmail.com> writes:
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
May 22 2016
parent extrawurst <stephan extrawurst.org> writes:
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
May 23 2016
prev sibling parent reply Martin Nowak <code dawg.eu> writes:
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.
May 29 2016
parent Martin Nowak <code dawg.eu> writes:
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?
May 29 2016
prev sibling next sibling parent Lass Safin <lasssafin gmail.com> writes:
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).
May 22 2016
prev sibling parent reply Seb <seb wilzba.ch> writes:
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
May 23 2016
parent finalpatch <fengli gmail.com> writes:
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.
May 23 2016