# Why is Capital D 'Display' variable within Plots package stopping me from pre-compiling?

**URL:** <https://discourse.julialang.org/t/why-is-capital-d-display-variable-within-plots-package-stopping-me-from-pre-compiling/110487>\
**Category:** General Usage\
**Tags:** question, plotting\
**Created:** [February 20, 2024, 11:10pm UTC](https://discourse.julialang.org/t/why-is-capital-d-display-variable-within-plots-package-stopping-me-from-pre-compiling/110487 "2024-02-20T23:10:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssmclark](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@ssmclark](https://discourse.julialang.org/u/ssmclark)\
**Post date:** [February 20, 2024, 11:10pm UTC](https://discourse.julialang.org/t/why-is-capital-d-display-variable-within-plots-package-stopping-me-from-pre-compiling/110487/1 "2024-02-20T23:10:02Z")

</div>

`struct PlotsDisplay <: Display end`

This is line 9 in types.jl within the Plots package. I’ve tried removing the package, using the garbage cleaner ‘gc’, rebuilding it, using different versions. Every time I try to compile it am then met with a top-level error during pre-compiling, stating that the function ‘Display’ is not defined. This problem has only occurred in the last few hours and I am currently stuck. Any insight into exactly how the Plots package operates, especially within types.jl, and how that could mess up my code would be much appreciated. Will update this thread as I keep trying. Have a nice day!

---

<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 20, 2024, 11:32pm UTC](https://discourse.julialang.org/t/why-is-capital-d-display-variable-within-plots-package-stopping-me-from-pre-compiling/110487/2 "2024-02-20T23:32:45Z")

</div>

What version of Plots and Julia are you on? That line should be [`struct PlotsDisplay <: AbstractDisplay end` and has been for the last two years](https://github.com/JuliaPlots/Plots.jl/blob/5fc847091d55d4957a1068728f73a94e77cde4f9/src/types.jl#L12).
