www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Dlang IDE: Emacs, VS Code, or something else?

reply James Lu <jamtlu gmail.com> writes:
Hi,

I tried the IntelliJ D plugin with D Language Server, but it 
constantly froze the IDE. I found it to be worse than editing D 
with a normal text editor.

How do the various Dlang IDEs compare? Are the Emacs and VS Code 
IDEs essentially equivalent in information provided? (hover for 
type previews, documentation, suggested fixes, etc.)
Aug 28 2020
next sibling parent rikki cattermole <rikki cattermole.co.nz> writes:
DCD based: Intellij IDEA plugin[0], VS-Code, Dexed (and I'm sure there 
are others)
VisualD: dmd-fe and DParser

No idea where Emacs stands.

dmd-fe is the ultimate and best that we could have since full IDE 
features requires a full frontend. But it isn't yet ready for prime time 
as it wasn't designed with this usage in mind.

[0] https://github.com/intellij-dlanguage/intellij-dlanguage
Aug 28 2020
prev sibling next sibling parent reply tastyminerals <tastyminerals gmail.com> writes:
On Friday, 28 August 2020 at 14:12:38 UTC, James Lu wrote:
 Hi,

 I tried the IntelliJ D plugin with D Language Server, but it 
 constantly froze the IDE. I found it to be worse than editing D 
 with a normal text editor.

 How do the various Dlang IDEs compare? Are the Emacs and VS 
 Code IDEs essentially equivalent in information provided? 
 (hover for type previews, documentation, suggested fixes, etc.)
I found VS Code with D plugins to work best currently.
Aug 28 2020
parent starcanopy <starcanopy protonmail.com> writes:
On Friday, 28 August 2020 at 18:10:21 UTC, tastyminerals wrote:
 On Friday, 28 August 2020 at 14:12:38 UTC, James Lu wrote:
 Hi,

 I tried the IntelliJ D plugin with D Language Server, but it 
 constantly froze the IDE. I found it to be worse than editing 
 D with a normal text editor.

 How do the various Dlang IDEs compare? Are the Emacs and VS 
 Code IDEs essentially equivalent in information provided? 
 (hover for type previews, documentation, suggested fixes, etc.)
I found VS Code with D plugins to work best currently.
It's certainly nice, but it's unfortunate that, in my experiences, one needs to regularly reload Code's window as the plugin will stop working, e.g. auto-completion dies and discovery falls off a cliff. I'm not sure if that's because of the external tools, VS Code, or the extension itself. (This might just be, however.)
Aug 28 2020
prev sibling next sibling parent reply aberba <karabutaworld gmail.com> writes:
On Friday, 28 August 2020 at 14:12:38 UTC, James Lu wrote:
 Hi,

 I tried the IntelliJ D plugin with D Language Server, but it 
 constantly froze the IDE. I found it to be worse than editing D 
 with a normal text editor.

 How do the various Dlang IDEs compare? Are the Emacs and VS 
 Code IDEs essentially equivalent in information provided? 
 (hover for type previews, documentation, suggested fixes, etc.)
https://wiki.dlang.org/IDEs Personally I'll say if you're on Windows, use VisualD+Visual Studio for full blown IDE support cus its currently been updated with more capabilities. However its too heavy IMO. Next is VS Code with fairly good D support...dub integration is top notch. That's the most used editor I think I personally use sublime quite often too. Its either vs code or sublime for me.
Aug 28 2020
parent James Blachly <james.blachly gmail.com> writes:
On 8/28/20 7:43 PM, aberba wrote:
 
 https://wiki.dlang.org/IDEs
 
 Personally I'll say if you're on Windows, use VisualD+Visual Studio for 
 full blown IDE support cus its currently been updated with more 
 capabilities. However its too heavy IMO.
 
 Next is VS Code with fairly good D support...dub integration is top 
 notch. That's the most used editor I think
 
 I personally use sublime quite often too. Its either vs code or sublime 
 for me.
Funny, while I agree vscode with dlang plugin is great (formatting, hinting, linting), I cannot get the dub part to work :| Sounds great though...
Aug 30 2020
prev sibling next sibling parent Nils Lankila <NilsLankila gmx.us> writes:
On Friday, 28 August 2020 at 14:12:38 UTC, James Lu wrote:
 Hi,

 I tried the IntelliJ D plugin with D Language Server, but it 
 constantly froze the IDE. I found it to be worse than editing D 
 with a normal text editor.

 How do the various Dlang IDEs compare? Are the Emacs and VS 
 Code IDEs essentially equivalent in information provided? 
 (hover for type previews, documentation, suggested fixes, etc.)
All the editors, to the exception of Visual-D, that have an advanced support for D use DCD [1] so the quality of the auto-completion, doculmentation popup, etc. is equal. DCD in itself is very stable since a year or so. Personally I'm on v0.12.0-2-g339d38f (dcd-client --version) and it never crashes.
Aug 29 2020
prev sibling parent JN <666total wp.pl> writes:
On Friday, 28 August 2020 at 14:12:38 UTC, James Lu wrote:
 Hi,

 I tried the IntelliJ D plugin with D Language Server, but it 
 constantly froze the IDE. I found it to be worse than editing D 
 with a normal text editor.

 How do the various Dlang IDEs compare? Are the Emacs and VS 
 Code IDEs essentially equivalent in information provided? 
 (hover for type previews, documentation, suggested fixes, etc.)
I tried most of them, and code-d with VSCode works well for me. I felt like IntelliJ might be good but I am getting the freeze issues also making it unusable.
Aug 29 2020