fix: enable Julia cell execution in Positron#989
Open
DevenVGokhale wants to merge 1 commit into
Open
Conversation
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>
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
case "julia"to the Positron hooks executor (hooks.ts) so Julia chunks in.qmdfiles route through Positron's runtime API (workbench.action.positronConsole.executeCode), the same way Python and R already dontluong95.positron-juliaas an accepted Julia extension ID inexecutors.ts, sincejulialang.language-juliais incompatible with Positron due to a VS Code engine version mismatchRoot cause
In
hooks.ts, thecellExecutorForLanguageswitch only handled"python","csharp", and"r". Julia had no case, so the function returnedundefined, causing: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-juliacannot be installed in Positron (VS Code engine version mismatch), so the community extensionntluong95.positron-juliais the only available Julia extension for Positron users. Adding it torequiredExtensionallows the extension check to pass.Test plan
.qmdfile withengine: juliain Positron withntluong95.positron-juliainstalled{julia}code chunk sends code to the Positron Julia consoleCloses #988
🤖 Generated with Claude Code