GordonSmith / vscode-ojs

VS Code extension for ObservableHQ notebooks
https://marketplace.visualstudio.com/items?itemName=GordonSmith.observable-js
MIT License
58 stars 5 forks source link

Repeated Code Execution Issue in OJS - "RuntimeError: x is defined more than once" #59

Closed jersonlatorre closed 1 year ago

jersonlatorre commented 1 year ago

Encountering problem with repeated code execution. Initially, running code block with "x = 10" works, but running it again leads to "RuntimeError: x is defined more than once" error.

GordonSmith commented 1 year ago

What file type are you using?

jersonlatorre commented 1 year ago

im using .ojsnb

GordonSmith commented 1 year ago

Seems to happen with a new file, once you save and reopen it works as expected (is that what your seeing)?

jersonlatorre commented 1 year ago

Yes, that's exactly what happens to me. Should I handle it that way? Or is there a way to fix it?