# VS Code

**URL:** https://discourse.julialang.org/c/tools/vscode/42.md?page=7

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 8

---

## [VS code - Spurious "Possible method call error". How to locally disable?](https://discourse.julialang.org/t/vs-code-spurious-possible-method-call-error-how-to-locally-disable/66997)

<div class="topic-metadata">

**Author:** [@ylvain](https://discourse.julialang.org/u/ylvain)\
**Replies:** 4\
**Last updated:** [September 22, 2023, 9:17am UTC](https://discourse.julialang.org/t/vs-code-spurious-possible-method-call-error-how-to-locally-disable/66997 "2023-09-22T09:17:52Z")

</div>

Windows 10, Julia 1.6.1, VSCode 1.59.1, Code Ext 1.3.32 I understand that it is not so easy to detect invalid calls in Julia… But… Is there a some kind “pragma” to locally disable these warning ? Here the declaration: …

---

## [ERROR: UndefVarError: \`GPU\` not defined Stacktrace: \[1\] top-level scope](https://discourse.julialang.org/t/error-undefvarerror-gpu-not-defined-stacktrace-1-top-level-scope/104097)

<div class="topic-metadata">

**Author:** [@Abraham\_Lincoln](https://discourse.julialang.org/u/Abraham_Lincoln)\
**Replies:** 1\
**Last updated:** [September 21, 2023, 4:01pm UTC](https://discourse.julialang.org/t/error-undefvarerror-gpu-not-defined-stacktrace-1-top-level-scope/104097 "2023-09-21T16:01:44Z")

</div>

When i run this code appears this error:ERROR: UndefVarError: GPU not defined Stacktrace: \[1\] top-level scope CODE: using CUDA using Flux using Flux.Data: DataLoader using Flux: onehotbatch, onecold, crossentropy,…

---

## [Plots doesn't work after vscode 1.82.2 update](https://discourse.julialang.org/t/plots-doesnt-work-after-vscode-1-82-2-update/104056)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 3\
**Last updated:** [September 20, 2023, 12:41pm UTC](https://discourse.julialang.org/t/plots-doesnt-work-after-vscode-1-82-2-update/104056 "2023-09-20T12:41:19Z")

</div>

Issue Julia Plots doesn’t work suddenly. It seems to be vscode 1.82.2 update (I did 2 hours ago). Any help? Error message Error loading webview: Error: Could not register service worker: InvalidStateError: Failed …

---

## [Infiltrator based debugger](https://discourse.julialang.org/t/infiltrator-based-debugger/103817)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 2\
**Last updated:** [September 15, 2023, 9:21am UTC](https://discourse.julialang.org/t/infiltrator-based-debugger/103817 "2023-09-15T09:21:12Z")

</div>

See the following code, I have added @infiltrate after every statement in the function such that I can debug everything. But then I was thinking this might be an excellent UI debugger alternative: having @infiltrate happ…

---

## [Debugger does not step over quoted macro code in VS Code](https://discourse.julialang.org/t/debugger-does-not-step-over-quoted-macro-code-in-vs-code/103657)

<div class="topic-metadata">

**Author:** [@quert](https://discourse.julialang.org/u/quert)\
**Replies:** 3\
**Last updated:** [September 11, 2023, 9:02am UTC](https://discourse.julialang.org/t/debugger-does-not-step-over-quoted-macro-code-in-vs-code/103657 "2023-09-11T09:02:36Z")

</div>

I would like to know how other people use the debugger with code that uses the logging macros. For me it is almost unusable, since the debugger steps into every logging call, e.g. @debug, @info, .... Every time I have to…

---

## [VSCode -- export of Jupyter Notebook & LaTeX math](https://discourse.julialang.org/t/vscode-export-of-jupyter-notebook-latex-math/103568)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [September 6, 2023, 2:49pm UTC](https://discourse.julialang.org/t/vscode-export-of-jupyter-notebook-latex-math/103568 "2023-09-06T14:49:57Z")

</div>

I managed to install Python so that I can export HTML-files from VSCode/Jupyter Notebook to HTML – but export to PDF fails. I can get around this by opening the HTML file in MS Edge, and print to PDF from Edge – that see…

---

## [Plot(.) not shown with CTRL+ENTER but it does in the VSCode terminal](https://discourse.julialang.org/t/plot-not-shown-with-ctrl-enter-but-it-does-in-the-vscode-terminal/103396)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 10:06am UTC](https://discourse.julialang.org/t/plot-not-shown-with-ctrl-enter-but-it-does-in-the-vscode-terminal/103396 "2023-08-31T10:06:18Z")

</div>

Hello, from yesterday I can’t plot if I use the plot(.) command in the VSCode editor with line-by-line command. I have the hover text appearing on the right with Plot{Plots.GRBackend() n=1} as normal, but then the plot i…

---

## [Nice colour scheme / syntax highlighting: dimmed types](https://discourse.julialang.org/t/nice-colour-scheme-syntax-highlighting-dimmed-types/103385)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 0\
**Last updated:** [August 30, 2023, 8:10pm UTC](https://discourse.julialang.org/t/nice-colour-scheme-syntax-highlighting-dimmed-types/103385 "2023-08-30T20:10:19Z")

</div>

Not a question, just wanna share an upgrade to my colour scheme for Julia in VS Code, which others might find pleasing too. What it looks like: Dark mode: Light mode: These are the themes “One Dark Pro Darker” …

---

## [Cannot make plots (sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.)](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [August 30, 2023, 2:22pm UTC](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363 "2023-08-30T14:22:16Z")

</div>

I tried to plot something in VSCode: using Plots plot(x-\>x) However, no plot is displayed and I get a printed message: sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show …

---

## [Code suggestions are not supported for this language](https://discourse.julialang.org/t/code-suggestions-are-not-supported-for-this-language/103294)

<div class="topic-metadata">

**Author:** [@thoth291](https://discourse.julialang.org/u/thoth291)\
**Replies:** 7\
**Last updated:** [August 29, 2023, 7:53pm UTC](https://discourse.julialang.org/t/code-suggestions-are-not-supported-for-this-language/103294 "2023-08-29T19:53:18Z")

</div>

I use VScode for most of my work and now trying to adopt it for Julia dev activities. I have juliaup install on my PC and my default version is release (1.9.3 at this time). I open the folder with my Project.toml and h…

---

## [LinearAlgebra package not being parsed by LanguageServer.jl](https://discourse.julialang.org/t/linearalgebra-package-not-being-parsed-by-languageserver-jl/103317)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 3\
**Last updated:** [August 29, 2023, 11:12am UTC](https://discourse.julialang.org/t/linearalgebra-package-not-being-parsed-by-languageserver-jl/103317 "2023-08-29T11:12:34Z")

</div>

Hello, good evening. Im facing a problem with julia LanguageServer.jl. LanguageServer parses and autocomplete all packages, but LinearAlgebra dont. I dont know whats happening with LSP and why it is not autocompleting,…

---

## [Julia VS Code Extension References Old Version](https://discourse.julialang.org/t/julia-vs-code-extension-references-old-version/103315)

<div class="topic-metadata">

**Author:** [@tgf314](https://discourse.julialang.org/u/tgf314)\
**Replies:** 0\
**Last updated:** [August 28, 2023, 11:17pm UTC](https://discourse.julialang.org/t/julia-vs-code-extension-references-old-version/103315 "2023-08-28T23:17:08Z")

</div>

After updating the julia vs code extension to 1.50.2 I’m getting errors in the julia REPL. After some investigation it appears that the extension is running julia with a reference to the old version of the extension, wh…

---

## [Is there a way to Preview a CSV file in VSCode programatically?](https://discourse.julialang.org/t/is-there-a-way-to-preview-a-csv-file-in-vscode-programatically/103029)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 1:12pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-preview-a-csv-file-in-vscode-programatically/103029 "2023-08-21T13:12:42Z")

</div>

My program saves a CSV file that I open through VSCode by going to the Explorer pane, right-clicking on the file, and choosing Open Preview on the menu that pops up. Is there a way to do the same thing from inside my pr…

---

## [Julia: Start REPL](https://discourse.julialang.org/t/julia-start-repl/103025)

<div class="topic-metadata">

**Author:** [@gsinha](https://discourse.julialang.org/u/gsinha)\
**Replies:** 3\
**Last updated:** [August 21, 2023, 12:48pm UTC](https://discourse.julialang.org/t/julia-start-repl/103025 "2023-08-21T12:48:22Z")

</div>

Why does this happen after you’ve selected the python interpreter from a conda env? Julia\> C:/ProgramData/anaconda3/Scripts/activate ERROR: syntax: "/" is not a unary operator Stacktrace: \[1\] top-level scope @ non…

---

## [Is there a way to name the plots in the Plot Navigator in VSCode Extension?](https://discourse.julialang.org/t/is-there-a-way-to-name-the-plots-in-the-plot-navigator-in-vscode-extension/102931)

<div class="topic-metadata">

**Author:** [@shiokoala](https://discourse.julialang.org/u/shiokoala)\
**Replies:** 0\
**Last updated:** [August 18, 2023, 6:56am UTC](https://discourse.julialang.org/t/is-there-a-way-to-name-the-plots-in-the-plot-navigator-in-vscode-extension/102931 "2023-08-18T06:56:41Z")

</div>

Basically the title. Instead of “Plot #” can it pull from the plot title? It’s not a big deal if it’s not, just that I thought maybe I missed something.

---

## [Plotting pane in VSCdoe is empty](https://discourse.julialang.org/t/plotting-pane-in-vscdoe-is-empty/102737)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [August 12, 2023, 3:43pm UTC](https://discourse.julialang.org/t/plotting-pane-in-vscdoe-is-empty/102737 "2023-08-12T15:43:44Z")

</div>

Plotting in VSCode has suddenly stopped working, I do not really know why. If I try: using Plots plot(x-\>x) The plotting pane shows up (and shows the right figure number), but is empty: I have tried restarting Jul…

---

## [Error precompiling VSCodeServer in Julia 1.11-DEV (nightly)](https://discourse.julialang.org/t/error-precompiling-vscodeserver-in-julia-1-11-dev-nightly/102478)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 3\
**Last updated:** [August 6, 2023, 8:33pm UTC](https://discourse.julialang.org/t/error-precompiling-vscodeserver-in-julia-1-11-dev-nightly/102478 "2023-08-06T20:33:27Z")

</div>

One of my packages is throwing an error in CI on the Julia nightly build (1.11-DEV), so I wanted to test it out locally, in VS Code. However, after installing the nightly build and the necessary packages, when I try to r…

---

## [VS Code's built-in REPL does not seem to work with new contextual module repl under Julia 1.9](https://discourse.julialang.org/t/vs-codes-built-in-repl-does-not-seem-to-work-with-new-contextual-module-repl-under-julia-1-9/102256)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 1\
**Last updated:** [July 29, 2023, 10:44pm UTC](https://discourse.julialang.org/t/vs-codes-built-in-repl-does-not-seem-to-work-with-new-contextual-module-repl-under-julia-1-9/102256 "2023-07-29T22:44:05Z")

</div>

VS Code’s built-in REPL, launched by alt-J alt-O, allows to execute code blocks from editor with shortcuts, thus quite useful in code development. Recent Julia 1.9 includes the very welcoming new feature of switching to …

---

## [VSCode Deleting Julia Extension Settings](https://discourse.julialang.org/t/vscode-deleting-julia-extension-settings/102054)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 0\
**Last updated:** [July 25, 2023, 3:15am UTC](https://discourse.julialang.org/t/vscode-deleting-julia-extension-settings/102054 "2023-07-25T03:15:49Z")

</div>

I am trying to set up a new project and am having issues with VSCode deleting the entry for julia.environmentPath. If I don’t include julia.environmentPath in settings.json, I get a prompt each time I start VSCode telli…

---

## [Julia Language Server and VSCode Issue on HPC](https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [July 24, 2023, 6:03pm UTC](https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029 "2023-07-24T18:03:22Z")

</div>

Hello, I am having some issues with the language server. I’ll describe what I am trying to do first. I am getting my development environment set up on a new cluster. I want to be able to use the Julia Extension via VSC…

---

## [How to check if Julia is running in a vscode notebook?](https://discourse.julialang.org/t/how-to-check-if-julia-is-running-in-a-vscode-notebook/101863)

<div class="topic-metadata">

**Author:** [@BenjaminDoran](https://discourse.julialang.org/u/BenjaminDoran)\
**Replies:** 3\
**Last updated:** [July 21, 2023, 5:05pm UTC](https://discourse.julialang.org/t/how-to-check-if-julia-is-running-in-a-vscode-notebook/101863 "2023-07-21T17:05:32Z")

</div>

I’ve noticed a few issues using packages like ProgressMeter and Bio3Dview in the VS code notebook. ProgressMeter keeps appending the progress bar to new lines. It shows repeated output in VScode · Issue #231 · timholy/Pr…

---

## [Debugger doesn't stop at breakpoints when running tests (but does during normal execution)](https://discourse.julialang.org/t/debugger-doesnt-stop-at-breakpoints-when-running-tests-but-does-during-normal-execution/93202)

<div class="topic-metadata">

**Author:** [@eott-siz](https://discourse.julialang.org/u/eott-siz)\
**Replies:** 11\
**Last updated:** [July 19, 2023, 1:37pm UTC](https://discourse.julialang.org/t/debugger-doesnt-stop-at-breakpoints-when-running-tests-but-does-during-normal-execution/93202 "2023-07-19T13:37:53Z")

</div>

Julia 1.7.3 VS Code 1.74.3 Julia extension 1.38.2 I’m having a problem where, when I run tests with the debugger on the program I’m working on, the debugger doesn’t stop at any breakpoints I set. If I run the program …

---

## [Error only while using debugger in VSCode](https://discourse.julialang.org/t/error-only-while-using-debugger-in-vscode/101707)

<div class="topic-metadata">

**Author:** [@Sophia\_Wright](https://discourse.julialang.org/u/Sophia_Wright)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 11:28pm UTC](https://discourse.julialang.org/t/error-only-while-using-debugger-in-vscode/101707 "2023-07-18T23:28:06Z")

</div>

Hello - I’m unable to use the debugger in VSCode while using the KernelAbstractions.jl library. I have shared details along with a minimal reproducer here: essentially - I’m able to run the script fine in VS Code, b…

---

## [Make fixing tests easier](https://discourse.julialang.org/t/make-fixing-tests-easier/101610)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 6\
**Last updated:** [July 16, 2023, 7:11am UTC](https://discourse.julialang.org/t/make-fixing-tests-easier/101610 "2023-07-16T07:11:06Z")

</div>

Hi all :slight\_smile: I’m currently fixing lot’s of tests. It’s quite annoying xD To questions: is there any UI to polish and sort the stack traces is there a setting in the test PKG to enable debug mode. So that at …

---

## [Constant out of memory error of VSCode extension](https://discourse.julialang.org/t/constant-out-of-memory-error-of-vscode-extension/101323)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 8\
**Last updated:** [July 13, 2023, 11:49pm UTC](https://discourse.julialang.org/t/constant-out-of-memory-error-of-vscode-extension/101323 "2023-07-13T23:49:10Z")

</div>

So I use VSCode to login in to the supercomputer I’m working with, and I installed the Julia extension on it. It works well, but recently I noticed that the following error appears frequently: \[ Info: Loading GPUArraysC…

---

## [VS Code: Julia Language Server crash - Julia 1.9.1](https://discourse.julialang.org/t/vs-code-julia-language-server-crash-julia-1-9-1/101165)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 4\
**Last updated:** [July 12, 2023, 5:23am UTC](https://discourse.julialang.org/t/vs-code-julia-language-server-crash-julia-1-9-1/101165 "2023-07-12T05:23:50Z")

</div>

Hello, First time I’ve encountered this issue running Julia on WSL2. Julia Version 1.9.1 Commit 147bdf428cd (2023-06-07 08:27 UTC) Platform Info: OS: Linux (x86\_64-linux-gnu) CPU: 12 × Intel(R) Core(TM) i7-8750H CP…

---

## [Set table display font size](https://discourse.julialang.org/t/set-table-display-font-size/100870)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 3:47am UTC](https://discourse.julialang.org/t/set-table-display-font-size/100870 "2023-06-27T03:47:25Z")

</div>

How can I set the font size of the vscodedisplay table text?

---

## [Can't get Julia to work in VS Code](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828)

<div class="topic-metadata">

**Author:** [@oo92](https://discourse.julialang.org/u/oo92)\
**Replies:** 18\
**Last updated:** [June 23, 2023, 4:28pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828 "2023-06-23T16:28:02Z")

</div>

Hi. I have been endlessly trying to get Julia to work with my VS Code. I removed VS Code from my computer multiple times. I removed the Julia extension multiple times. I downgraded from 1.5.4 to 1.0.5. This is still wha…

---

## [Why does Visual Studio Code not correctly render interpolation arguments in Cmd objects?](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-interpolation-arguments-in-cmd-objects/100510)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [June 19, 2023, 5:47pm UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-interpolation-arguments-in-cmd-objects/100510 "2023-06-19T17:47:37Z")

</div>

Hello! Suppose I have: a = "Hello"; InterpolatedString = "$a" InterpolatedCmd = \`$a\` Then in VS Code it shows up as: Shouldn’t this work the same in theory, i.e. be highlighted? Kind regards

---

## [Why does Visual Studio Code not correctly render "isa" statement?](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [June 19, 2023, 4:13am UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511 "2023-06-19T04:13:37Z")

</div>

Hello! In VS Code suppose I have the following snippet: if isa(true,Bool) println("This is true") end if true isa Bool println("This is true too") end You even see how the code statement here actually renders…

[Previous page](https://discourse.julialang.org/c/tools/vscode/42.md?page=6)

[Next page](https://discourse.julialang.org/c/tools/vscode/42.md?page=8)
