DocStringExtensions.jl icon indicating copy to clipboard operation
DocStringExtensions.jl copied to clipboard

MODULES key not found for `@template`

Open BeastyBlacksmith opened this issue 3 years ago • 1 comments

maybe I'm using it wrong, but

module Foo

@template MODULES = Foo
end

resultes in

ERROR: LoadError: KeyError: key :MODULES not found

BeastyBlacksmith avatar Jun 24 '21 07:06 BeastyBlacksmith

From what I recall it's meant to work in the following way: @template MODULES = "..." defines a template in the top module that can be used in any submodules by using @template MODULES = ParentModule. Using it to refer to itself can't work. That's what I vaguely remember it being meant to do anyway.

MichaelHatherly avatar Jun 24 '21 08:06 MichaelHatherly