JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG] Base.:* = ... (and not Base.:+ or Base.:/) causes internal error #604

Closed VitaminBrad closed 3 years ago

VitaminBrad commented 3 years ago

Details

Steps to reproduce

  1. Base.:*(a::String,b::String) = string(a,"*",b) and not Base.:+(a::String,b::String) = string(a,"+",b) or Base.:/(a::String,b::String) = string(a,"/",b) causes the REPL still works perfectly fine, but running any line directly in the script causes the above to appear again.

With an active project:

  1. Base.:*(a::String,b::String) = string(a,"*",b) and not Base.:+(a::String,b::String) = string(a,"+",b) or Base.:/(a::String,b::String) = string(a,"/",b) causes once again the REPL still works perfectly fine, but running any line directly in the script causes the above to appear again.

Thanks!

VitaminBrad commented 3 years ago

I just noticed that Base.:*(a::String,b::String) is the only function actually already defined. That might be what's causing the problem.

pfitzseb commented 3 years ago

Yeah, by re-defining Base.:*(a::String,b::String) you end up breaking a bunch of things. Not much we can do about that, unfortunately.