Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Global memory is not persisted across cells in notebook #232

Open
Mogball opened this issue May 22, 2023 · 1 comment
Open

[BUG] Global memory is not persisted across cells in notebook #232

Mogball opened this issue May 22, 2023 · 1 comment
Labels
bug Something isn't working Initiative: REPL/Jupyter mojo Issues that are related to mojo mojo-repo Tag all issues with this label

Comments

@Mogball
Copy link

Mogball commented May 22, 2023

Consider two separate cells:

var x: StringLiteral = "abcd"
print(x)

An empty string is printed, because string literals contain pointers to global memory, which are probably not getting persisted between cells as appropriate.

I'm not certain what the solution is: whether all global memory needs to be persisted or this is simply considered unsupported behaviour.

@Mogball Mogball added bug Something isn't working notebook Tag for issues related to Jupyter Notebooks or enviornment labels May 22, 2023
@ematejska ematejska added mojo Issues that are related to mojo mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. labels Sep 7, 2023
@walter-erquinigo
Copy link
Contributor

Proper global memory handling should fix #638

@linear linear bot removed notebook Tag for issues related to Jupyter Notebooks or enviornment mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. labels Apr 29, 2024
@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Initiative: REPL/Jupyter mojo Issues that are related to mojo mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

3 participants