I’m following the Juliacon 2022 talk about new features in VSCode but several of them are not working for me. Trying to figure out what is configured incorrectly on my system.
Running Windows 11, VSCode 1.69.2.
julia> versioninfo() Julia Version 1.7.3 Commit 742b9abb4d (2022-05-06 12:58 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Xeon(R) Gold 6242 CPU @ 2.80GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-12.0.1 (ORCJIT, cascadelake) Environment: JULIA_EDITOR = code.cmd
(VSCodeFeatures) pkg> st Project VSCodeFeatures v0.1.0 Status `C:\Users\bguenter\Source\github\VSCodeFeatures\Project.toml` [a93c6f00] DataFrames v1.3.4 [c46f51b8] ProfileView v1.5.1 [ce6b1742] RDatasets v0.7.7
module VSCodeFeatures using DataFrames, RDatasets, ProfileView iris = dataset("datasets", "iris") export iris medium = rand(100_000, 3) export medium large = rand(1_000_000, 10) export large function password(numchars, use_special_chars=false) let chars for _ in 1:1000000 f(a...) = a special = use_special_chars ? f("!#%^&*()_+"...) : f(""...) chars = [('a':'z')..., ('A':'Z')..., ('1':'9')..., special...] end return string(rand(chars, numchars)...) end end export password @profview password(10) end #module
iris,medium,large in VSCode, as shown in the video, and then use the Julia object viewer to look at the array values. However, unlike the video demo the table viewer icon doesn’t show up in the menu when I hover over the arrays.
I enabled terminal shell integration but the julia prompt didn’t have decorations that can be clicked to get menus. Is there some other configuration setting that has to be turned on as well?
The profile viewer doesn’t display a pane in the VSCode window. Instead it pops up a standalone window. I didn’t see a configuration setting that controls where the viewer is displayed, and don’t think the video mentioned one.
This is the REPL output after evaluating the @profview statement in VSCode: