Skip to content

Reusable function hints are missing in wasm #7893

@dmadisetti

Description

@dmadisetti

Describe the bug

marimo used to show little hints on why functions could not be made reusable. However, this has regressed.

Image

Also on refresh:

Image

by contrast in 0.18.3:

Image

Will you submit a PR?

  • Yes

Environment

0.19.4

Code to reproduce

import marimo

__generated_with = "0.18.3"
app = marimo.App()

with app.setup:
    task = lambda x: x


@app.cell
def _(mo):
    discount_summary = mo.sql(
        f"""
        SELECT 1;
        """
    )
    return (discount_summary,)


@app.cell
def _(discount_summary):
    @task
    def get_discount_summary(ctx):
        ctx["1"] = discount_summary
    return


@app.cell
def _():
    a = 1
    return (a,)


@app.function
def fn():
    print(1)


@app.cell
def _(a):
    def uses_a():
        print(a)
    return


@app.cell
def _():
    import marimo as mo
    return (mo,)


@app.cell
def _():
    return


if __name__ == "__main__":
    app.run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions