autowrap icon indicating copy to clipboard operation
autowrap copied to clipboard

Error in autowrap.reflection.Functions template

Open nikoskaragiannakis opened this issue 5 years ago • 2 comments

I continue my efforts to wrap drepl. https://github.com/kaleidicassociates/pydrepl @Laeeth was king enough to share https://github.com/kaleidicassociates/pydrepl, which I use now. Unfortunately, I still get errors:

Running pre-build commands...
../../../.dub/packages/autowrap-master/autowrap/reflection/source/autowrap/reflection.d(45,23): Error: template autowrap.reflection.Functions does not match any template declaration
/usr/include/dmd/phobos/std/meta.d(779,37): Error: template instance autowrap.reflection.F!(Module("replwrap", cast(Flag)true)) error instantiating
../../../.dub/packages/autowrap-master/autowrap/reflection/source/autowrap/reflection.d(39,26):        instantiated from here: staticMap!(Functions, Module("replwrap", cast(Flag)true))
../../../.dub/packages/autowrap-master/autowrap/python/source/autowrap/python/wrap.d(22,31):        instantiated from here: AllFunctions!(Module("replwrap", cast(Flag)true))
source/app.d-mixin-2(9,13):        instantiated from here: wrapAllFunctions!(Module("replwrap", cast(Flag)true))
dmd failed with exit code 1.

nikoskaragiannakis avatar Aug 11 '18 13:08 nikoskaragiannakis

Please post a reproducible failure. How did you try wrapping it? Using dub? If so, what's the dub.sdl/json?

atilaneves avatar Aug 13 '18 10:08 atilaneves

As I mentioned, I'm using pydrepl that @Laeeth sent me.

  • The dub.sdl is this https://github.com/kaleidicassociates/pydrepl/blob/master/dub.sdl
  • The app.d file https://github.com/kaleidicassociates/pydrepl/blob/master/source/app.d
  • https://github.com/kaleidicassociates/pydrepl/blob/master/source/replwrap.d

I just run dub build -c python36 and I get the error I posted above.

nikoskaragiannakis avatar Aug 13 '18 17:08 nikoskaragiannakis