# Hide long types in error output for better readability

**URL:** <https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104>\
**Category:** Internals & Design\
**Tags:** question, proposal, error\
**Created:** [December 10, 2019, 4:10pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104 "2019-12-10T16:10:07Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Eben60](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eben60/32/13475_2.png) [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Post date:** [February 5, 2020, 2:52pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104/21 "2020-02-05T14:52:12Z")

</div>

Tamas, thank you for you reply.

Do I understand you correctly that you imply I should better abstain from further suggestions on this topic until I have better understanding of the Julia internals: just let the experts do the work and wait patiently for what comes?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 5, 2020, 3:01pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104/22 "2020-02-05T15:01:10Z")

</div>

No. Whatever gave you this idea?

If anything, you should consider contributing to the solution. This is primarily a user interface problem, which means that you don’t need to know about language internals to make improvements.

Even exploratory PRs that fix one minor thing can be a significant improvement. Eg color highlighting of matching `{}`s, or breaking lines in at meaningful chunks of type parameters, could be nice.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [February 5, 2020, 3:05pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104/23 "2020-02-05T15:05:01Z")

</div>

Is there a way to get the stacktrace as an object, I assume a vector of frames or something like that? That would be handy for prototyping solutions.

---

<div class="post-metadata">

**Author:** ![antoine-levitt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/antoine-levitt/32/4008_2.png) [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Post date:** [February 5, 2020, 3:08pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104/24 "2020-02-05T15:08:13Z")

</div>

The error handling code is in base julia. Look eg at [https://github.com/JuliaLang/julia/blob/master/base/stacktraces.jl](https://github.com/JuliaLang/julia/blob/master/base/stacktraces.jl), [https://github.com/JuliaLang/julia/blob/master/base/errorshow.jl](https://github.com/JuliaLang/julia/blob/master/base/errorshow.jl)

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 5, 2020, 3:11pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104/25 "2020-02-05T15:11:37Z")

</div>

also, there is some documentation at [Stack Traces · The Julia Language](https://docs.julialang.org/en/v1/manual/stacktraces/)

---

<div class="post-metadata">

**Author:** ![antoine-levitt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/antoine-levitt/32/4008_2.png) [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Post date:** [February 5, 2020, 3:22pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104/26 "2020-02-05T15:22:40Z")

</div>

I just want to mention that in general it looks as if fixing this kind of issues is technically very hard, and that any attempt to fix them will be met with institutional inertia. My experience is that is the opposite: it’s just that the people who routinely commit to julia are the people who are least bothered by this kind of issues because they are used to it and tend to be pretty busy anyway, and so this kind of things just doesn’t happen. I’m not familiar with julia’s codebase, nor am I an expert hacker, but still I was able to submit [Duplicate include(::String) for nicer stacktraces by antoine-levitt · Pull Request #33087 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/33087), which was very simple but still made my life better and got merged pretty quickly. Also a nice option for more disruptive changes is to make an external package (maybe that pirates base, eg by overloading Base.show\_backtrace) to encourage people to try it out and polish it, and then merge it to base julia.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 5, 2020, 3:39pm UTC](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104/27 "2020-02-05T15:39:48Z")

</div>

FWIW, Juno has been hiding types for inline evaluation for a fairly long time now and I haven’t heard any major complaints:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/a/baa49c9ca6e6b62aeb976f79cefabdc0cb7b636d.png)

[Previous page](https://discourse.julialang.org/t/hide-long-types-in-error-output-for-better-readability/32104.md?page=1)
