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:
This does not happen if I try the same directly in the Julia REPL, without even having to load InteractiveUtils
:
Any ideas of what is going on and how to fix it?
mkitti
July 25, 2024, 3:13am
2
The REPL automatically loads InteractiveUtils
for you. If you need it outside of that context, you should load it manually.
I have been using Julia in VS Code for a while, and it was just until today that I had to load it manually.
nilshg
July 25, 2024, 7:42am
5
You donβt have to unless something is broken, hereβs what I just did in a fresh VSCodium session:
This is a recent regression afaict.
opened 09:37AM - 25 Jul 24 UTC
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)
```
2 Likes
nilshg
July 25, 2024, 10:15am
7
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.
1 Like