# Julia extension doesn't load InteractiveUtils properly

**URL:** <https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448>\
**Category:** VS Code\
**Tags:** error-message\
**Created:** [July 25, 2024, 12:36am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448 "2024-07-25T00:36:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [July 25, 2024, 12:36am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448/1 "2024-07-25T00:36:53Z")

</div>

The instruction `varinfo()` does not work when calling it from code file in VSCode, I had to load manually `InteractiveUtils` and then execute the function, but the objects `global_err_handler` and `is_disconnected_exception` are created:

 ![Captura de pantalla 2024-07-24 182656](https://global.discourse-cdn.com/julialang/original/3X/5/8/583476e2ae21a0f6c72fb1cd09ea1f99dc74a388.png)

This does not happen if I try the same directly in the Julia REPL, without even having to load `InteractiveUtils`:

 ![Captura de pantalla 2024-07-24 182324](https://global.discourse-cdn.com/julialang/original/3X/d/2/d205d6cf2cf6dd75ab524a89988a68a44b06fb53.png)

**Any ideas of what is going on and how to fix it?**

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [July 25, 2024, 3:13am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448/2 "2024-07-25T03:13:08Z")

</div>

The REPL automatically loads `InteractiveUtils` for you. If you need it outside of that context, you should load it manually.

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [July 25, 2024, 3:49am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448/4 "2024-07-25T03:49:21Z")

</div>

I have been using Julia in VS Code for a while, and it was just until today that I had to load it manually.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 25, 2024, 7:42am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448/5 "2024-07-25T07:42:49Z")

</div>

You don’t have to unless something is broken, here’s what I just did in a fresh VSCodium session:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/1/d198041259248569e36d377b6dfcdf51617afda1.png)

---

<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:** [July 25, 2024, 9:35am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448/6 "2024-07-25T09:35:19Z")

</div>

This is a recent regression afaict.

> <https://github.com/julia-vscode/julia-vscode/issues/3648>
>
> This is on 1.102.2:
> \`\`\`
> \[Info: Precompiling VSCodeServer \[9f5989ce-84fe-42d4-…91ec-6a7a8d53ed0f\]
> julia\> varinfo()
> ERROR: UndefVarError: \`varinfo\` not defined
> Stacktrace:
> \[1\] top-level scope
> @ REPL\[1\]:1
> 
> julia\> InteractiveUtils
> InteractiveUtils
> 
> julia\> InteractiveUtils.varinfo()
> name size summary                                                    
> ––––––––––––––––––––––––– ––––––– –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
> Base Module                                                     
> Core Module                                                     
> Main Module                                                     
> global\_err\_handler 0 bytes global\_err\_handler (generic function with 1 method)        
> is\_disconnected\_exception 0 bytes is\_disconnected\_exception (generic function with 4 methods)
> \`\`\`

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 25, 2024, 10:15am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448/7 "2024-07-25T10:15:10Z")

</div>

Ha, indeed, ignore my comment - just restarted VSCodium and now I see the same issue, I was probably on an older version of the extension.
