Skip to content

fix: enable Julia cell execution in Positron#989

Open
DevenVGokhale wants to merge 1 commit into
quarto-dev:mainfrom
DevenVGokhale:fix/julia-positron-cell-execution
Open

fix: enable Julia cell execution in Positron#989
DevenVGokhale wants to merge 1 commit into
quarto-dev:mainfrom
DevenVGokhale:fix/julia-positron-cell-execution

Conversation

@DevenVGokhale
Copy link
Copy Markdown

Summary

  • Adds case "julia" to the Positron hooks executor (hooks.ts) so Julia chunks in .qmd files route through Positron's runtime API (workbench.action.positronConsole.executeCode), the same way Python and R already do
  • Adds ntluong95.positron-julia as an accepted Julia extension ID in executors.ts, since julialang.language-julia is incompatible with Positron due to a VS Code engine version mismatch

Root cause

In hooks.ts, the cellExecutorForLanguage switch only handled "python", "csharp", and "r". Julia had no case, so the function returned undefined, causing:

Cannot read properties of undefined (reading 'executeInREPL')

The fix is a one-line addition of case "julia": to fall through into the same Positron runtime executor path used by R and Python.

Additionally, julialang.language-julia cannot be installed in Positron (VS Code engine version mismatch), so the community extension ntluong95.positron-julia is the only available Julia extension for Positron users. Adding it to requiredExtension allows the extension check to pass.

Test plan

  • Open a .qmd file with engine: julia in Positron with ntluong95.positron-julia installed
  • Confirm executing a {julia} code chunk sends code to the Positron Julia console
  • Confirm variables appear in the Variables pane and plots in the Plots pane
  • Confirm Python and R chunk execution is unaffected

Closes #988

🤖 Generated with Claude Code

Add `case "julia"` to the Positron hooks executor switch in hooks.ts so
Julia chunks in .qmd files route through Positron's runtime API
(workbench.action.positronConsole.executeCode) the same way Python and R do.

Also add `ntluong95.positron-julia` as an accepted Julia extension ID in
executors.ts, since `julialang.language-julia` is incompatible with
Positron due to a VS Code engine version mismatch.

Fixes quarto-dev#988

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@posit-snyk-bot
Copy link
Copy Markdown
Contributor

posit-snyk-bot commented May 30, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support 'Julia for Positron' extension (ntluong.julia-positron) for Julia cell execution in Positron IDE

2 participants