Skip to content

Run index example automatically #68

Run index example automatically

Run index example automatically #68

Triggered via pull request January 1, 2025 16:59
@mfherbstmfherbst
synchronize #25
run_example
Status Failure
Total duration 11m 27s
Artifacts

CI.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/index.md:17-42 ```@example using AtomsBase using EmpiricalPotentials using GeometryOptimization using LinearAlgebra using Unitful using UnitfulAtomic # Setup system and calculator cell_vectors = ([10.0, 0.0, 0.0]u"Å", [0.0, 10.0, 0.0]u"Å", [0.0, 0.0, 10.0]u"Å") system = periodic_system([:H => [0, 0, 0.0]u"bohr", :H => [0, 0, 1.9]u"bohr"], cell_vectors) zH = 1 emins = Dict((zH, zH) => -1.17u"hartree", ) rmins = Dict((zH, zH) => 0.743u"Å", ) calc = LennardJones(emins, rmins, 5.0u"Å") # Run the geometry optimisation (using verbosity=1 to print the progress) results = minimize_energy!(system, calc; verbosity=1) # Inspect the results optimised_system = results.system optimised_bondlength = norm(position(optsystem[1]) - position(optsystem[2])) nothing # hide ``` exception = UndefVarError: `optsystem` not defined in `Main.__atexample__233` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ index.md:40 [2] eval @ ./boot.jl:430 [inlined] [3] #60 @ ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:803 [inlined] [4] cd(f::Documenter.var"#60#62"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#59#61"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:802 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging ./logging/logging.jl:522 [8] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger) @ Base.CoreLogging ./logging/logging.jl:632 [9] capture(f::Documenter.var"#59#61"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:801
Documentation
Process completed with exit code 1.
Julia 1.10 - ubuntu-latest - x64 - pull_request
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Julia nightly - ubuntu-latest - x64 - pull_request
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636