www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Few guide notes for newbie. Please

reply Energo Koder <energokoder adres.pl> writes:
Hi!

After 15 years of absence I have will to again dig in to D lang.
The reason is I think it could be usable, modern and make me 
smarter and more eficient programmer.
In true I am profesional C++ programmer. But I want to expand my 
knowledge and skills in the D way.

So:
Please tell me what is standard (not Emacs nor Vim) D lang 
programming environment?
I mean: What IDE and other tools you find usable for programming 
with D.

What I have done:
* I try to compile dlangui but I got few of errors which are not 
fixable at my (low) level knowledge of D. And GitHub repo seems 
to be outdated.

* I try M$ Code with some plugins. In true I can debug D program. 
But I failed to compile it (I did it from command line). So I 
probably have problem with plugins choice or config them.

I have very limited time, so I can't try every IDEs, so I ask you:
How do you develop D apps?

I think this way is far better than trial and error way without 
promise for optimal solution.

Thank in advance and best regards!
Energo Koder
Jan 10
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 11/01/2021 2:32 AM, Energo Koder wrote:
 So:
 Please tell me what is standard (not Emacs nor Vim) D lang programming 
 environment?
 I mean: What IDE and other tools you find usable for programming with D.
VisualD (VS), VS-code (webfreak.code-d), Intellij IDEA (Intellij D Language, not currently up to date with IntelliJ but should soon). I use IntelliJ IDEA.
 What I have done:
 * I try to compile dlangui but I got few of errors which are not fixable 
 at my (low) level knowledge of D. And GitHub repo seems to be outdated.
No surprise.
 * I try M$ Code with some plugins. In true I can debug D program. But I 
 failed to compile it (I did it from command line). So I probably have 
 problem with plugins choice or config them.
VisualD is your only option if you for some reason can't get DCD, Dscanner and dfmt to compile (it should be as simple as git clone + dub build for each although DCD needs a config arg for server + client). But if you can't get an IDE up and running, just stick with syntax formatting to start off with. D is perfectly ok to be developed like that.
Jan 10
parent reply Energo Koder <energokoder adres.pl> writes:
 VisualD (VS), VS-code (webfreak.code-d), Intellij IDEA 
 (Intellij D Language, not currently up to date with IntelliJ 
 but should soon).

 I use IntelliJ IDEA.
Any idea how to configure IntelliJ IDEA? In order to compile and debug d programs? The same question for M$ Code. Note: I use Linux (Ubuntu 20.04 compatible). Best regards! Energo Koder
Jan 10
parent rikki cattermole <rikki cattermole.co.nz> writes:
On 11/01/2021 9:12 AM, Energo Koder wrote:
 VisualD (VS), VS-code (webfreak.code-d), Intellij IDEA (Intellij D 
 Language, not currently up to date with IntelliJ but should soon).

 I use IntelliJ IDEA.
Any idea how to configure IntelliJ IDEA? In order to compile and debug d programs?
Install plugin. Compilation out of box. But you won't get auto-completion or anything else without dcd, dfmt and dscanner built and set in its config (usual IntelliJ IDEA plugin config dialog). Debug no idea. I have to use VisualD as I'm on Windows. But by the sounds of things, you should skip the IDE and get a hang of building without it. IDE's are very much optional with D. Due to more powerful language features, full auto-completion requires a full frontend and we don't currently have that setup for linux just yet.
Jan 11
prev sibling next sibling parent reply Mike Parker <aldacron gmail.com> writes:
On Sunday, 10 January 2021 at 13:32:06 UTC, Energo Koder wrote:
 I have very limited time, so I can't try every IDEs, so I ask 
 you:
 How do you develop D apps?
VS Code with the code-d plugin.
Jan 10
parent reply Energo Koder <energokoder adres.pl> writes:
Thank all of you for your replies!

On Sunday, 10 January 2021 at 14:13:33 UTC, Mike Parker wrote:
 On Sunday, 10 January 2021 at 13:32:06 UTC, Energo Koder wrote:
 I have very limited time, so I can't try every IDEs, so I ask 
 you:
 How do you develop D apps?
VS Code with the code-d plugin.
I was try it before, but I am failed to build my dub based app. When I click on the triangle on the left, then I have screen with: * "Open file which can be debugged or run" * Button "Run and Debug", but when I click on it then it ask for environment and there is no D or any thing that seems related to it any way. * "To customize Run and Debug create launch.json file." * "Show all automatic configurations." Any idea what am I suppose to to with this? ps. I run on Kubuntu 20.04 LTS.
Jan 10
next sibling parent Mike Parker <aldacron gmail.com> writes:
On Sunday, 10 January 2021 at 15:18:38 UTC, Energo Koder wrote:

 Any idea what am I suppose to to with this?
No idea. I just use the built-in console and type "dub".
Jan 10
prev sibling parent Paulo Pinto <pjmlp progtools.org> writes:
On Sunday, 10 January 2021 at 15:18:38 UTC, Energo Koder wrote:
 Thank all of you for your replies!

 On Sunday, 10 January 2021 at 14:13:33 UTC, Mike Parker wrote:
 On Sunday, 10 January 2021 at 13:32:06 UTC, Energo Koder wrote:
 I have very limited time, so I can't try every IDEs, so I ask 
 you:
 How do you develop D apps?
VS Code with the code-d plugin.
I was try it before, but I am failed to build my dub based app. When I click on the triangle on the left, then I have screen with: * "Open file which can be debugged or run" * Button "Run and Debug", but when I click on it then it ask for environment and there is no D or any thing that seems related to it any way. * "To customize Run and Debug create launch.json file." * "Show all automatic configurations." Any idea what am I suppose to to with this? ps. I run on Kubuntu 20.04 LTS.
Are you sure that you have dmd and dub on the PATH? I am using VSCode on Xubuntu 20.04 LTS just fine, it even installed the proper plugins for me. Usually I install the .deb package provided for download.
Jan 31
prev sibling next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 10 January 2021 at 13:32:06 UTC, Energo Koder wrote:
 Hi!

 After 15 years of absence I have will to again dig in to D lang.
 The reason is I think it could be usable, modern and make me 
 smarter and more eficient programmer.
 In true I am profesional C++ programmer. But I want to expand 
 my knowledge and skills in the D way.

 [...]
Hi! Good to hear you're interested in D again. Many seem to be for some reason lately. There are many options, but I think the most solid one is Visual D, then VS code or the IntelliJ one.
Jan 11
prev sibling parent Marcone <thegrapevine email.com> writes:
On Sunday, 10 January 2021 at 13:32:06 UTC, Energo Koder wrote:
 Hi!

 After 15 years of absence I have will to again dig in to D lang.
 The reason is I think it could be usable, modern and make me 
 smarter and more eficient programmer.
 In true I am profesional C++ programmer. But I want to expand 
 my knowledge and skills in the D way.

 [...]
I use Sublime Text with my own compile assistent and dlang linter.
Jan 11