# Custom sysimage for julia extension for vscode

**URL:** <https://discourse.julialang.org/t/custom-sysimage-for-julia-extension-for-vscode/38002>\
**Category:** VS Code\
**Tags:** sysimage\
**Created:** [April 22, 2020, 2:09am UTC](https://discourse.julialang.org/t/custom-sysimage-for-julia-extension-for-vscode/38002 "2020-04-22T02:09:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianguenter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brianguenter/32/29519_2.png) [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Post date:** [April 22, 2020, 2:09am UTC](https://discourse.julialang.org/t/custom-sysimage-for-julia-extension-for-vscode/38002/1 "2020-04-22T02:09:35Z")

</div>

I’m trying to get the custom sysimage feature to work. In the v0.12.0 beta relase notes (this is the only thing that comes up when I search for custom sysimage on the vscode extension topic) davidanthoff says:

“Overall this makes for a pretty smooth workflow: you can easily, with one command, compile a custom sysimage for a julia environment, and then any REPLs you start with that active environment will automatically use that sysimage.”

I’ve added “julia.useCustomSysimage”: true, to my settings.json file but this by itself does not get the sysimage compiled. What is the one command you are supposed to execute to make this happen? I looked in the command palete menu for everything beginning with Julia: and didn’t see anything that looked relevant.

---

<div class="post-metadata">

**Author:** ![Nosferican](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nosferican/32/9275_2.png) [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Post date:** [April 22, 2020, 3:01am UTC](https://discourse.julialang.org/t/custom-sysimage-for-julia-extension-for-vscode/38002/2 "2020-04-22T03:01:27Z")

</div>

Paging @davidanthoff

---

<div class="post-metadata">

**Author:** ![phlavenk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phlavenk/32/1873_2.png) [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Post date:** [April 22, 2020, 6:09am UTC](https://discourse.julialang.org/t/custom-sysimage-for-julia-extension-for-vscode/38002/3 "2020-04-22T06:09:39Z")

</div>

You have to:

```julia
ctrl-shift-P (to get the command console) -> Tasks: run build task -> Julia: Build custom sysimage....

```

and wait until sysimage gets compiled in background.  
During next vscode start the sysimage should be loaded automatically.

---

<div class="post-metadata">

**Author:** ![brianguenter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brianguenter/32/29519_2.png) [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Post date:** [April 22, 2020, 5:30pm UTC](https://discourse.julialang.org/t/custom-sysimage-for-julia-extension-for-vscode/38002/4 "2020-04-22T17:30:40Z")

</div>

phlavenk’s suggestion worked beautifully. The only thing I would add is to make sure that Revise has been added to your root Julia environment. Probably should have this anyway but I didn’t and got an error message when I tried to load the sysimage.

It is so great not to wait over a minute for my packages to load every time I restart the REPL. Essentially instant now. Fabulous feature.

---

<div class="post-metadata">

**Author:** ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)\
**Post date:** [November 10, 2021, 5:09pm UTC](https://discourse.julialang.org/t/custom-sysimage-for-julia-extension-for-vscode/38002/5 "2021-11-10T17:09:01Z")

</div>

@phlavenk  
If I have my own generated and custom sysimage for a specific project only `sysimage_plots_precompile.dylib`, and I want to add it into the tasks.json. What is the command for that to be included?

 ![1](https://global.discourse-cdn.com/julialang/original/3X/8/e/8e939aae5cab066ca04c01c498be009ab003cc79.png)  
 ![2](https://global.discourse-cdn.com/julialang/original/3X/d/4/d4c9c730f756e94702a3cbae87b2762a2d83e6e6.png)  
 ![3](https://global.discourse-cdn.com/julialang/original/3X/7/1/7102f117908775f773d4eb93ea3c8c49ff6d09c3.png)
