@sylvaticus: Thanks for this clarification: I did not know there was a difference between using [package name]
and ]
followed by activate .
and add [package name]
… Always happy to learn!
@lmiq: Thanks for this intriguing suggestion: I’ll have to learn about temporary environment
…
@aramirezreyes: Indeed, I found that my file ~/.julia/config/startup.jl
already contained the instruction using Documenter
, most probably as a result of a prior project. I have commented out that line, and the project creation process moves ahead further, but now generates a different error message when I attempt to use the template:
julia> tmpl("JMTools")
[ Info: Running prehooks
[ Info: Running hooks
Activating new project at `~/Projects/MISR/MISR_Tools/JMTools/test`
Updating registry at `~/.julia/registries/General.toml`
Resolving package versions...
Updating `~/Projects/MISR/MISR_Tools/JMTools/test/Project.toml`
[8dfed614] + Test
Updating `~/Projects/MISR/MISR_Tools/JMTools/test/Manifest.toml`
[2a0f44e3] + Base64
[b77e0a4c] + InteractiveUtils
[56ddb016] + Logging
[d6f4376e] + Markdown
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[8dfed614] + Test
Activating project at `~/.julia/environments/v1.8`
ERROR: SystemError: opening file "~/Projects/MISR/MISR_RCCM/JMRCCM/docs/make.jl": No such file or directory
Stacktrace:
[1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
@ Base ./error.jl:176
[2] #systemerror#80
@ ./error.jl:175 [inlined]
[3] systemerror
@ ./error.jl:175 [inlined]
[4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
@ Base ./iostream.jl:293
[5] open
@ ./iostream.jl:275 [inlined]
[6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base ./io.jl:382
[7] open
@ ./io.jl:381 [inlined]
[8] read
@ ./io.jl:462 [inlined]
[9] render_file
@ ~/.julia/packages/PkgTemplates/RTfWa/src/plugin.jl:326 [inlined]
[10] hook(p::Documenter{GitHubActions}, t::Template, pkg_dir::String)
@ PkgTemplates ~/.julia/packages/PkgTemplates/RTfWa/src/plugins/documenter.jl:188
[11] (::PkgTemplates.var"#17#20"{typeof(PkgTemplates.hook), Template, String})(p::Documenter{GitHubActions})
@ PkgTemplates ~/.julia/packages/PkgTemplates/RTfWa/src/template.jl:132
[12] foreach(f::PkgTemplates.var"#17#20"{typeof(PkgTemplates.hook), Template, String}, itr::Vector{PkgTemplates.Plugin})
@ Base ./abstractarray.jl:2774
[13] (::PkgTemplates.var"#16#19"{Template, String})(h::typeof(PkgTemplates.hook))
@ PkgTemplates ~/.julia/packages/PkgTemplates/RTfWa/src/template.jl:131
[14] (::Base.var"#57#58"{PkgTemplates.var"#16#19"{Template, String}})(#unused#::Nothing, x::Function)
@ Base ./tuple.jl:555
[15] BottomRF
@ ./reduce.jl:81 [inlined]
[16] afoldl
@ ./operators.jl:549 [inlined]
[17] _foldl_impl
@ ./tuple.jl:277 [inlined]
[18] foldl_impl
@ ./reduce.jl:48 [inlined]
[19] mapfoldl_impl
@ ./reduce.jl:44 [inlined]
[20] #mapfoldl#259
@ ./reduce.jl:170 [inlined]
[21] #foldl#260
@ ./reduce.jl:193 [inlined]
[22] foreach
@ ./tuple.jl:555 [inlined]
[23] (::Template)(pkg::String)
@ PkgTemplates ~/.julia/packages/PkgTemplates/RTfWa/src/template.jl:129
[24] top-level scope
@ REPL[2]:1
It looks like Julia complains about the absence of the file ~/Projects/MISR/MISR_RCCM/JMRCCM/docs/make.jl
, which sounds strange to me because it is precisely the purpose of the PkgTemplates
package and the template file to create and setup the project as needed. Indeed, if I manually create the JMRCCM
directory, then the process does not proceed at all because that subdirectory already exists.
Thanks for any further suggestion about this issue.