Climatemachine.jl: Docs seem to broken in the latest master

Created on 14 Apr 2020  路  5Comments  路  Source: CliMA/ClimateMachine.jl

Description

```ERROR: LoadError: LoadError: UndefVarError: SubgridScale not defined

Steps to reproduce

Steps to reproduce the behavior:
julia --project=docs -e 'using Pkg; Pkg.instantiate()' julia --project=docs docs/make.jl

Environment and error messages

  • Backtrace of error message
    (base) Sriharshas-MacBook-Pro:CLIMA sriharshakandala$ julia --project=docs -e 'using Pkg; Pkg.instantiate()' (base) Sriharshas-MacBook-Pro:CLIMA sriharshakandala$ julia --project=docs docs/make.jl ERROR: LoadError: LoadError: UndefVarError: SubgridScale not defined Stacktrace: [1] include at ./boot.jl:328 [inlined] [2] include_relative(::Module, ::String) at ./loading.jl:1105 [3] include at ./Base.jl:31 [inlined] [4] include(::String) at /Users/sriharshakandala/work/CLIMA/src/CLIMA.jl:1 [5] top-level scope at /Users/sriharshakandala/work/CLIMA/src/CLIMA.jl:25 [6] include at ./boot.jl:328 [inlined] [7] include_relative(::Module, ::String) at ./loading.jl:1105 [8] include(::Module, ::String) at ./Base.jl:31 [9] top-level scope at none:2 [10] eval at ./boot.jl:330 [inlined] [11] eval(::Expr) at ./client.jl:425 [12] top-level scope at ./none:3 in expression starting at /Users/sriharshakandala/work/CLIMA/src/Atmos/Parameterizations/SurfaceFluxes/SurfaceFluxes.jl:82 in expression starting at /Users/sriharshakandala/work/CLIMA/src/CLIMA.jl:25 ERROR: LoadError: Failed to precompile CLIMA [777c4786-024f-11e9-21a3-85d5d4106250] to /Users/sriharshakandala/.julia/compiled/v1.3/CLIMA/QNtDh_Fqh3h.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283 [3] _require(::Base.PkgId) at ./loading.jl:1024 [4] require(::Base.PkgId) at ./loading.jl:922 [5] require(::Module, ::Symbol) at ./loading.jl:917 [6] include at ./boot.jl:328 [inlined] [7] include_relative(::Module, ::String) at ./loading.jl:1105 [8] include(::Module, ::String) at ./Base.jl:31 [9] exec_options(::Base.JLOptions) at ./client.jl:287 [10] _start() at ./client.jl:460 in expression starting at /Users/sriharshakandala/work/CLIMA/docs/make.jl:3

  • Include output of julia> versioninfo()

julia> versioninfo() Julia Version 1.3.0 Commit 46ce4d7933 (2019-11-26 06:09 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.0.0) CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake) Environment: JULIA_MPI_PATH = /usr/local/opt/mpich JULIA_MPI_INCLUDE_PATH = /usr/local/opt/mpich JULIA_MPI_LIBRARY_PATH = /usr/local/opt/mpich

For CLIMA developers

  • [ ] The bug can be reproduced
  • [ ] Labels have been added and developers assigned
  • [ ] The bug can be fixed (if not, please explain why not in a comment below)
  • [ ] There is a timeline to fix the bug
  • [ ] The bug has been fixed (Please link the PR)
bug

All 5 comments

Julia documentation seems to be broken in the latest master.

With branch status git log

commit 0315926f18f6e365b72060013a1a2acea9bc1a38 (HEAD -> master, origin/master, origin/HEAD)
Merge: dde74c8a 3479437f
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Mon Apr 13 03:06:00 2020 +0000

and

julia --project=docs 
julia> include("docs/make.jl")
[ Info: Precompiling CLIMA [777c4786-024f-11e9-21a3-85d5d4106250]
ERROR: LoadError: LoadError: UndefVarError: SubgridScale not defined

I can replicate this - the issue appears to be in

/src/Atmos/Parameterizations/SurfaceFluxes/SurfaceFluxes.jl:82

@charleskawczynski Can you check this out please?

Fix:
julia --project=docs
add CLIMAParameters in the package manager.

Is this now fixed on master?

Also, @skandalaCLIMA can you please quote blocks of code with backticks (```) in future, see https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax#quoting-code

PR #962 fixes this issue. cc: @charleskawczynski

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trontrytel picture trontrytel  路  8Comments

charleskawczynski picture charleskawczynski  路  11Comments

bischtob picture bischtob  路  13Comments

smarras79 picture smarras79  路  5Comments

smarras79 picture smarras79  路  12Comments