www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Atom, ide-dlang and.. a better doc for beginners ?

reply tastyminerals <tastyminerals gmail.com> writes:
https://forum.dlang.org/post/cvqddjjlmkjvbtxndgjb forum.dlang.org

On Sunday, 9 February 2020 at 13:48:03 UTC, ffred wrote:
 Hello all,
 I'm new to D and looking to set a development environment for 
 it that suits my taste.
 I already used VScode when learning Go, but I'm not a big fan 
 of it. so for D I'm trying to use Atom and with ide-dlang it 
 could be fine for me.
 I don't mean bad, it's good work and I have to say thank you 
 for that, but the documentation available is not really 
 complete or beginner friendly.

 it's working, I can build my first example, but I don't 
 understand how to go further. actually I can build, but how to 
 build & run or at least be able to run after having build.
 should I create new settings in the "build" package or install 
 another package in witch I could set commands to run in a 
 terminal (like I did in VScode).

 the ide-dlang package's webpage just mentions at the bottom of 
 the page that atom-ide-ui and build packages should also be 
 installed, but doesn't say what need or could be done with them 
 and there's not much info on how to use the whole system.

 I searched online, but can't find any page about Dlang with 
 Atom & ide-dlang..

 is there someone else here using it who can at least tell me 
 how he/she is using it and if I should use some more packages..?
 thanks.
 ffred
Building D projects / scripts is easier than you think. I personally use VSCode and its build-in terminal. Create a dub project with "dub init" and then type "dub build" in your VSCode terminal. Easy. If you want to build D project using VSCode menu, install "D Programming Language (code-d)" and "D Language utility extension pack" plugins. Then via "Terminal" -> "Run build task" you will get a relevant drop down menu with building you project. Additionally, here is a post I wrote on how to build D projects and use external libs: https://tastyminerals.github.io/tasty-blog/dlang/2020/03/01/how-to-use-external-libraries-in-d-project.html
Jun 18 2020
parent reply tastyminerals <tastyminerals gmail.com> writes:
On Thursday, 18 June 2020 at 21:04:42 UTC, tastyminerals wrote:
 https://forum.dlang.org/post/cvqddjjlmkjvbtxndgjb forum.dlang.org

 On Sunday, 9 February 2020 at 13:48:03 UTC, ffred wrote:
 [...]
Building D projects / scripts is easier than you think. I personally use VSCode and its build-in terminal. Create a dub project with "dub init" and then type "dub build" in your VSCode terminal. Easy. If you want to build D project using VSCode menu, install "D Programming Language (code-d)" and "D Language utility extension pack" plugins. Then via "Terminal" -> "Run build task" you will get a relevant drop down menu with building you project. Additionally, here is a post I wrote on how to build D projects and use external libs: https://tastyminerals.github.io/tasty-blog/dlang/2020/03/01/how-to-use-external-libraries-in-d-project.html
Oops, that was intended as a "reply". But a new thread was created, hmm.
Jun 18 2020
parent jerome <jegaultier gmail.com> writes:
To answer the title,

I just get started with D, so I went to the process of finding 
the right IDE on my Ubuntu 20. Finally, Atom is my editor of 
choice (over Dexed, codeblocks, visual studio code and others). 
To make it a light IDE, I installed the 3 community packages :

* build
* busy-signal
* ide-dlang (not maintained but working fine)

Then I installed the D binaries (dub, dmd) with the script given 
on the website, in the official download links. I guess I could 
have done sudo apt install also, but at least I get the last D 
compiler. I then added the path of dub, dmb, etc to my $PATH. In 
fact doing

source  ~/dlang/dmd-2.093.1/activate         in my ~/.profile.

You still need to do
$dub init new_playground
to create a D project. But then you can Add Project Folder in 
Atom, then click any file of your project, then press F9 to 
compile, or F7 to define build, run... The only pain I have is 
that the debug pane is closing upon successful compilation, 
instead of staying open. You gotta press F8.

Anyway, good enough! Nice code completion and syntax 
highlighting, nice theme, github integrated... I am happy with 
Atom.
Sep 12 2020