-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncated error, with message SYSTEM: show(lasterr) caused an error
#8651
Comments
This seems to have been due to a |
I have tried various commits on the |
Thanks. I have a new branch |
Just attempted reproducing this locally (OS X v10.10). On the > julia -v
julia version 0.4.0-dev+2957
> julia -E 'Pkg.checkout("ValidatedNumerics", "truncated_error_message"); using ValidatedNumerics; a = @interval(0.0); z = zero(a); z == 0.0'
INFO: Checking out ValidatedNumerics truncated_error_message...
INFO: Pulling ValidatedNumerics latest truncated_error_message...
INFO: No packages to install, update or remove
ERROR: StackOverflowError: Bisecting back through the commits between > julia -E "using ValidatedNumerics; a = @interval(0.0); z = zero(a); z == 0.0"
ERROR: no promotion exists for ValidatedNumerics.Interval{Base.MPFR.BigFloat} and Float64
in promote_to_super at promotion.jl:154
in == at promotion.jl:170
in process_options at ./client.jl:248
in _start at ./client.jl:403 which, if I understand correctly, is the desired error message. I'm not yet familiar enough with the type promotion system to say if the stack overflow is a bug in Julia or ValidatedNumerics, but the original issue seems to be resolved. |
This just happened to me on the latest commit: _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+2993 (2015-01-30 01:32 UTC)
_/ |\__'_|_|_|\__'_| | Commit 2d23b6f* (0 days old master)
|__/ | x86_64-apple-darwin14.1.0
julia> readline("comments/before_after_data_windows.csv")
ERROR: MethodError: `readline` has no method matching readline(::ASCIIString)SYSTEM: show(lasterr) caused an error |
Nice! I can reproduce the |
try
readline("comments/before_after_data_windows.csv")
catch e
showerror(STDOUT, e, catch_backtrace())
end
So this is a bug in the code to show "closest" method matches when you get a The full backtrace isn't shown by default, because that could trigger a recursive error dumping. |
Fix `show_method_candidates` so it do not fail for methods with zero args.
@dpsanders is this fixed now? Could we reduce it to a test case to make sure it stays that way? |
With my branch
parametrised_intervals
ofValidatedNumerics
(https://github.com/dpsanders/ValidatedNumerics.jl/tree/parametrised_intervals):
This happens on Julia v0.3 and v0.4.
The text was updated successfully, but these errors were encountered: