Skip to content

fix(pampa): gate ModuleCompileError::find_in behind lua-filter - #862

Merged
cscheid merged 1 commit into
mainfrom
bugfix/pampa-find-in-lua-gate
Oct 17, 2026
Merged

cscheid merged 1 commit into
mainfrom
bugfix/pampa-find-in-lua-gate

Conversation

@cscheid

@cscheid cscheid commented Oct 17, 2026

Copy link
Copy Markdown
Member

The v0.34.0 Release run (38991132558) failed in web-payloads → Build wasm-qmd-parser:

error[E0433]: cannot find module or crate `mlua_error` in this scope
  --> crates/pampa/src/dialect.rs:93:26

ModuleCompileError::find_in (added in 73588f3, bd-76ogq4ew) calls the #[cfg(feature = "lua-filter")] mlua_error module from an ungated impl, so pampa doesn't compile with default-features = false — which is how wasm-qmd-parser depends on it. Regular CI doesn't exercise that build; only the release/nightly pipeline does, and last night's nightly predates the commit.

Fix: gate the impl with the same feature. The only caller (quarto-core lmd_execute.rs) uses pampa's default features.

Verified: cargo check -p pampa --no-default-features fails before / passes after; cargo check -p pampa -p quarto-core clean.

🤖 Generated with Claude Code

find_in refers to the cfg(feature = "lua-filter") mlua_error module, but
the impl block was ungated, so pampa failed to compile with
default-features = false. That is how wasm-qmd-parser depends on it, which
broke the release pipeline's web-payloads job for v0.34.0 (run 38991132558).
The only caller (quarto-core's lmd_execute) builds pampa with defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@posit-snyk-bot

posit-snyk-bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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.

@cscheid
cscheid merged commit 8c1eed4 into main Oct 17, 2026
23 of 24 checks passed
@cscheid
cscheid deleted the bugfix/pampa-find-in-lua-gate branch October 17, 2026 14:57
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.

2 participants