Closed argosopentech closed 9 months ago
Which version of DMD are you using? Maybe an older version does not support trait getVisibility.
v2.090.1 - I installed DMD from the Debian (edit: I installed from Snap not Debian) package repo.
$ dmd --version
DMD64 D Compiler v2.090.1
Copyright (C) 1999-2019 by The D Language Foundation, All Rights Reserved written by Walter Bright
Trait getVisibility has been introduced in DMD version 2.096.0, so it is not supported in the version from Debian.
You can download a newer version of DMD here: https://dlang.org/download.html Versions from 2.100.0 should work, but you can just use the newest version 2.106.1.
You can download a newer version of DMD here: https://dlang.org/download.html Versions from 2.100.0 should work, but you can just use the newest version 2.106.1.
Updating the DMD version worked thanks!
$ dmd --version
DMD64 D Compiler v2.106.1
Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved written by Walter Bright
$ dub run :helloworld
# Hello World window appears on the desktop
I understand that this library is experimental so no need to fix this, I'm just reporting the issue I had trying to run the example.