Skip to content

Commit

Permalink
Fix imported modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Dec 14, 2023
1 parent 1d47765 commit 7e3cdc2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@codemirror/state": "^6.3.2",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.22.1",
"@dodona/trace-component": "1.1.0",
"@dodona/trace-component": "1.1.1",
"@lezer/common": "^1.1.0",
"comlink": "^4.4.1",
"comsync": "^0.0.9",
Expand Down
9 changes: 7 additions & 2 deletions src/TraceViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ export class TraceViewer extends Renderable<RenderOptions> {
});
BackendManager.subscribe(BackendEventType.Frame, e => {
const frame = JSON.parse(e.data);
this.frameStates.push({
const frameState = {
line: frame.line,
outputs: this.currentOutputs,
inputs: this.currentInputs
});
};
this.frameStates.push(frameState);
this.traceComponent?.addFrame(frame);
BackendManager.publish({
type: BackendEventType.FrameChange,
data: frameState
});
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/workers/python/build_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def check_tar(tarname, out_dir="."):


if __name__ == "__main__":
create_package("python_package", "python-runner friendly_traceback pylint<3.0.0 tomli typing-extensions json-tracer>=0.4.0", extra_deps="papyros")
create_package("python_package", "python-runner friendly_traceback pylint<3.0.0 tomli typing-extensions json-tracer>=0.4.1", extra_deps="papyros")
2 changes: 1 addition & 1 deletion src/workers/python/papyros/papyros.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
self,
*,
source_code="",
filename="/my_program.py",
filename="/__main__.py",
callback=None,
buffer_constructor=None,
limit=SYS_RECURSION_LIMIT
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,10 @@
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==

"@dodona/[email protected].0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@dodona/trace-component/-/trace-component-1.1.0.tgz#137eabd14907e50573fc8e60f1edc0c70c7e9a5a"
integrity sha512-WaJPJjZJWPwuRCQQzJYWKXbmanSlzjGo4oBDQoOT8ACRjJSp5ADrrs6BZUFKShRIYspVanZ6iyv0W/KLmU42QQ==
"@dodona/[email protected].1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@dodona/trace-component/-/trace-component-1.1.1.tgz#183c80e2d8e55832b78f40493c856c1f223af91c"
integrity sha512-R1mDPSp7gE6YEa4yOlLx1fUks9PTDumLqF8cctyEI6WFDqwX/e6B0RI/iJFaUNzkBTaptwCiYHvvXLdS0Hpakw==
dependencies:
"@jsplumb/browser-ui" "^6.2.10"
lit "^3.0.0"
Expand Down

0 comments on commit 7e3cdc2

Please sign in to comment.