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

Cryptic error in trying to set up documentation for Metalhead.jl #78

Open
theabhirath opened this issue Jun 24, 2022 · 0 comments
Open

Comments

@theabhirath
Copy link

Hey, I was trying to see if we could migrate the docs for Metalhead.jl to Pollen. I was following the instructions to set up documentation for a package with existing docs and I hit a little bit of a snafu:

julia> using Pollen, PkgTemplates

julia> function setuppollen(pkgdir)
           plugin = Pollen.PollenPlugin(branch_primary = "master")
           t = Template(plugins=[plugin], user="theabhirath")
           PkgTemplates.validate(plugin, t)
           PkgTemplates.prehook(plugin, t, pkgdir)
           PkgTemplates.hook(plugin, t, pkgdir)
           PkgTemplates.posthook(plugin, t, pkgdir)
       end
setuppollen (generic function with 1 method)

julia> setuppollen("../Metalhead.jl")
Already on 'master'
D       docs/Project.toml
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)

[master e7761fa] 'Setup Pollen.jl template files'
 1 file changed, 5 deletions(-)
 delete mode 100644 docs/Project.toml
Already on 'master'
Your branch is ahead of 'origin/master' by 3 commits.
  (use "git push" to publish your local commits)
  Activating new project at `~/Code/Metalhead.jl/docs`
    Updating git-repo `https://github.com/c42f/JuliaSyntax.jl`
    Updating git-repo `https://github.com/lorenzoh/ModuleInfo.jl`
    Updating git-repo `https://github.com/lorenzoh/Pollen.jl`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
    Updating `~/Code/Metalhead.jl/docs/Project.toml`
  [70703baa] + JuliaSyntax v0.1.0 `https://github.com/c42f/JuliaSyntax.jl#main`
  [3c3ff5e7] + ModuleInfo v0.1.0 `https://github.com/lorenzoh/ModuleInfo.jl#main`
  [c88717ad] + Pollen v0.1.0 `https://github.com/lorenzoh/Pollen.jl#main`
    Updating `~/Code/Metalhead.jl/docs/Manifest.toml`
  [a4c015fc] + ANSIColoredPrinters v0.0.1
⌃ [1520ce14] + AbstractTrees v0.3.4
  [79e6a3ab] + Adapt v3.3.3
  [ec485272] + ArnoldiMethod v0.2.0
  [00ebfdb7] + CSTParser v3.3.3
  [da1fd8a2] + CodeTracking v1.0.9
  [a80b9123] + CommonMark v0.8.6
⌅ [34da2185] + Compat v3.45.0
  [a8cc5b0e] + Crayons v4.1.1
  [9a962f9c] + DataAPI v1.10.0
  [a93c6f00] + DataFrames v1.3.4
  [864edb3b] + DataStructures v0.18.13
  [e2d170a0] + DataValueInterfaces v1.0.0
  [e2ba6199] + ExprTools v0.1.8
  [5789e2e9] + FileIO v1.14.0
  [48062228] + FilePathsBase v0.9.18
  [59287772] + Formatting v0.4.2
  [d7ba0133] + Git v1.2.1
  [86223c79] + Graphs v1.7.1
  [708ec375] + Gumbo v0.8.1
⌅ [cd3eb016] + HTTP v0.9.17
  [b5f81e59] + IOCapture v0.2.2
  [d25df0c9] + Inflate v0.1.2
  [83e8ac13] + IniFile v0.5.1
  [bd334432] + InlineTest v0.2.0
  [41ab1584] + InvertedIndices v1.1.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [033835bb] + JLD2 v0.4.22
  [692b3bcd] + JLLWrappers v1.4.1
  [682c06a0] + JSON v0.21.3
  [0f8b85d8] + JSON3 v1.9.5
  [98e50ef6] + JuliaFormatter v1.0.3
  [aa1ae85d] + JuliaInterpreter v0.9.13
  [70703baa] + JuliaSyntax v0.1.0 `https://github.com/c42f/JuliaSyntax.jl#main`
  [16fef848] + LiveServer v0.8.3
  [6f1432cf] + LoweredCodeUtils v2.2.2
  [6c6e2e6c] + MIMEs v0.1.4
  [1914dd2f] + MacroTools v0.5.9
  [739be429] + MbedTLS v1.0.3
  [626554b9] + MetaGraphs v0.7.1
  [e1d29d7a] + Missings v1.0.2
  [78c3b35d] + Mocking v0.7.3
  [3c3ff5e7] + ModuleInfo v0.1.0 `https://github.com/lorenzoh/ModuleInfo.jl#main`
  [ffc61752] + Mustache v1.0.13
  [2bd173c7] + NodeJS v1.3.0
  [bac558e1] + OrderedCollections v1.4.1
  [d96e819e] + Parameters v0.12.3
  [69de0a69] + Parsers v2.3.2
  [14b8a8f1] + PkgTemplates v0.7.28
  [c88717ad] + Pollen v0.1.0 `https://github.com/lorenzoh/Pollen.jl#main`
  [2dfb63ee] + PooledArrays v1.4.2
  [21216c6a] + Preferences v1.3.0
  [08abe8d2] + PrettyTables v1.3.1
  [189a3867] + Reexport v1.2.2
  [ae029012] + Requires v1.3.0
  [295af30f] + Revise v3.3.3
  [6c6a2e73] + Scratch v1.1.0
  [699a6c99] + SimpleTraits v0.9.4
  [a2af1166] + SortingAlgorithms v1.0.1
  [90137ffa] + StaticArrays v1.4.7
  [09ab397b] + StructArrays v0.6.10
  [856f2bd8] + StructTypes v1.8.1
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.7.0
  [4239201d] + ThreadSafeDicts v0.1.0
  [0796e94c] + Tokenize v0.5.24
  [3bb67fe8] + TranscodingStreams v0.9.6
  [5c2747f8] + URIs v1.3.0
  [3a884ed6] + UnPack v1.0.2
  [2e619515] + Expat_jll v2.4.8+0
  [78b55507] + Gettext_jll v0.21.0+0
  [f8c6e375] + Git_jll v2.34.1+0
  [528830af] + Gumbo_jll v0.10.2+0
  [94ce4f54] + Libiconv_jll v1.16.1+1
  [458c3c95] + OpenSSL_jll v1.1.16+0
  [02c8fc9c] + XML2_jll v2.9.14+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8bb1440f] + DelimitedFiles v1.0.0
  [8ba89e20] + Distributed
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [b27032c2] + LibCURL v0.6.3
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.8.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [fa267f1f] + TOML v1.0.0
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v0.5.2+0
  [deac9b47] + LibCURL_jll v7.83.1+1
  [29816b5a] + LibSSH2_jll v1.10.2+0
  [c8ffd9c3] + MbedTLS_jll v2.28.0+0
  [14a3606d] + MozillaCACerts_jll v2022.2.1
  [4536629a] + OpenBLAS_jll v0.3.20+0
  [efcefdf7] + PCRE2_jll v10.40.0+0
  [bea87d4a] + SuiteSparse_jll v5.10.1+0
  [83775a58] + Zlib_jll v1.2.12+3
  [8e850b90] + libblastrampoline_jll v5.1.1+0
  [8e850ede] + nghttp2_jll v1.47.0+0
  [3f19e933] + p7zip_jll v17.4.0+0
        Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ cannot be upgraded. To see why use `status --outdated -m`
   Resolving package versions...
    Updating `~/Code/Metalhead.jl/docs/Project.toml`
  [dbeba491] + Metalhead v0.7.3-DEV `..`
    Updating `~/Code/Metalhead.jl/docs/Manifest.toml`
  [621f4979] + AbstractFFTs v1.1.0
  [7d9f7c33] + Accessors v0.1.14
  [dce04be8] + ArgCheck v2.3.0
  [4fba245c] + ArrayInterface v6.0.18
  [30b0a656] + ArrayInterfaceCore v0.1.13
  [ab4f0b2a] + BFloat16s v0.2.0
  [fbb218c0] + BSON v0.3.5
  [198e06fe] + BangBang v0.3.36
  [9718e550] + Baselet v0.1.1
  [fa961155] + CEnum v0.4.2
  [052768ef] + CUDA v3.11.0
  [082447d4] + ChainRules v1.36.0
  [d360d2e6] + ChainRulesCore v1.15.0
  [9e997f8a] + ChangesOfVariables v0.1.3
  [bbf7d656] + CommonSubexpressions v0.3.0
  [a33af91c] + CompositionsBase v0.1.1
  [187b0558] + ConstructionBase v1.3.0
  [6add18c4] + ContextVariablesX v0.1.2
  [244e2a9f] + DefineSingletons v0.1.2
  [163ba53b] + DiffResults v1.0.3
  [b552c78f] + DiffRules v1.11.0
⌅ [ffbed154] + DocStringExtensions v0.8.6
  [cc61a311] + FLoops v0.2.0
  [b9860ae5] + FLoopsBase v0.1.1
  [1a297f60] + FillArrays v0.13.2
  [587475ba] + Flux v0.13.3
  [9c68100b] + FoldsThreads v0.1.1
  [f6369f11] + ForwardDiff v0.10.30
  [069b7b12] + FunctionWrappers v1.1.2
  [d9f16b24] + Functors v0.2.8
  [0c68f7d7] + GPUArrays v8.4.0
  [46192b85] + GPUArraysCore v0.1.0
  [61eb1bfa] + GPUCompiler v0.16.1
  [7869d1d1] + IRTools v0.4.6
  [615f187c] + IfElse v0.1.1
  [22cec73e] + InitialValues v0.3.1
  [3587e190] + InverseFunctions v0.1.7
  [92d709cd] + IrrationalConstants v0.1.1
  [b14d175d] + JuliaVariables v0.2.4
  [929cbde3] + LLVM v4.14.0
  [2ab3a3ac] + LogExpFunctions v0.3.15
  [d8e11817] + MLStyle v0.4.12
  [f1d291b0] + MLUtils v0.2.7
  [dbeba491] + Metalhead v0.7.3-DEV `..`
  [128add7d] + MicroCollections v0.1.2
  [872c559c] + NNlib v0.8.8
  [a00861dc] + NNlibCUDA v0.2.3
  [77ba4419] + NaNMath v1.0.0
  [71a1bf82] + NameResolution v0.1.5
  [3bd65402] + Optimisers v0.2.6
  [8162dcfd] + PrettyPrint v0.2.0
  [33c8b6b6] + ProgressLogging v0.1.4
  [74087812] + Random123 v1.5.0
  [e6cf234a] + RandomNumbers v1.5.3
  [c1ae055f] + RealDot v0.1.0
⌅ [efcf1570] + Setfield v0.8.2
  [605ecd9f] + ShowCases v0.1.0
  [276daf66] + SpecialFunctions v2.1.6
  [171d559e] + SplittablesBase v0.1.14
  [aedffcd0] + Static v0.7.3
  [82ae8749] + StatsAPI v1.4.0
  [2913bbd2] + StatsBase v0.33.17
  [a759f4b9] + TimerOutputs v0.5.20
  [28d57a85] + Transducers v0.4.73
  [e88e6eb3] + Zygote v0.6.40
  [700de1a5] + ZygoteRules v0.2.2
  [dad2f222] + LLVMExtra_jll v0.0.16+0
  [efe28fd5] + OpenSpecFun_jll v0.5.5+0
  [4af54fe1] + LazyArtifacts
  [4607b0f0] + SuiteSparse
  [05823500] + OpenLibm_jll v0.8.1+0
        Info Packages marked with ⌅ have new versions available but cannot be upgraded. To see why use `status --outdated -m`
  Activating project at `~/Code/Metalhead.jl`

[master 4324556] 'Pollen.jl: setup docs/ project'
 1 file changed, 5 insertions(+)
 create mode 100644 docs/Project.toml
Switched to branch 'pollen'


Switched to branch 'master'
Your branch is ahead of 'origin/master' by 4 commits.
  (use "git push" to publish your local commits)
ERROR: failed process: Process(setenv(`/Users/theabhirath/.julia/artifacts/89bfa9c5b6f794dc6e2c2ba80026dacf3d4eb6c5/bin/git commit -m 'Add actions to data branch'`,["XPC_FLAGS=0x0", "COMMAND_MODE=unix2003", "PATH=/Users/theabhirath/.julia/artifacts/41d2d4f312d93b56961767987cf48ea1f6d6fadc/bin:/Users/theabhirath/.julia/artifacts/01b0ba1c90b70e98762c7824dde45e704a0d1d18/bin:/Users/theabhirath/.julia/artifacts/ae8fed890e1fcf64f2d362ea295cd0c9f1e8036c/bin:/Users/theabhirath/.julia/artifacts/89bfa9c5b6f794dc6e2c2ba80026dacf3d4eb6c5/bin:/usr/bin:/bin:/usr/sbin:/sbin", "PWD=/Users/theabhirath/Code/Metalhead.jl", "XPC_SERVICE_NAME=application.com.microsoft.VSCode.95166156.95166162", "TERM_PROGRAM=vscode", "VSCODE_GIT_ASKPASS_NODE=/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper", "GIT_EXEC_PATH=/Users/theabhirath/.julia/artifacts/89bfa9c5b6f794dc6e2c2ba80026dacf3d4eb6c5/libexec/git-core", "SHELL=/bin/zsh", "VSCODE_GIT_ASKPASS_MAIN=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js"  …  "SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.sirfPUDBUB/Listeners", "GIT_TEMPLATE_DIR=/Users/theabhirath/.julia/artifacts/89bfa9c5b6f794dc6e2c2ba80026dacf3d4eb6c5/share/git-core/templates", "USER=theabhirath", "JULIA_EDITOR=code", "GIT_SSL_CAINFO=/Users/theabhirath/julia/usr/share/julia/cert.pem", "HOME=/Users/theabhirath", "TERM=xterm-256color", "TERM_PROGRAM_VERSION=1.68.1", "OPENBLAS_MAIN_FREE=1", "COLORTERM=truecolor"]), ProcessExited(1)) [1]

Stacktrace:
  [1] pipeline_error
    @ ./process.jl:565 [inlined]
  [2] read(cmd::Cmd)
    @ Base ./process.jl:449
  [3] read(cmd::Cmd, #unused#::Type{String})
    @ Base ./process.jl:458
  [4] readchomp
    @ ./io.jl:948 [inlined]
  [5] |>
    @ ./operators.jl:903 [inlined]
  [6] (::Pollen.var"#264#267"{String, Pollen.var"#rendertemplate#266"{Dict{String, Any}}})()
    @ Pollen ~/.julia/packages/Pollen/tRtTO/src/pkgtemplate.jl:101
  [7] (::Pollen.var"#274#276"{Vector{String}, Pollen.var"#264#267"{String, Pollen.var"#rendertemplate#266"{Dict{String, Any}}}, String, Pollen.var"#_println#275"{Bool}})()
    @ Pollen ~/.julia/packages/Pollen/tRtTO/src/pkgtemplate.jl:147
  [8] cd(f::Pollen.var"#274#276"{Vector{String}, Pollen.var"#264#267"{String, Pollen.var"#rendertemplate#266"{Dict{String, Any}}}, String, Pollen.var"#_println#275"{Bool}}, dir::String)
    @ Base.Filesystem ./file.jl:112
  [9] _withbranch(f::Pollen.var"#264#267"{String, Pollen.var"#rendertemplate#266"{Dict{String, Any}}}, dir::String, branch::String; options::Vector{String}, verbose::Bool)
    @ Pollen ~/.julia/packages/Pollen/tRtTO/src/pkgtemplate.jl:143
 [10] _withbranch
    @ ~/.julia/packages/Pollen/tRtTO/src/pkgtemplate.jl:137 [inlined]
 [11] posthook(p::Pollen.PollenPlugin, t::Template, pkg_dir::String)
    @ Pollen ~/.julia/packages/Pollen/tRtTO/src/pkgtemplate.jl:97
 [12] setuppollen(pkgdir::String)
    @ Main ./REPL[2]:7
 [13] top-level scope
    @ REPL[3]:1

Am I doing something wrong here?

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

No branches or pull requests

1 participant