www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dub.sdl bindbc-glfw is returning a deprecation warming. So what do I

reply WhatMeWorry <kheaser gmail.com> writes:
my small dub.sdl project uses:

dependency "bindbc-glfw"      version="~>1.0.1"
versions "GLFW_33"

and returns

Building bindbc-glfw 1.0.1: building configuration [dynamic]
C:\Users\Admin\AppData\Local\dub\packages\bindbc-glfw-1.0.1\bindbc-glfw\source\bindbc\glfw\bi
ddynamic.d(557,11): Deprecation: variable `bindbc.loader.system.bindWindows` is
deprecated


So now what?  I'm pretty sure deprecation means to replace with 
something better
but what would that be?   I looked on github code in 
binddynamic.d at line 557 and
the package info at the DUB web site and I'm still clueless.
Mar 08 2023
next sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 3/8/23 7:21 PM, WhatMeWorry wrote:
 my small dub.sdl project uses:
 
 dependency "bindbc-glfw"      version="~>1.0.1"
 versions "GLFW_33"
 
 and returns
 
 Building bindbc-glfw 1.0.1: building configuration [dynamic]
 C:\Users\Admin\AppData\Local\dub\packages\bindbc-glfw-1.0.1\bindbc-glfw\source\bindbc\glfw\bi
ddynamic.d(557,11): Deprecation: variable `bindbc.loader.system.bindWindows` is
deprecated
 
 
 So now what?  I'm pretty sure deprecation means to replace with 
 something better
 but what would that be?   I looked on github code in binddynamic.d at 
 line 557 and
 the package info at the DUB web site and I'm still clueless.
It's newly deprecated, without much explanation: https://github.com/BindBC/bindbc-loader/commit/d13d7f246f325472b26282cfac8d2b02b26eccac Last commit to bindbc-glfw is from last year, so it makes sense why it is triggering this. I feel it was in error to deprecate symbols without bumping the major revision. -Steve
Mar 08 2023
prev sibling parent reply IchorDev <zxinsworld gmail.com> writes:
On Thursday, 9 March 2023 at 00:21:02 UTC, WhatMeWorry wrote:
 my small dub.sdl project uses:

 dependency "bindbc-glfw"      version="~>1.0.1"
 versions "GLFW_33"

 and returns

 Building bindbc-glfw 1.0.1: building configuration [dynamic]
 C:\Users\Admin\AppData\Local\dub\packages\bindbc-glfw-1.0.1\bindbc-glfw\source\bindbc\glfw\bi
ddynamic.d(557,11): Deprecation: variable `bindbc.loader.system.bindWindows` is
deprecated


 So now what?  I'm pretty sure deprecation means to replace with 
 something better
 but what would that be?   I looked on github code in 
 binddynamic.d at line 557 and
 the package info at the DUB web site and I'm still clueless.
Sorry about that. Try updating to bindbc-glfw 1.0.2, should be fixed now. If you see any other deprecation warnings from BindBC bindings you can silence them with `-d` until they're updated.
Mar 08 2023
parent WhatMeWorry <kheaser gmail.com> writes:
On Thursday, 9 March 2023 at 06:36:18 UTC, IchorDev wrote:
 On Thursday, 9 March 2023 at 00:21:02 UTC, WhatMeWorry wrote:
 [...]
Sorry about that. Try updating to bindbc-glfw 1.0.2, should be fixed now. If you see any other deprecation warnings from BindBC bindings you can silence them with `-d` until they're updated.
No problem :) Thanks!
Mar 09 2023