Thread overview
Problem building SWTSnippets with D 2.074.x
Jun 02, 2017
Mike James
Jun 02, 2017
Jacob Carlborg
Nov 14, 2017
Mike James
Nov 15, 2017
Mike Parker
Nov 16, 2017
JamesD
Nov 23, 2017
Mike James
Nov 24, 2017
JamesD
Nov 27, 2017
Jacob Carlborg
Nov 27, 2017
Mike James
June 02, 2017
Hi,

I get the following errors when trying to build the swtsnippets with the latest SWT...

PS C:\d\gui\dwt> rdmd build swtsnippets
(in C:\d\gui\dwt)
Building swtsnippets[Snippet10]
dmd.exe @C:\d\gui\dwt\rsp
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(84): Error: basic type expected, not class
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(84): Error: { members } expected for anonymous class
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(84): Error: found 'class' when expecting ';' following state
ment
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(85): Error: found '{' when expecting ';' following statement
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(86): Error: found 'public' instead of statement
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(89): Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(89): Error: no identifier for declarator frame.addListener(S
WT.Resize, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(90): Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(90): Error: no identifier for declarator frame.addListener(S
WT.Move, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(91): Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(91): Error: no identifier for declarator addListener(SWT.Dis
pose, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(92): Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(92): Error: no identifier for declarator addListener(SWT.Foc
usIn, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(93): Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(93): Error: no identifier for declarator addListener(SWT.Foc
usOut, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(94): Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(94): Error: no identifier for declarator addListener(SWT.Pai
nt, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(95): Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(95): Error: no identifier for declarator addListener(SWT.Tra
verse, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(96): Error: function declaration without return type. (Note
that constructors are always named 'this')

object.Exception@build.d(375): compile error
----------------
0x00406C4F
0x004084CF
0x004049CC
0x004207E3
0x004207A7
0x004206A8
0x0041828B
0x74378744 in BaseThreadInitThunk
0x7773587D in RtlGetAppContainerNamedObjectPath
0x7773584D in RtlGetAppContainerNamedObjectPath
PS C:\d\gui\dwt> SampleNoiseMeasureSampleNoiseMeasure


Regards, Mike.
June 02, 2017
On 2017-06-02 09:25, Mike James wrote:
> Hi,
>
> I get the following errors when trying to build the swtsnippets with the
> latest SWT...

This is due to a regression in the compiler [1]. Please use 2.073.x until this has been fixed.

[1] https://issues.dlang.org/show_bug.cgi?id=17371

-- 
/Jacob Carlborg
November 14, 2017
On Friday, 2 June 2017 at 14:01:35 UTC, Jacob Carlborg wrote:
> On 2017-06-02 09:25, Mike James wrote:
>> Hi,
>>
>> I get the following errors when trying to build the swtsnippets with the
>> latest SWT...
>
> This is due to a regression in the compiler [1]. Please use 2.073.x until this has been fixed.
>
> [1] https://issues.dlang.org/show_bug.cgi?id=17371

Hi Jacob,

Has there been any progress on this matter? The snippets still don't compile with the latest compiler...

Regards, Mike
November 15, 2017
On Tuesday, 14 November 2017 at 11:33:44 UTC, Mike James wrote:

>
> Has there been any progress on this matter? The snippets still don't compile with the latest compiler...
>

https://github.com/dlang/dmd/pull/7315
November 16, 2017
On Wednesday, 15 November 2017 at 07:19:17 UTC, Mike Parker wrote:
> On Tuesday, 14 November 2017 at 11:33:44 UTC, Mike James wrote:
>
>>
>> Has there been any progress on this matter? The snippets still don't compile with the latest compiler...
>>
>
> https://github.com/dlang/dmd/pull/7315

Until the issue above is resolved, you can compile with dwtlib.
dwtlib is a work around that uses the *.d source files instead of the *.di files.

     dwtlib - DUB package for the D Widget Toolkit
     https://code.dlang.org/packages/dwtlib

Also try gdub, a gui to test individual snippets (see screen shot);

     GDUB is a DWT GUI front end for DUB, a D language build tool.
     https://code.dlang.org/packages/gdub

November 23, 2017
On Thursday, 16 November 2017 at 02:36:34 UTC, JamesD wrote:
> On Wednesday, 15 November 2017 at 07:19:17 UTC, Mike Parker wrote:
>> On Tuesday, 14 November 2017 at 11:33:44 UTC, Mike James wrote:
>>
>>>
>>> Has there been any progress on this matter? The snippets still don't compile with the latest compiler...
>>>
>>
>> https://github.com/dlang/dmd/pull/7315
>
> Until the issue above is resolved, you can compile with dwtlib.
> dwtlib is a work around that uses the *.d source files instead of the *.di files.
>
>      dwtlib - DUB package for the D Widget Toolkit
>      https://code.dlang.org/packages/dwtlib
>
> Also try gdub, a gui to test individual snippets (see screen shot);
>
>      GDUB is a DWT GUI front end for DUB, a D language build tool.
>      https://code.dlang.org/packages/gdub

Hi James,

When I tried this I got...

Build_dwtlib working in  : C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt
Build_dwtlib builiding   : Windows 64-bit
Build_dwtlib command line: rdmd build.d -m64 clean base swt
(in C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt)
Cleaning
Building dwt-base
workdir=>C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\base\src
dmd.exe @C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\rsp
java\nonstandard\RuntimeTraits.d(61): Error: undefined identifier TypeInfo_Typedef

object.Exception@build.d(256): compile error
----------------
0x0040594A
0x00406E14
0x0041E56F
0x0041E533
0x0041E434
0x0041751F
0x75D78654 in BaseThreadInitThunk
0x77914A47 in RtlGetAppContainerNamedObjectPath
0x77914A17 in RtlGetAppContainerNamedObjectPath

object.Exception@tools\build_dwtlib.d(123): Build_dwtlib ERROR spawning cmd.
----------------
0x004029D0
0x00409ABF
0x00409A83
0x00409984
0x00406AE3
0x75D78654 in BaseThreadInitThunk
0x77914A47 in RtlGetAppContainerNamedObjectPath
0x77914A17 in RtlGetAppContainerNamedObjectPath
Press any key to continue . . .

Regards, Mike.
November 24, 2017
On Thursday, 23 November 2017 at 11:07:54 UTC, Mike James wrote:
>
> When I tried this I got...
>
> Build_dwtlib working in  : C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt
> Build_dwtlib builiding   : Windows 64-bit
> Build_dwtlib command line: rdmd build.d -m64 clean base swt
> (in C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt)
> Cleaning
> Building dwt-base
> workdir=>C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\base\src
> dmd.exe @C:\Users\mikej\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\rsp
> java\nonstandard\RuntimeTraits.d(61): Error: undefined identifier TypeInfo_Typedef
>
> object.Exception@build.d(256): compile error
> ----------------
[snip]

Hi Mike, It looks like you followed the instructions perfectly, even though I have some typos.  I just did a clean install with no errors using the same process.

I am using DUB v1.3.0 and DMD v2.074.0, what versions are you using?
November 27, 2017
On 2017-06-02 16:01, Jacob Carlborg wrote:

> This is due to a regression in the compiler [1]. Please use 2.073.x until this has been fixed.
> 
> [1] https://issues.dlang.org/show_bug.cgi?id=17371
> 

The issue has now been fixed. We'll see in which release of the compiler it will show up.

-- 
/Jacob Carlborg
November 27, 2017
On Monday, 27 November 2017 at 19:21:52 UTC, Jacob Carlborg wrote:
> On 2017-06-02 16:01, Jacob Carlborg wrote:
>
>> This is due to a regression in the compiler [1]. Please use 2.073.x until this has been fixed.
>> 
>> [1] https://issues.dlang.org/show_bug.cgi?id=17371
>> 
>
> The issue has now been fixed. We'll see in which release of the compiler it will show up.

Excellent. 2.077.1 I hope :-)

Regards, Mike.