On Friday, 13 July 2018 at 05:39:24 UTC, JN wrote:
On Friday, 13 July 2018 at 05:29:58 UTC, Timoses wrote:
On Thursday, 12 July 2018 at 20:44:43 UTC, JN wrote:
I am trying to make use of the Orange package, I added the latest version from dub to my project: "orange": "~>1.0.0" and copy pasted the "simple usage" code from https://github.com/jacob-carlborg/orange , but I am getting a long list of errors:

..\..\AppData\Local\dub\packages\orange-1.0.0\orange\orange\serialization\Serializer.d(714,21):
 Error: undefined identifier typedef
[...]

Hm, v1.0.0 is from 2016 and meanwhile typedef was deprecated
https://dlang.org/deprecate.html#typedef .

Perhaps use

"orange": "~master"

to use the latest code.

Looks better, but still doesn't compile:

C:\Users\jacek\Desktop\test_orange>dub run
[...]
test_orange ~master: building configuration "application"...
..\sertest\orange-master\orange\serialization\archives\Archive.d(1313,9): 
Warning: statement is not reachable
[...]
..\sertest\orange-master\orange\serialization\Serializer.d(1215,9): Warning: 
statement is not reachable
C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.

Huh, see this issue on github:
https://github.com/jacob-carlborg/orange/issues/39

which references to https://github.com/jacob-carlborg/mambo . Although that repository has last been updated in 2016 whereas Orange's was Oct. 2017.

Went ahead and applied a few fixes for the warnings I encountered:
https://github.com/jacob-carlborg/orange/pull/50

Reply via email to