Skip to content

CSE Machine: Corrupted layout table upon switiching to different code file #3796

@ThatLi

Description

@ThatLi

A major visual error happens when user switched between code files in their folder and running them on the CSE Machine. The error persists until you reload the page.

Code used:

  1. foo
function foo(n) {
    const msg = "frame " + stringify(n);
}

for (let i = 0; i < 3; i = i + 1) {
    foo(i);
}
  1. add_stream
function add_streams(s1, s2) {
    return pair(head(s1) + head(s2), 
           () => add_streams(stream_tail(s1), stream_tail(s2)));
}
const strm = pair(1, () => pair(2, () => add_streams(strm, strm)));
eval_stream(strm, 10);

Here is what happened when I run the add_stream program first, then switched to foo:

Image

Intended foo layout

Image

Corrupted foo layout

And vice versa:

Image

Corrupted add_stream layout

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingimportantFixing this is important, but not mission-critical

Type

No fields configured for Bug.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions