Skip to content

feat: handle invalid WIT-based WASM plugins with helpful error messages#10

Merged
topheman merged 1 commit into
masterfrom
feat/handle-invalid-wit-based-wasm
Jul 25, 2025
Merged

feat: handle invalid WIT-based WASM plugins with helpful error messages#10
topheman merged 1 commit into
masterfrom
feat/handle-invalid-wit-based-wasm

Conversation

@topheman
Copy link
Copy Markdown
Owner

  • Add error handling in WasmHost::load_plugin() to detect WIT interface mismatches
  • Provide user-friendly error messages with specific solutions:
    • Link to compatible plugin versions for current pluginlab version
    • Suggest updating to latest pluginlab version
  • Add comprehensive test case for invalid WIT plugin scenarios
  • Include test fixture (valid-plugin-with-invalid-wit.wasm) for testing
  • Update README with documentation about WIT compatibility errors and solutions

This improves the user experience when using incompatible plugins by providing clear guidance on how to resolve version mismatches.

- Add error handling in WasmHost::load_plugin() to detect WIT interface mismatches
- Provide user-friendly error messages with specific solutions:
  - Link to compatible plugin versions for current pluginlab version
  - Suggest updating to latest pluginlab version
- Add comprehensive test case for invalid WIT plugin scenarios
- Include test fixture (valid-plugin-with-invalid-wit.wasm) for testing
- Update README with documentation about WIT compatibility errors and solutions

This improves the user experience when using incompatible plugins by
providing clear guidance on how to resolve version mismatches.
@topheman topheman self-assigned this Jul 25, 2025
@topheman topheman merged commit dc18d1c into master Jul 25, 2025
8 checks passed
@topheman topheman deleted the feat/handle-invalid-wit-based-wasm branch July 25, 2025 18:26
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