Skip to content

Track: componentize-py breaks on WIT docs with triple quotes (upstream #194) #328

@avrabe

Description

@avrabe

Upstream Issue

bytecodealliance/componentize-py#194

Problem

WIT documentation comments containing """ (triple quotes) break the generated Python bindings because they conflict with Python's docstring syntax.

Impact on rules_wasm_component

  • Affects python_wasm_component and python_wasm_binary rules
  • WIT files with triple quotes in docs will fail Python compilation

Affected Rules

  • //python:defs.bzl - python_wasm_component, python_wasm_binary

Workaround

Avoid using """ in WIT documentation comments. Use single quotes or escape.

Action Items

  • Document limitation in Python language guide
  • Monitor upstream fix
  • Update componentize-py when fix released

Labels

upstream-bug, python, documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions