malloydata / malloy-vscode-extension

The Malloy Visual Studio Code extension facilitates building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards
http://www.malloydata.dev
MIT License
13 stars 12 forks source link

Experiments don't propagate correctly in notebooks when editing cells #490

Closed christopherswenson closed 1 month ago

christopherswenson commented 2 months ago

There seem to be some issues with propagation of model annotations between notebook cells; here's one case that I've been able to reproduce:

Steps to reproduce:

  1. Create a new Malloy notebook.
  2. Add a cell with ##! experimental.parameters
  3. Add another cell and use parameters somehow: source: foo(param::string) is some_connection.table('some_table')
  4. Edit the first cell: remove the "s" from "parameters" then add it back

Expected behavior:

Actual behavior:

Note: editing the second cell (e.g. just adding a space or editing a comment) causes the error to go away