-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
parserLanguage parsing and surface syntaxLanguage parsing and surface syntax
Milestone
Description
from our test suite, loading Unitful on nightly causes this:
ERROR: LoadError: ParseError:
# Error @ /home/runner/.julia/packages/Unitful/HCJFR/src/logarithm.jl:127:5
Base. *(::MixedUnits, ::MixedUnits) =
# └───────────────────────────────┘ ── extra tokens after end of expression
Stacktrace:
[1] top-level scope
@ ~/.julia/packages/Unitful/HCJFR/src/logarithm.jl:127
[2] include(mapexpr::Function, mod::Module, _path::String)
@ Base ./Base.jl:310
[3] top-level scope
@ ~/.julia/packages/Unitful/HCJFR/src/Unitful.jl:67
[4] include(mod::Module, _path::String)
@ Base ./Base.jl:309
[5] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2777
[6] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2536
[7] macro expansion
@ ./loading.jl:2464 [inlined]
[8] macro expansion
@ ./lock.jl:376 [inlined]
[9] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2428
[10] require
@ ./loading.jl:2404 [inlined]
[11] eval_import_path
@ ./module.jl:36 [inlined]
[12] _eval_import(imported::Bool, to::Module, from::Nothing, paths::Expr)
@ Base ./module.jl:111
[13] top-level scope
@ ~/.julia/packages/CoolProp/f9Wp9/src/CoolProp.jl:4
[14] include(mod::Module, _path::String)
@ Base ./Base.jl:309
[15] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2777
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2536
[17] macro expansion
@ ./loading.jl:2464 [inlined]
[18] macro expansion
@ ./lock.jl:376 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2428
[20] require
@ ./loading.jl:2404 [inlined]
[21] eval_import_path
@ ./module.jl:36 [inlined]
[22] eval_import_path_all(at::Module, path::Expr, keyword::String)
@ Base ./module.jl:60
[23] _eval_using(to::Module, path::Expr)
@ Base ./module.jl:137
[24] top-level scope
@ ~/work/Clapeyron.jl/Clapeyron.jl/test/runtests.jl:4
[25] include(mapexpr::Function, mod::Module, _path::String)
@ Base ./Base.jl:310
[26] top-level scope
@ none:6
[27] eval(m::Module, e::Any)
@ Core ./boot.jl:489
[28] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:310
[29] _start()
@ Base ./client.jl:577
in expression starting at /home/runner/.julia/packages/Unitful/HCJFR/src/logarithm.jl:127
in expression starting at /home/runner/.julia/packages/Unitful/HCJFR/src/Unitful.jl:1
in expression starting at /home/runner/.julia/packages/CoolProp/f9Wp9/src/CoolProp.jl:2
in expression starting at /home/runner/work/Clapeyron.jl/Clapeyron.jl/test/runtests.jl:4the error refers to this line:
on julia 1.12:
julia> struct OneUnit end
julia> Base. *(::OneUnit,::OneUnit) = OneUnit()
julia> _1 = OneUnit()
OneUnit()
julia> _1*_1
OneUnit()Metadata
Metadata
Assignees
Labels
parserLanguage parsing and surface syntaxLanguage parsing and surface syntax