JuliaFEM / JuliaFEM.jl

The JuliaFEM software library is a framework that allows for the distributed processing of large Finite Element Models across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.
http://juliafem.github.io/JuliaFEM.jl/latest/
MIT License
249 stars 66 forks source link

ucfirst depreciated #218

Closed TeroFrondelius closed 4 years ago

TeroFrondelius commented 5 years ago
┌ Info: Number of nodes: 3724.
│   "Number of dofs/node: $(ndofs). " = "Number of dofs/node: 3. "
└   "Dimension of geometry: $(ndim)." = "Dimension of geometry: 3."
ERROR: LoadError: UndefVarError: ucfirst not defined
Stacktrace:
 [1] macro expansion at .\logging.jl:313 [inlined]
 [2] macro expansion at .\logging.jl:307 [inlined]
 [3] update_xdmf!(::Analysis{Modal}) at C:\Users\tfr004\.julia\packages\JuliaFEM\or1RT\src\solvers_modal.jl:226
 [4] macro expansion at .\logging.jl:310 [inlined]
 [5] macro expansion at C:\Users\tfr004\.julia\packages\TimerOutputs\sc5fl\src\TimerOutput.jl:184 [inlined]
 [6] macro expansion at .\logging.jl:307 [inlined]
 [7] run!(::Analysis{Modal}) at C:\Users\tfr004\.julia\packages\JuliaFEM\or1RT\src\solvers_modal.jl:98
 [8] macro expansion at .\logging.jl:308 [inlined]
 [9] (::Analysis{Modal})(::Float64) at C:\Users\tfr004\.julia\packages\JuliaFEM\or1RT\src\solvers.jl:678 (repeats 2 times)
 [10] top-level scope at none:0
 [11] include at .\boot.jl:317 [inlined]
 [12] include_relative(::Module, ::String) at .\loading.jl:1038
 [13] include(::Module, ::String) at .\sysimg.jl:29
 [14] include(::String) at .\client.jl:388
 [15] top-level scope at none:0
in expression starting at C:\Data\multiaxialfatiguetestspecimen\run_juliafem.jl:74

julia>

Here is the depreciation warning from 0.7:

julia> ucfirst("not working")
┌ Warning: `ucfirst` is deprecated, use `uppercasefirst` instead.
│   caller = top-level scope at none:0
└ @ Core none:0
"Not working"

julia>

And here is the problem line: https://github.com/JuliaFEM/JuliaFEM.jl/search?q=ucfirst&unscoped_q=ucfirst

TeroFrondelius commented 5 years ago

One thing to add: before fixing this issue one should add a test that raises this issue. I think we have a cap in testing somehow.

jounihuo commented 5 years ago

Faced the same issue with 'ucfirst', could 'titlecase' be used instead?

TeroFrondelius commented 5 years ago

@jounihuo possibly. I would just still use uppercasefirst as the deprecation warning proposess. Please follow these instructions: http://www.juliafem.org/contributing/, to open a pull request.

ahojukka5 commented 4 years ago

Closed by PR #240.