Skip to content

Claude/fix vscode smoke vscode import#442

Merged
hyperpolymath merged 4 commits into
mainfrom
claude/fix-vscode-smoke-vscode-import
May 28, 2026
Merged

Claude/fix vscode smoke vscode import#442
hyperpolymath merged 4 commits into
mainfrom
claude/fix-vscode-smoke-vscode-import

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

No description provided.

hyperpolymath and others added 4 commits May 26, 2026 09:41
…104)

The vscode-smoke job has been failing on every PR for weeks with:

  Activating extension 'hyperpolymath.affinescript' failed:
  WebAssembly.instantiate(): Import #1 "Vscode":
    module is not an object or function

Root cause: out/extension.cjs requires "@hyperpolymath/affine-vscode"
to get the WASM's Vscode and VscodeLanguageClient import modules. The
adapter is listed as an optionalDependencies entry in
editors/vscode/package.json, which lets the install step succeed even
though the package isn't on npm yet (gated on owner action in #104 —
npm org create + NPM_TOKEN + affine-vscode-v0.1.0 tag). But the
optional-dep path means the adapter never reaches node_modules in CI,
the require resolves to null, extraImports() returns {}, and WASM
instantiation fails on the missing Vscode import.

The adapter source already lives in-tree at packages/affine-vscode/
(487-line mod.js providing all WASM imports the extension uses).
Wire it as a file: dependency in the smoke step so the wasm
instantiates cleanly. --no-save keeps editors/vscode/package.json
clean (the optional-dep entry stays as steady-state once #104 lands;
this step is the pre-publish bridge).

Drop continue-on-error: true — the smoke is now reliable, so a real
regression should turn the job red and gate.

Verified locally that the require resolves to a function (the
makeVscodeBindings factory) when the package points at the in-tree
source.

Refs #139 (smoke harness), #104 (pending npm publish), gitbot-fleet#148

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@hyperpolymath hyperpolymath marked this pull request as ready for review May 28, 2026 20:47
@hyperpolymath hyperpolymath merged commit efc113e into main May 28, 2026
15 of 25 checks passed
@hyperpolymath hyperpolymath deleted the claude/fix-vscode-smoke-vscode-import branch May 28, 2026 20:47
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 82 issues detected

Severity Count
🔴 Critical 4
🟠 High 10
🟡 Medium 68

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Action perpolymath/standards/.github/workflows/governance-reusable.yml@main\n needs attention",
    "type": "unpinned_action",
    "file": "governance.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action ons/checkout@v6\n    needs attention",
    "type": "unpinned_action",
    "file": "publish-jsr.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action land/setup-deno@v2\n    needs attention",
    "type": "unpinned_action",
    "file": "publish-jsr.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in affine-vscode-publish.yml",
    "type": "unknown",
    "file": "affine-vscode-publish.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in casket-pages.yml",
    "type": "unknown",
    "file": "casket-pages.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in casket-pages.yml",
    "type": "unknown",
    "file": "casket-pages.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

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.

1 participant