symmetryinvestments / dubproxy

A small library and cli to bypass code.dlang.org in a way transparent to dub
GNU Lesser General Public License v3.0
13 stars 0 forks source link

Json deprecation #2

Open o3o opened 5 years ago

o3o commented 5 years ago
$ dub build --config=cli
Fetching urld 2.1.1 (getting selected version)...
Performing "debug" build using /usr/bin/dmd for x86_64.
urld 2.1.1: building configuration "library"...
dubproxy 1.0.1+commit.4.gb7e021c: building configuration "cli"...
/usr/include/dlang/dmd/std/traits.d(4130,37): Deprecation: enum member `std.json.JSONType.NULL` is deprecated - Use .null_
/usr/include/dlang/dmd/std/traits.d-mixin-4111(4111,50): Deprecation: enum member `std.json.JSONType.NULL` is deprecated - Use .null_
/usr/include/dlang/dmd/std/traits.d(4128,17): Deprecation: enum member `std.json.JSONType.NULL` is deprecated - Use .null_
/usr/include/dlang/dmd/std/traits.d(4130,37): Deprecation: enum member `std.json.JSONType.STRING` is deprecated - Use .string
/usr/include/dlang/dmd/std/traits.d-mixin-4111(4111,52): Deprecation: enum member `std.json.JSONType.STRING` is deprecated - Use .string
/usr/include/dlang/dmd/std/traits.d(4128,17): Deprecation: enum member `std.json.JSONType.STRING` is deprecated - Use .string
/usr/include/dlang/dmd/std/traits.d(4130,37): Deprecation: enum member `std.json.JSONType.INTEGER` is deprecated - Use .integer
/usr/include/dlang/dmd/std/traits.d-mixin-4111(4111,53): Deprecation: enum member `std.json.JSONType.INTEGER` is deprecated - Use .integer
/usr/include/dlang/dmd/std/traits.d(4128,17): Deprecation: enum member `std.json.JSONType.INTEGER` is deprecated - Use .integer
.....

My environment:

$ dmd --version
DMD64 D Compiler v2.087.1

$ dub --version
DUB version 1.16.0, built on Jul 02 2019

Thank you.

burner commented 5 years ago

I'm not really sure how the code ends up in enummembers. Got to do some more investigating. I believe this will fix itself as soon as NULL,STRING and friends get removed from std.json.JSONType.