Long time D user here (from D1 era). I said to come back after two years to see how things evolved in the meantime.
Here is my Windows experience:
- Downloaded DMD installer.
- Cannot run, blocked by AppLocker, IOC blacklisted
- Added to exception list
- Cannot run, blocked by Windows SmartScreen
- Bypass
- You have DMD 2.090 installed, replace it? Yes
- Failed, installer said run dmd-2.104.2.exe /f
- Looking in cpanel to see if I an older version of D is installed. Nope.
- Found an old folder with D. Deleted it.
- Going to command prompt into downloads folder
- Running dmd-2.104.2.exe /f
- Error, an instance of DMD is already running.
- Looking through my processes, there is no such thing
- Running dmd-2.104.2.exe /f again. It works!
- You don't have VS Tools 2019 installed. I have. 2015, 2017, 2019 and 2022
- Ignore and go on.
- Launch VSCode
- Install code-d, C++ already installed
- Create a new project
- Run tasks - Run -> dub cannot be initialized
- Go to code.dlang.org
- Click on Download -> redirect to github/releases
- WTF, only source code.
- building Dub from source
- Added manually to PATH
- Go back to VSCode
- Edit dub.json, adding target ./bin/hello.exe
- Build Task, dub-auto - Run hello, ok
- Build Task, dub-auto - Build hello -> config -> edit tasks.json
- Documentation says that I should have a dub template. Nope, I have a CMake template.
- Too complicated. Close VSCode, posting on forum :)
OK, I know, there is VisualD, but install process is still complicated.