Re: DWT doesn't compile with dmd 2.87.0

2019-07-18 Thread Jacob Carlborg via Digitalmars-d-dwt

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\OleControlSite.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\OleControlSite.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\widgets\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


Re: DWT doesn't compile with dmd 2.87.0

2019-07-18 Thread knt.roh via Digitalmars-d-dwt

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.


Re: DWT doesn't compile with dmd 2.87.0

2019-07-18 Thread Jacob Carlborg via Digitalmars-d-dwt

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\OleControlSite.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\OleControlSite.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\widgets\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


Re: DWT doesn't compile with dmd 2.87.0

2019-07-18 Thread Jacob Carlborg via Digitalmars-d-dwt

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


Re: DWT doesn't compile with dmd 2.87.0

2019-07-16 Thread knt.roh via Digitalmars-d-dwt

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.


Re: DWT doesn't compile with dmd 2.87.0

2019-07-16 Thread Jacob Carlborg via Digitalmars-d-dwt

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


Re: DWT doesn't compile with dmd 2.87.0

2019-07-14 Thread Mike Franklin via Digitalmars-d-dwt

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




Re: DWT doesn't compile with dmd 2.87.0

2019-07-14 Thread Patrick Schluter via Digitalmars-d-dwt

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