msoucy / dproto

D Protocol Buffer mixins to create structures at compile time
Boost Software License 1.0
37 stars 16 forks source link

errors 1.2.0 #41

Closed bigbendrugs closed 9 years ago

bigbendrugs commented 9 years ago
~/.dub/packages/dproto-1.1.1/examples/simple % dub
Target dproto 1.1.1 is up to date. Use --force to rebuild.
Building dproto_simple ~master configuration "application", build type debug.
Compiling using dmd...
Linking...
Running ./dproto_simple
Name: John Doe
E-mail: jdoe@example.com

but

:~/.dub/packages/dproto-1.2.0/examples/simple % dub
WARNING: A deprecated branch based version specification is used for the dependency dproto. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Target dproto ~master is up to date. Use --force to rebuild.
Building dproto_simple ~master configuration "application", build type debug.
Compiling using dmd...
../../../../../../../../home/igor/.dub/packages/dproto-master/import/dproto/dproto.d-mixin-43(49): Error: template instance appender!(ubyte[]) template 'appender' is not defined
../../../../../../../../home/igor/.dub/packages/dproto-master/import/dproto/dproto.d-mixin-43(73): Error: template instance appender!(ubyte[]) template 'appender' is not defined
../../../../../../../../home/igor/.dub/packages/dproto-master/import/dproto/dproto.d-mixin-43(51): Error: template instance isOutputRange!(R, ubyte) template 'isOutputRange' is not defined
../../../../../../../../home/igor/.dub/packages/dproto-master/import/dproto/dproto.d-mixin-43(51): Error: template instance isOutputRange!(R, ubyte) template 'isOutputRange' is not defined
../../../../../../../../home/igor/.dub/packages/dproto-master/import/dproto/buffers.d(317): Error: template instance dproto.buffers.RepeatedBuffer!(4LU, "PhoneNumber", PhoneNumber, false, false).RepeatedBuffer.serializeTo!(Appender!(ubyte[], ubyte)) error instantiating
../../../../../../../../home/igor/.dub/packages/dproto-master/import/dproto/dproto.d-mixin-43(72):        instantiated from here: RepeatedBuffer!(4LU, "PhoneNumber", PhoneNumber, false, false)
../../../../../../../../home/igor/.dub/packages/dproto-master/import/dproto/dproto.d-mixin-43(102): Error: template instance isInputRange!R template 'isInputRange' is not defined
FAIL .dub/build/application-debug-posix.freebsd-x86_64-dmd_2066-D58341A42DC7432308F148A8247E9EF7/ dproto_simple executable
Error executing command run:
dmd failed with exit code 1.
msoucy commented 9 years ago

Whoops. I've reproduced the issue, making a fix for it now.