# \[ANN\] Julia for VS Code v1.6

**URL:** <https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035>\
**Category:** VS Code\
**Created:** [March 17, 2022, 4:58pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035 "2022-03-17T16:58:04Z")\
**Posts on this page:** 10\
**Page:** 1

<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:** [March 17, 2022, 4:58pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/1 "2022-03-17T16:58:04Z")

</div>

Hey everyone,

we’ve just released version 1.6 of the [Julia extension for VS Code](https://www.julia-vscode.org/).

The highlight of this release is probably the new profile viewer, which should be fairly familiar to Juno users:

 ![profiler1](https://global.discourse-cdn.com/julialang/original/3X/a/8/a870226a5ad464ba813ff3d56bc327a82d2f4213.png)

Check out the [documentation](https://www.julia-vscode.org/docs/v1.6/userguide/profiler/) for more info.

Apart from that there are of course a bunch of QoL improvements and bugfixes; you can find the change log [here](https://github.com/julia-vscode/julia-vscode/blob/master/CHANGELOG.md).

As always, don’t hesitate to [open an issue](https://github.com/julia-vscode/julia-vscode/issues/new) if you run into problems, or reach out here on Discourse, Slack, or Zulip.

---

<div class="post-metadata">

**Author:** ![eliascarv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eliascarv/32/22152_2.png) [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Post date:** [March 17, 2022, 6:21pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/2 "2022-03-17T18:21:33Z")

</div>

The new profile viewer is amazing! 👏 👏 👏 👏

---

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [March 17, 2022, 10:56pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/3 "2022-03-17T22:56:24Z")

</div>

When trying to use `@profview` I get the following error:

```julia
ERROR: LoadError: KeyError: key 0x0000000000000002 not found
Stacktrace:
  [1] getindex
    @ ./dict.jl:498 [inlined]
  [2] VSCodeServer.ChromeProfileFormat.CPUProfile(data::Vector{UInt64}, period::Nothing; from_c::Bool)
    @ VSCodeServer.ChromeProfileFormat ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/ChromeProfileFormat/src/core.jl:116
  [3] CPUProfile
    @ ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/ChromeProfileFormat/src/core.jl:58 [inlined]
...

```

```julia
julia> versioninfo()
Julia Version 1.8.0-beta1
Commit 7b711ce699 (2022-02-23 15:09 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.2.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 50 on 8 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 50

```

EDIT: seems to be a 1.8 problem, it works on 1.7

---

<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:** [March 17, 2022, 11:14pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/4 "2022-03-17T23:14:04Z")

</div>

The fact that `ChromeProfileFormat` in indicated in the stacktrace means you’re not on the latest version of the extension.

---

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [March 17, 2022, 11:22pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/5 "2022-03-17T23:22:00Z")

</div>

![Screen Shot 2022-03-17 at 4.21.53 PM](https://global.discourse-cdn.com/julialang/original/3X/2/0/20e9e43c1c5063d187f00b5ca137d29f93bc4471.png)

---

<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:** [March 17, 2022, 11:44pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/6 "2022-03-17T23:44:59Z")

</div>

I’m pretty sure the extension got updated after you generated that error. If you look at the stack trace in your original error, you can see that it was generated from the 1.5.11 version of the extension.

---

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [March 17, 2022, 11:45pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/7 "2022-03-17T23:45:26Z")

</div>

Oh I see - thanks for clarifying that.

---

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [March 18, 2022, 2:40am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/8 "2022-03-18T02:40:00Z")

</div>

Amazing work! Really appreciate it!! 😄

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [March 18, 2022, 12:33pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/9 "2022-03-18T12:33:12Z")

</div>

Can the new profiler be used to export full profile information a la [GitHub - tkluck/StatProfilerHTML.jl: Show Julia profiling data in an explorable HTML page](https://github.com/tkluck/StatProfilerHTML.jl) ? I think ease of sharing profiles not as screenshots will be something majorly useful for helping people debug on here. As SVGs and such so they can just drop them into Discourse.

---

<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:** [March 18, 2022, 1:48pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-v1-6/78035/10 "2022-03-18T13:48:35Z")

</div>

In principle, [yes](https://htmlpreview.github.io/?https://gist.githubusercontent.com/pfitzseb/0043481b507330c8c7c56ae735820cec/raw/5dd1cb4358669fa595d4d6da69f64a8e8b8dcf35/profiler.html) (that’s an old version of the UI). In practice there’s no easy way to generate a HTML file from within VS Code currently, so  
[https://github.com/julia-vscode/julia-vscode/issues/2789](https://github.com/julia-vscode/julia-vscode/issues/2789)
