| |
 | Posted by MrJay in reply to Rumbu | Permalink Reply |
|
MrJay 
| On Thursday, 20 July 2023 at 16:22:47 UTC, Rumbu wrote:
> 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.
I am very surprised you had this many issues, I helped a coworker of mine who is not a programmer go through the installation and didnt have any problems, just normal installation stuff, like clicking on what you want installed etc.. I am going to install the latest version right now and see what the steps are again,
but to reiterate I did switch to a scripting language for my work because I didnt want to help like 10 people install D but I got my scripts down to zero installation which is always better than any installation. so until D is zero installation it can still get better.
|