# PackageCompiler with VS Code

**URL:** https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288
**Category:** VS Code
**Created:** [July 8, 2021, 5:36pm UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288 "2021-07-08T17:36:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [July 8, 2021, 5:36pm UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288/1 "2021-07-08T17:36:17Z")

</div>

I’ve been making custo system images like so

```julia
using PackageCompiler
create_sysimage([:StatsPlots,:LinearAlgebra,:Calculus, :MCMCChains, :StatsPlots, :Distributions, :BenchmarkTools,
:Tullio, :LoopVectorization], sysimage_path="JuliaSysimage.dll", precompile_execution_file="to_compile.jl")

```

This works like a charm when starting Julia with the appropriate flags. However, I was under the impression that VScode would automatically find the sys image when it is saved as “JuliaSysimage.dll” in the folder with my project.toml. I lauch the REPL in VS Code from the desired folder. It automatically uses the correct environment. But It is very clear from TTFP that I’m not using my custom system image. Not sure what I’m doing wrong.

This is on Windows 10, Julia 1.6.1, PackageCompiler 1.2.6, and up to date VS code + Julia extension.

Thanks

---

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [July 8, 2021, 5:37pm UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288/2 "2021-07-08T17:37:06Z")

</div>

Also. Is there a way to specify the sysimage you want to use with VS code?

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [July 8, 2021, 5:53pm UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288/3 "2021-07-08T17:53:21Z")

</div>

There is a setting in the extension that enables this and that is off by default.

---

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [July 8, 2021, 5:54pm UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288/4 "2021-07-08T17:54:33Z")

</div>

Doh!  
Thanks

---

<div class="post-metadata">

### Author: ![ignace](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ignace/32/24275_2.png) [@ignace](https://discourse.julialang.org/u/ignace)
#### Post date: [January 25, 2023, 8:33am UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288/5 "2023-01-25T08:33:27Z")

</div>

Hello.  
If you have multiple sysimages, after turning the setting in the Julia extension on, how does VS Code ‘know’ where to look for the right/wanted .so file?

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [January 26, 2023, 12:24am UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288/6 "2023-01-26T00:24:41Z")

</div>

It looks for the sysimage file in the same folder where the `Manifest.toml` is.
