# CairoMakie with Julia 1.8 on VScode

**URL:** <https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289>\
**Category:** VS Code\
**Tags:** plotting\
**Created:** [August 24, 2022, 8:22pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289 "2022-08-24T20:22:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [August 24, 2022, 8:22pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/1 "2022-08-24T20:22:27Z")

</div>

I just installed Julia 1.8 and am trying to use it in VScode. When I try to import CairoMakie in the REPL in VScode, it generates the following series of errors. I wonder if anyone is experiencing the same issue and knows how to resolve it.

```julia-repl
julia> VERSION
v"1.8.0"

(@v1.8) pkg> st CairoMakie
Status `~/.julia/environments/v1.8/Project.toml`
  [13f3f980] CairoMakie v0.8.13

julia> using CairoMakie
[Info: Precompiling CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0]
WARNING: could not import StaticArraysCore.FieldArray into StructArrays
ERROR: LoadError: UndefVarError: FieldArray not defined
Stacktrace:
...
ERROR: LoadError: Failed to precompile StructArrays [09ab397b-f2b6-538f-b94a-2f83cf4a842a] to /Users/wo28768/.julia/compiled/v1.8/StructArrays/jl_wxC5j6.
Stacktrace:
...
ERROR: LoadError: Failed to precompile GeometryBasics [5c1252a2-5f33-56bf-86c9-59e7332b4326] to /Users/wo28768/.julia/compiled/v1.8/GeometryBasics/jl_wEHwRT.
Stacktrace:
...
ERROR: LoadError: Failed to precompile FreeTypeAbstraction [663a7486-cb36-511b-a19d-713bb74d65c9] to /Users/wo28768/.julia/compiled/v1.8/FreeTypeAbstraction/jl_kbOqJS.
Stacktrace:
...
ERROR: LoadError: Failed to precompile MathTeXEngine [0a4f8689-d25c-4efe-a92b-7142dfc1aa53] to /Users/wo28768/.julia/compiled/v1.8/MathTeXEngine/jl_nJyW8Z.
Stacktrace:
...
ERROR: LoadError: Failed to precompile Makie [ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a] to /Users/wo28768/.julia/compiled/v1.8/Makie/jl_SH9aGz.
Stacktrace:
...
ERROR: Failed to precompile CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0] to /Users/wo28768/.julia/compiled/v1.8/CairoMakie/jl_w8sV5y.
Stacktrace:
...

```

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [August 25, 2022, 2:00pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/2 "2022-08-25T14:00:31Z")

</div>

Here are the steps I followed to resolve this issue:

- Reinstall VScode.
- `pkg> add Makie#master`
- `pkg> add CairoMakie#master`
- `pkg> rm Makie`
- `pkg> rm CairoMakie`
- `pkg> add CairoMakie`

Not sure which steps were important, but after the above steps, the issues are gone.

Note that I had the errors only in the REPL inside VScode. In the REPL started in a standalone terminal app, `using CairoMakie` did not generate any errors. So I think probably reinstalling VScode was the crucial step, though I was using the up-to-date version already before reinstallation.

---

<div class="post-metadata">

**Author:** ![JosephPollacco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josephpollacco/32/51404_2.png) [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Post date:** [August 26, 2022, 5:33am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/3 "2022-08-26T05:33:00Z")

</div>

Hi thanks for your suggestions but I failed to compile CairoMakie with version 1.8 after following your steps. I got the following error message:

> Precompiling CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0]  
> ERROR: LoadError: Failed to precompile CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0] to C:\Users\pollaccoj.julia\compiled\v1.8\CairoMakie\jl\_82C2.tmp.

Many thanks for suggesting any fix

---

<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:** [August 26, 2022, 6:13am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/4 "2022-08-26T06:13:04Z")

</div>

What is the actual error why it fails the precompile? Should be below the part you posted.

---

<div class="post-metadata">

**Author:** ![JosephPollacco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josephpollacco/32/51404_2.png) [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Post date:** [August 26, 2022, 9:29am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/5 "2022-08-26T09:29:27Z")

</div>

Thanks for your answer. The installation of CairoMakie is fine, it is when you execute the code that it fails.

```julia
[Info: Precompiling CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0]
ERROR: LoadError: Failed to precompile CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0] to C:\Users\pollaccoj\.julia\compiled\v1.8\CairoMakie\jl_884B.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:1705
  [3] compilecache
    @ .\loading.jl:1649 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1200
  [6] macro expansion
    @ .\loading.jl:1180 [inlined]
  [7] macro expansion
    @ .\lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1144
  [9] include(fname::String)
    @ Base.MainInclude .\client.jl:476
 [10] top-level scope
    @ D:\Main\MODELS\SoilWater_ToolBox\src\HyPix\IncludeHypix.jl:48
in expression starting at D:\Main\MODELS\SoilWater_ToolBox\src\HyPix\OutputHypix\PlotHypix.jl:4
in expression starting at D:\Main\MODELS\SoilWater_ToolBox\src\HyPix\IncludeHypix.jl:48

```

Thanks

---

<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:** [August 26, 2022, 10:13am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/6 "2022-08-26T10:13:06Z")

</div>

Hm okay that’s not helpful… Can you delete the CairoMakie folder (or all folders) in .julia/compiled in case those files are corrupted?

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [August 27, 2022, 2:10pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/7 "2022-08-27T14:10:00Z")

</div>

I was able to reproduce the same issue on a different computer, and I was able to resolve the issue by following a simplified version of my previous solution, which is

1. Reinstall VScode.
2. `(@v1.8) pkg> rm CairoMakie`
3. `(@v1.8) pkg> add CairoMakie#master`
4. `julia> using CairoMakie`
5. `(@v1.8) pkg> rm CairoMakie`
6. `(@v1.8) pkg> add CairoMakie`

Step 4 does not generate any error, but we usually want to use a released version, so Steps 5 and 6. I think installing and using the master of `CairoMakie` effectively does the deletion of `CairoMakie` as @jules suggested above.

I am using macOS, though I don’t think this is relevant to the present problem.

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [August 31, 2022, 10:59am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/8 "2022-08-31T10:59:32Z")

</div>

I think something is wrong about the combination of `CairoMakie`, Julia 1.8, and VScode. I had eliminated the errors (reported in OP) during `using CairoMakie` in VScode terminal once, but suddenly the same errors started showing up again. I did

```julia-repl
(@v1.8) pkg> rm CairoMakie
(@v1.8) pkg> add CairoMakie
julia> using CairoMakie

```

but the errors didn’t go away. Then I tried to restart VScode between `rm CairoMakie` and `add CairoMakie`:

```julia-repl
(@v1.8) pkg> rm CairoMakie
# restart VScode here
(@v1.8) pkg> add CairoMakie
julia> using CairoMakie

```

and the errors disappeared.

Reinstalling `CairoMakie` takes quite a while, so having to repeat the above procedure occasionally will hurt my productivity significantly. I think the `Makie` developers need to take this issue seriously.

UPDATE. A similar error occurred again today, and I tried restarting REPL instead of restarting VScode. It didn’t solve the error. I had to restart VScode between `rm CairoMakie` and `add CairoMakie`.

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [August 31, 2022, 11:12am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/9 "2022-08-31T11:12:57Z")

</div>

Another similar issue, which I think is reproducible. I installed `CairoMakie` and `GLMakie`, and I plotted using `GLMakie` in the VScode terminal on macOS. This opened up a separate plot window. I didn’t know a `GLMakie` function that closes this window from REPL, I force-quitted the window using macOS’s Force Quit. This closed VScode REPL. When I restarted REPL, both `using CairoMakie` and `using GLMakie` generated errors similar to those reported in OP.

I had to `rm` and `add` both packages to resolve the issue. Not sure if I restarted VScode or not between `rm` and `add`.

---

<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:** [September 2, 2022, 5:19am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/10 "2022-09-02T05:19:34Z")

</div>

I can’t reproduce this issue on my Mac, also with VSCode. Not sure what could be going on there but reinstallation should not be necessary for most problems. If compilation cache files are corrupted for example, one can delete those manually. But even that seems kind of unlikely to me.

---

<div class="post-metadata">

**Author:** ![pranavkrishna](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pranavkrishna/32/39301_2.png) [@pranavkrishna](https://discourse.julialang.org/u/pranavkrishna)\
**Post date:** [September 2, 2022, 2:28pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/11 "2022-09-02T14:28:56Z")

</div>

I was having the same issue in VSCode with Plots.jl and Julia 1.7.3. I got the following error

```julia
julia> VERSION
v"1.7.3"

julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
WARNING: could not import StaticArraysCore.FieldArray into StructArrays
ERROR: LoadError: UndefVarError: FieldArray not defined
...
ERROR: LoadError: Failed to precompile StructArrays [09ab397b-f2b6-538f-b94a-2f83cf4a842a] to C:\Users\prana\.julia\compiled\v1.7\StructArrays\jl_1CA4.tmp.
...
ERROR: LoadError: Failed to precompile GeometryBasics [5c1252a2-5f33-56bf-86c9-59e7332b4326] to C:\Users\prana\.julia\compiled\v1.7\GeometryBasics\jl_15AF.tmp.
...
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\prana\.julia\compiled\v1.7\Plots\jl_13E9.tmp.

```

However, if I use plots in a Julia REPL outside of VSCode I don’t get this error and everything works fine.  
I have the following version of Plots.jl

```julia
  [91a5bcdd] Plots v1.31.7

```

I was able to resolve this using the process mentioned above by @wsshin

```julia
(@v1.7) pkg> rm Plots
# close and reopen VSCode
(@v1.7) pkg> add Plots
julia> using Plots

```

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [September 2, 2022, 4:03pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/12 "2022-09-02T16:03:04Z")

</div>

Yes I have seen this warning for a while using VS-code, the insiders extension, julia v1.8 and v1.7.1. It seems to work despite all the warnings, though.

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [September 17, 2022, 1:42am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/13 "2022-09-17T01:42:40Z")

</div>

I keep having this issue occasionally. Having to reinstall CairoMakie.jl and restart VScode every time this happened was quite painful, so I tried to find a simpler solution.

And the following is the simplest solution I have found so far (and may indicate the cause of the problem to someone who is more knowledgeable). First of all, I realized that when this error happened I was in the environment of the package I was developing at the moment. In other words, when I have this error during `using CairoMakie`, if I enter the package manager mode, the prompt is shown as

```julia-repl
(PKG_NAME) pkg>

```

where `PKG_NAME` is the name of the package I am developing. Now, to resolve the error, go into the home environment by

```julia-repl
(PKG_NAME) pkg> activate
  Activating project at `~/.julia/environments/v1.8`

(@v1.8) pkg>

```

Notice the prompt has changed to show the Julia version. Exit the package manager mode, and import CairoMakie again:

```julia-repl
julia> using CairoMakie

```

This time, the error does not happen. Note that you don’t have to reinstall CairoMakie or restart VScode.

So, the error seems related to the environment issue. Hope that this additional information helps someone more knowledgeable to come up with a solution.

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [September 19, 2022, 8:15pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/14 "2022-09-19T20:15:03Z")

</div>

OK, I’m giving up using CairoMakie.jl and GLMakie.jl in VScode. This problem happens at least once a day, and I cannot figure out how to eliminate it. Reinstalling these packages every time the problem happens is too time-consuming.

I don’t have any issue using these two packages in REPL in the standalone terminal program, so I believe the issue is a VScode issue. Hope the VScode developers figure out a solution.

---

<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:** [September 19, 2022, 8:55pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/15 "2022-09-19T20:55:00Z")

</div>

This is very strange, @pfitzseb have you seen anything like this before? I don’t think it has anything to do with Makie packages per se, at least I don’t understand how we would influence StaticArraysCore, and it seems some people observed the problem with Plots as well.

---

<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:** [September 20, 2022, 7:31am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/16 "2022-09-20T07:31:27Z")

</div>

I have not, no. I also don’t think the extension does anything sufficiently bad to cause an error like this. This does feel like some weird environment switching is causing mismatched package versions to be loaded though.

---

<div class="post-metadata">

**Author:** ![benz0li](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/benz0li/32/37040_2.png) [@benz0li](https://discourse.julialang.org/u/benz0li)\
**Post date:** [September 20, 2022, 8:48am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/17 "2022-09-20T08:48:09Z")

</div>

Now I am eager to know whether someone can reproduce this at [https://demo.jupyter.b-data.ch](https://demo.jupyter.b-data.ch) using Image `Julia (jupyterlab/julia/pubtools:latest) + code-server` or not (login with GitHub account).  
ℹ I was not able to reproduce it.

* * *

[`jupyterlab/julia/pubtools`](https://gitlab.b-data.ch/jupyterlab/julia/pubtools/container_registry):

- Debian 11 (bullseye)
- code-server v4.7.0
  - with Code v1.71.0

- Julia v1.8.1
- VS Code Julia extension v1.7.12

See also [GitHub - b-data/jupyterlab-julia-docker-stack: Multi-arch (linux/amd64, linux/arm64/v8) docker images. Please submit Pull Requests to the GitLab repository.](https://github.com/b-data/jupyterlab-julia-docker-stack).

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [September 28, 2022, 10:23am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/18 "2022-09-28T10:23:16Z")

</div>

I realized that this is not a VScode issue: it is an environment issue. CairoMakie fails to precompile in a specific package’s environment, whereas it doesn’t in the base environment. The reason I have been having the precompilation error in a REPL started in VScode seems that VScode starts a REPL by default in the environment of the package I am developing in VScode. On the other hand, the reason I haven’t had this error in a REPL started in a standalone terminal program seems that the terminal program starts a REPL in the home (base?) environment.

Here is a concrete scenario. I start a REPL fresh, either in a standalone terminal program or in VScode. I make sure that I am in the home environment by performing `pkg> activate` and checking the prompt of the package manager mode is `(@v1.8) pkg>`:

```julia-repl
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.8.0 (2022-08-17)
 _/ |\ __'_|_|_|\__'_| |
|__/ |

(@v1.8) pkg> activate
  Activating project at `~/.julia/environments/v1.8`

(@v1.8) pkg>

```

Now, I exit the package manager mode and import CairoMakie. I don’t get the precompilation error:

```julia-repl
julia> using CairoMakie
[Info: Precompiling CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0]

julia>

```

Next, I start a REPL fresh again, either in a standalone terminal program or in VScode, but I do so in the directory of a package I am developing. Then, make sure that I am in the package’s environment by performing `pkg> activate .` and checking the prompt of the package manager mode is `(MY_PKG_NAME) pkg>:`

```julia-repl
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.8.0 (2022-08-17)
 _/ |\ __'_|_|_|\__'_| |
|__/ |

(@v1.8) pkg> activate .
  Activating project at `<my package's directory>`

(MY_PKG_NAME) pkg>

```

I exit the package manager mode, and import CairoMakie. This time I get the precompilation error:

```julia-repl
julia> using CairoMakie
[Info: Precompiling CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0]
WARNING: could not import StaticArraysCore.FieldArray into StructArrays
ERROR: LoadError: UndefVarError: FieldArray not defined
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/StructArrays/w2GaP/src/staticarrays_support.jl:25
 [2] include(mod::Module, _path::String)
   @ Base ./Base.jl:419
 [3] include(x::String)
   @ StructArrays ~/.julia/packages/StructArrays/w2GaP/src/StructArrays.jl:1
 [4] top-level scope
   @ ~/.julia/packages/StructArrays/w2GaP/src/StructArrays.jl:16
 [5] include
   @ ./Base.jl:419 [inlined]
 [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base ./loading.jl:1554
 [7] top-level scope
   @ stdin:1
in expression starting at ~/.julia/packages/StructArrays/w2GaP/src/staticarrays_support.jl:25
in expression starting at ~/.julia/packages/StructArrays/w2GaP/src/StructArrays.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile StructArrays [09ab397b-f2b6-538f-b94a-2f83cf4a842a] to ~/.julia/compiled/v1.8/StructArrays/jl_2HyVPg.
Stacktrace:
...
ERROR: LoadError: Failed to precompile GeometryBasics [5c1252a2-5f33-56bf-86c9-59e7332b4326] to ~/.julia/compiled/v1.8/GeometryBasics/jl_SuDD7I.
Stacktrace:
...
ERROR: LoadError: Failed to precompile FreeTypeAbstraction [663a7486-cb36-511b-a19d-713bb74d65c9] to ~/.julia/compiled/v1.8/FreeTypeAbstraction/jl_nN8aUQ.
Stacktrace:
...
ERROR: LoadError: Failed to precompile MathTeXEngine [0a4f8689-d25c-4efe-a92b-7142dfc1aa53] to ~/.julia/compiled/v1.8/MathTeXEngine/jl_DhKl6k.
Stacktrace:
...
ERROR: LoadError: Failed to precompile Makie [ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a] to ~/.julia/compiled/v1.8/Makie/jl_bniyEV.
Stacktrace:
...
ERROR: Failed to precompile CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0] to ~/.julia/compiled/v1.8/CairoMakie/jl_Y4wmWC.
Stacktrace:
...

```

I am glad that I’ve found a method to reproduce the precompilation error reliably. Hope that this information is useful for other people to figure out a solution to the precompilation error.

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [September 29, 2022, 1:41pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/19 "2022-09-29T13:41:21Z")

</div>

As a workaround, I wonder if there is a way to make VScode start REPL in the home environment, so that I don’t have to do `pkg> activae` every time I start REPL in VScode.

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [September 29, 2022, 5:27pm UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289/20 "2022-09-29T17:27:56Z")

</div>

Thanks for diggin more! It would be nice to know why that happens though!

[Next page](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289.md?page=2)
