RejectedSoftware Forums

Sign up

Userman still works?

Hello,

Trying to create the simplest 'vide-d' application, two issue arise:

  1. When adding 'userman' to 'package.json' of the application and running 'dub build' - dub is stuck. Removing this dependency (or replacing it with another dub module) works fine.
    'deb fetch userman' also works fine.
  2. Manually copying the files from 'userman-0.0.8' into my project's "source" and "views" directory, build fails with:
Checking dependencies in '/data/gordon/projects/test'
Building configuration "application", build type debug
Compiling...
Compiling diet template 'userman.login.dt' (compat)...
Compiling diet template 'userman.logout.dt' (compat)...
Compiling diet template 'userman.register.dt' (compat)...
Compiling diet template 'userman.register_activate.dt' (compat)...
Compiling diet template 'userman.resend_activation.dt' (compat)...
Compiling diet template 'userman.resend_activation_done.dt' (compat)...
Compiling diet template 'userman.activate.dt' (compat)...
Compiling diet template 'userman.forgot_login.dt' (compat)...
Compiling diet template 'userman.forgot_login_sent.dt' (compat)...
Compiling diet template 'userman.reset_password.dt' (compat)...
Compiling diet template 'userman.reset_password_done.dt' (compat)...
Compiling diet template 'userman.profile.dt' (compat)...
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(122): Error: template instance vibe.data.serialization.serialize!(BsonSerializer, AuthInfo) error instantiating
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(61):        instantiated from here: serialize!(BsonSerializer, User)
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/bson.d(926):        instantiated from here: serialize!(BsonSerializer, User, )
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/db/mongo/collection.d(115):        instantiated from here: serializeToBson!(User)
source/userman/controller.d(67):        instantiated from here: insert!(User)
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(61): Error: template instance vibe.data.serialization.serialize!(BsonSerializer, User) error instantiating
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/bson.d(926):        instantiated from here: serialize!(BsonSerializer, User, )
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/db/mongo/collection.d(115):        instantiated from here: serializeToBson!(User)
source/userman/controller.d(67):        instantiated from here: insert!(User)
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/bson.d(926): Error: template instance vibe.data.serialization.serialize!(BsonSerializer, User, ) error instantiating
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/db/mongo/collection.d(115):        instantiated from here: serializeToBson!(User)
source/userman/controller.d(67):        instantiated from here: insert!(User)
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/db/mongo/collection.d(115): Error: template instance vibe.data.bson.serializeToBson!(User) error instantiating
Error: DMD compile run failed with exit code 1

Run 'dub help' for usage information.

Using dmd v2.065 on Linux 64bit, and the latest 'userman' from Github.

Any ideas how to fix this?
Thanks,
-gordon

Re: Userman still works?

On Sun, 23 Mar 2014 19:22:06 GMT, agordon wrote:

Hello,

Trying to create the simplest 'vide-d' application, two issue arise:

  1. When adding 'userman' to 'package.json' of the application and running 'dub build' - dub is stuck. Removing this dependency (or replacing it with another dub module) works fine.

'deb fetch userman' also works fine.

Which version of DUB is used here (last line of the dub --help output)? The latest git HEAD version may still have some issues, but 0.9.21 should work, at least it does in a number of projects that use "userman".

  1. Manually copying the files from 'userman-0.0.8' into my project's "source" and "views" directory, build fails with:
(...)
../../../../../home/agordon/.dub/packages/vibe-d-0.7.18/source/vibe/data/serialization.d(117): Error: need 'this' for 'getAttribute' of type 'nothrow @safe NameAttribute(NameAttribute default_value)'
(...)

Using dmd v2.065 on Linux 64bit, and the latest 'userman' from Github.

This is a an incompatibility of DMD 2.065 and vibe.d 0.7.18. You can perform a dub upgrade --prerelease to switch to the latest version 0.7.19-rc.2. 0.7.19 final is planned to be released in during the next days.