Implement missing package probe for Julia errors and update version to 0.2.2 - #42
Conversation
There was a problem hiding this comment.
🟡 Not ready to approve
The version bump in package.json is not reflected in the committed package-lock.json, and the new RuntimeConsoleError type duplicates an existing error shape, increasing risk of type drift.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
Adds a Julia-runtime-side helper to recognize “missing package” console errors and generate a minimal probe snippet for the frontend to re-check installability via the existing missing-packages analyzer, and bumps the extension version accordingly.
Changes:
- Extend Positron runtime typings with
getMissingPackageProbeand aRuntimeConsoleErrorshape. - Implement
JuliaSession.getMissingPackageProbe()and addjuliaMissingPackageProbe()for parsing Julia missing-package errors. - Bump extension version to
0.2.2.
File summaries
| File | Description |
|---|---|
| typings/positron.d.ts | Adds API surface for getMissingPackageProbe and defines the error payload type passed to it. |
| src/session.ts | Wires the new probe API into JuliaSession using the Julia-specific probe builder. |
| src/missingPackages.ts | Introduces a regex-based probe builder for Julia missing-package ArgumentError messages. |
| package.json | Bumps extension version to 0.2.2. |
Review details
- Files reviewed: 3/4 changed files
- Comments generated: 1
- Review effort level: Low
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
| "name": "positron-julia", | ||
| "displayName": "Julia for Positron", | ||
| "description": "Julia language support for Positron IDE", | ||
| "version": "0.2.1", | ||
| "version": "0.2.2", | ||
| "publisher": "ntluong95", |
Introduce a new function to generate a probe snippet for missing Julia packages based on error messages. Bump the version to 0.2.2 to reflect these changes.