www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - DWT doesn't compile with dmd 2.87.0

reply Patrick Schluter <Patrick.Schluter bbox.fr> writes:
DWT doesn't build anymore with the new compiler. Wasn't DWT 
supposed to be part of the build job of compiler so that 
regressions are caught in time?


dwt 1.0.1+swt-3.4.1: building configuration "windows-win32"...
C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal
gdip\Gdip.d(478,9): Deprecation: The delete keyword has been deprecated.  Use
object.destroy() (and core.memory.GC.free() if applicable) instead.
C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleCo
trolSite.d(886,43): Error: class
`org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` member AddRef is not
accessible
C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleCo
trolSite.d(906,43): Error: class
`org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` member AddRef is not
accessible
C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\wi
gets\IME.d(506,29): Deprecation: The delete keyword has been deprecated.  Use
object.destroy() (and core.memory.GC.free() if applicable) instead.
C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
Jul 14 2019
next sibling parent Patrick Schluter <Patrick.Schluter bbox.fr> writes:
On Sunday, 14 July 2019 at 17:00:53 UTC, Patrick Schluter wrote:
 DWT doesn't build anymore with the new compiler. Wasn't DWT 
 supposed to be part of the build job of compiler so that 
 regressions are caught in time?

 [...]
This is the dub output with version 2.087.0. The thing builds without problems with dmd 2.080.1
Jul 14 2019
prev sibling next sibling parent Mike Franklin <slavo5150 yahoo.com> writes:
On Sunday, 14 July 2019 at 17:00:53 UTC, Patrick Schluter wrote:
 DWT doesn't build anymore with the new compiler. Wasn't DWT 
 supposed to be part of the build job of compiler so that 
 regressions are caught in time?
It's not a regression; deprecations are a normal progression for evolving the language. Please just submit a PR to DWT to bring the code up to modern expectations. Mike
Jul 14 2019
prev sibling next sibling parent Jacob Carlborg <doob me.com> writes:
On 2019-07-14 19:00, Patrick Schluter wrote:

 Wasn't DWT supposed to 
 be part of the build job of compiler so that regressions are caught in 
 time?
Yes, but that's only for Linux. -- /Jacob Carlborg
Jul 16 2019
prev sibling next sibling parent reply knt.roh <knt.roh gmail.com> writes:
https://github.com/d-widget-toolkit/dwt/pull/47
I have sent this pull request.
If this PR is merged and the dub package is updated, then this 
problem is probably fixed.
Jul 16 2019
parent reply Jacob Carlborg <doob me.com> writes:
On 2019-07-16 15:27, knt.roh wrote:
 https://github.com/d-widget-toolkit/dwt/pull/47
 I have sent this pull request.
 If this PR is merged and the dub package is updated, then this problem 
 is probably fixed.
Seems he has a different issue. Your PR fixes an error. He's getting deprecation messages. -- /Jacob Carlborg
Jul 18 2019
parent knt.roh <knt.roh gmail.com> writes:
On Thursday, 18 July 2019 at 07:48:22 UTC, Jacob Carlborg wrote:
 On 2019-07-16 15:27, knt.roh wrote:
 https://github.com/d-widget-toolkit/dwt/pull/47
 I have sent this pull request.
 If this PR is merged and the dub package is updated, then this 
 problem is probably fixed.
Seems he has a different issue. Your PR fixes an error. He's getting deprecation messages.
A fetched code by dub is old. These warnings have been fixed in the current master branch.
Jul 18 2019
prev sibling next sibling parent Jacob Carlborg <doob me.com> writes:
On 2019-07-14 19:00, Patrick Schluter wrote:
 DWT doesn't build anymore with the new compiler. Wasn't DWT supposed to 
 be part of the build job of compiler so that regressions are caught in 
 time?
 
 
 dwt 1.0.1+swt-3.4.1: building configuration "windows-win32"...
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal
gdip\Gdip.d(478,9): 
 Deprecation: The delete keyword has been deprecated.  Use 
 object.destroy() (and core.memory.GC.free() if applicable) instead.
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleCo
trolSite.d(886,43): 
 Error: class `org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` 
 member AddRef is not accessible
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleCo
trolSite.d(906,43): 
 Error: class `org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` 
 member AddRef is not accessible
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\wi
gets\IME.d(506,29): 
 Deprecation: The delete keyword has been deprecated.  Use 
 object.destroy() (and core.memory.GC.free() if applicable) instead.
 C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
As a workaround you can disable deprecation messages by adding "silenceDeprecations" to the "buildRequirements" setting in your Dub file. -- /Jacob Carlborg
Jul 18 2019
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2019-07-14 19:00, Patrick Schluter wrote:
 DWT doesn't build anymore with the new compiler. Wasn't DWT supposed to 
 be part of the build job of compiler so that regressions are caught in 
 time?
 
 
 dwt 1.0.1+swt-3.4.1: building configuration "windows-win32"...
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal
gdip\Gdip.d(478,9): 
 Deprecation: The delete keyword has been deprecated.  Use 
 object.destroy() (and core.memory.GC.free() if applicable) instead.
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleCo
trolSite.d(886,43): 
 Error: class `org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` 
 member AddRef is not accessible
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleCo
trolSite.d(906,43): 
 Error: class `org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` 
 member AddRef is not accessible
 C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\wi
gets\IME.d(506,29): 
 Deprecation: The delete keyword has been deprecated.  Use 
 object.destroy() (and core.memory.GC.free() if applicable) instead.
 C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
A new release has been made available: https://github.com/d-widget-toolkit/dwt/releases/tag/v1.0.2%2Bswt-3.4.1 In the future, please report an issue here: https://github.com/d-widget-toolkit/dwt/issues -- /Jacob Carlborg
Jul 18 2019