{"action":"created","issue":{"url":"https://api.github.com/repos/msoucy/dproto/issues/56","labels_url":"https://api.github.com/repos/msoucy/dproto/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/msoucy/dproto/issues/56/comments","events_url":"https://api.github.com/repos/msoucy/dproto/issues/56/events","html_url":"https://github.com/msoucy/dproto/issues/56","id":99921354,"number":56,"title":"Compiler errors on simple test message","user":{"login":"ColonelThirtyTwo","id":692896,"avatar_url":"https://avatars.githubusercontent.com/u/692896?v=3","gravatar_id":"","url":"https://api.github.com/users/ColonelThirtyTwo","html_url":"https://github.com/ColonelThirtyTwo","followers_url":"https://api.github.com/users/ColonelThirtyTwo/followers","following_url":"https://api.github.com/users/ColonelThirtyTwo/following{/other_user}","gists_url":"https://api.github.com/users/ColonelThirtyTwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ColonelThirtyTwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColonelThirtyTwo/subscriptions","organizations_url":"https://api.github.com/users/ColonelThirtyTwo/orgs","repos_url":"https://api.github.com/users/ColonelThirtyTwo/repos","events_url":"https://api.github.com/users/ColonelThirtyTwo/events{/privacy}","received_events_url":"https://api.github.com/users/ColonelThirtyTwo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-09T19:25:34Z","updated_at":"2015-08-10T05:08:55Z","closed_at":null,"body":"Full code:\r\n\r\n```d\r\n\r\nimport dproto;\r\n\r\nmixin ProtocolBufferFromString!q{\r\n\tmessage One {\r\n\t\trequired string a;\r\n\t\trequired int32 b;\r\n\t}\r\n};\r\n\r\nvoid main() {\r\n\tOne one  = {\r\n\t\ta: \"foo\",\r\n\t\tb: 123,\r\n\t};\r\n\tauto buf = one.serialize();\r\n\t\r\n\tauto oneCopy = One(buf);\r\n\tassert(oneCopy == one);\r\n}\r\n\r\n```\r\n\r\nOutput:\r\n\r\n```\r\n> dub build\r\nTarget dproto 1.3.1 is up to date. Use --force to rebuild.\r\nBuilding cer-test ~master configuration \"application\", build type debug.\r\nCompiling using dmd...\r\n../.dub/packages/dproto-1.3.1/import/dproto/parse.d(283): Error: value of 'this' is not known at compile time\r\n/usr/include/dmd/phobos/std/exception.d(524):        called from here: ex()\r\n../.dub/packages/dproto-1.3.1/import/dproto/parse.d(283):        called from here: enforce(cast(int)this.readChar() == 61, delegate Throwable() => this.unexpected(\"expected '='\"))\r\n../.dub/packages/dproto-1.3.1/import/dproto/parse.d(144):        called from here: this.readField(label, type)\r\n../.dub/packages/dproto-1.3.1/import/dproto/parse.d(188):        called from here: this.readDeclaration(ret)\r\n../.dub/packages/dproto-1.3.1/import/dproto/parse.d(105):        called from here: this.readMessage()\r\n../.dub/packages/dproto-1.3.1/import/dproto/parse.d(56):        called from here: this.readDeclaration(ret)\r\n../.dub/packages/dproto-1.3.1/import/dproto/parse.d(556):        called from here: ProtoSchemaParser(null, null, 0, 0, 0).this(name_, data_).readProtoPackage()\r\n../.dub/packages/dproto-1.3.1/import/dproto/dproto.d(38):        called from here: ParseProtoSchema(\"<none>\", \"\\x0a\\x09message One {\\x0a\\x09\\x09required string a;\\x0a\\x09\\x09required int32 b;\\x0a\\x09}\\x0a\")\r\n../.dub/packages/dproto-1.3.1/import/dproto/dproto.d(38): Error: argument to mixin must be a string, not (ParseProtoSchema(\"<none>\", \"\\x0a\\x09message One {\\x0a\\x09\\x09required string a;\\x0a\\x09\\x09required int32 b;\\x0a\\x09}\\x0a\").toD()) of type string\r\nsource/app.d(4): Error: mixin app.ProtocolBufferFromString!\"\\x0a\\x09message One {\\x0a\\x09\\x09required string a;\\x0a\\x09\\x09required int32 b;\\x0a\\x09}\\x0a\" error instantiating\r\nFAIL .dub/build/application-debug-linux.posix-x86_64-dmd_2067-060CA0ACE253FCF806DEFE03AEAAD9E7/ cer-test executable\r\nError executing command build:\r\ndmd failed with exit code 1.\r\n\r\n> dmd --version\r\nDMD64 D Compiler v2.067.1\r\nCopyright (c) 1999-2014 by Digital Mars written by Walter Bright\r\n```"},"comment":{"url":"https://api.github.com/repos/msoucy/dproto/issues/comments/129300992","html_url":"https://github.com/msoucy/dproto/issues/56#issuecomment-129300992","issue_url":"https://api.github.com/repos/msoucy/dproto/issues/56","id":129300992,"user":{"login":"msoucy","id":1126295,"avatar_url":"https://avatars.githubusercontent.com/u/1126295?v=3","gravatar_id":"","url":"https://api.github.com/users/msoucy","html_url":"https://github.com/msoucy","followers_url":"https://api.github.com/users/msoucy/followers","following_url":"https://api.github.com/users/msoucy/following{/other_user}","gists_url":"https://api.github.com/users/msoucy/gists{/gist_id}","starred_url":"https://api.github.com/users/msoucy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoucy/subscriptions","organizations_url":"https://api.github.com/users/msoucy/orgs","repos_url":"https://api.github.com/users/msoucy/repos","events_url":"https://api.github.com/users/msoucy/events{/privacy}","received_events_url":"https://api.github.com/users/msoucy/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T05:08:55Z","updated_at":"2015-08-10T05:08:55Z","body":"Huh. Yup, that's correct. It should be throwing a DIFFERENT error, to better show what you're missing."}}