Symbolics.jl icon indicating copy to clipboard operation
Symbolics.jl copied to clipboard

Clarify error message

Open ParadaCarleton opened this issue 2 years ago • 0 comments

julia> using Symbolics

julia> @variables n, X[1:n]
ERROR: TypeError: non-boolean (Num) used in boolean context
Stacktrace:
 [1-3] ⋮ internal
     @ Base
   [4] (::Colon)(a::Int64, b::Num)
     @ Base ./range.jl:3
Use `err` to retrieve the full stack trace.

I'm guessing the problem here is you can't have a vector of unknown size, but a newer user would probably have trouble figuring that out.

ParadaCarleton avatar Oct 23 '23 20:10 ParadaCarleton