Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citation does not work during interactive generation #89

Closed
oxinabox opened this issue Aug 23, 2019 · 0 comments · Fixed by #91
Closed

Citation does not work during interactive generation #89

oxinabox opened this issue Aug 23, 2019 · 0 comments · Fixed by #91

Comments

@oxinabox
Copy link
Collaborator

If I am interactively creating a package (or I think template)
and I say I do want a Citation file,
then i get this error

ERROR: MethodError: no method matching interactive(::Type{Citation}; readme_section=false)
Closest candidates are:
  interactive(::Type{Citation}) at /Users/oxinabox/.julia/packages/PkgTemplates/kTMYP/src/plugins/citation.jl:29 got unsupported keyword argument "readme_section"
...

Stacktrace:
 [1] kwerr(::NamedTuple{(:readme_section,),Tuple{Bool}}, ::Function, ::Type) at ./error.jl:125
 [2] #interactive at ./none:0 [inlined]
 [3] interactive(::Type{Citation}) at /Users/oxinabox/.julia/packages/PkgTemplates/kTMYP/src/plugins/citation.jl:29
 [4] iterate at ./generator.jl:47 [inlined]
 [5] collect_to!(::Array{PkgTemplates.GenericPlugin,1}, ::Base.Generator{Array{DataType,1},typeof(PkgTemplates.interactive)}, ::Int64, ::Int64) at ./array.jl:665
 [6] collect_to!(::Array{Coveralls,1}, ::Base.Generator{Array{DataType,1},typeof(PkgTemplates.interactive)}, ::Int64, ::Int64) at ./array.jl:673
 [7] collect_to_with_first!(::Array{Coveralls,1}, ::Coveralls, ::Base.Generator{Array{DataType,1},typeof(PkgTemplates.interactive)}, ::Int64) at ./array.jl:644
 [8] _collect(::Array{DataType,1}, ::Base.Generator{Array{DataType,1},typeof(PkgTemplates.interactive)}, ::Base.EltypeUnknown, ::Base.HasShape{1}) at ./array.jl:638
 [9] collect_similar(::Array{DataType,1}, ::Base.Generator{Array{DataType,1},typeof(PkgTemplates.interactive)}) at ./array.jl:562
 [10] map(::Function, ::Array{DataType,1}) at ./abstractarray.jl:2073
 [11] #interactive_template#8(::Bool, ::Bool, ::typeof(interactive_template)) at /Users/oxinabox/.julia/packages/PkgTemplates/kTMYP/src/template.jl:235
 [12] #interactive_template at ./none:0 [inlined]
 [13] #generate_interactive#21 at /Users/oxinabox/.julia/packages/PkgTemplates/kTMYP/src/generate.jl:122 [inlined]
 [14] generate_interactive(::String) at /Users/oxinabox/.julia/packages/PkgTemplates/kTMYP/src/generate.jl:122
 [15] top-level scope at REPL[6]:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant