Thread overview
Few guide notes for newbie. Please
Jan 11
Marcone
January 10
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


January 11
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.
January 10
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.
January 10
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.
January 10
> 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

January 11
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".


January 11
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.
January 11
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.
January 11
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.