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

Instance of FakeStdinStream did not understand #stream #680

Open
hernanmd opened this issue Aug 21, 2023 · 0 comments
Open

Instance of FakeStdinStream did not understand #stream #680

hernanmd opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hernanmd
Copy link
Collaborator

hernanmd commented Aug 21, 2023

Trying to simulate the VM both in Pharo 11 and Pharo 12 with this script:

| options stackInterpreterSimulator |

VMStackPages  initialize.
options := {
    #ObjectMemory -> #Spur64BitCoMemoryManager.
    #BytesPerWord -> 8
} asDictionary.

stackInterpreterSimulator := StackInterpreterSimulator newWithOptions: options.
stackInterpreterSimulator openOn: Smalltalk imagePath extraMemory: 100000.
stackInterpreterSimulator run.

Produces the following exception:

Debugger

A simple fix would be to answer ^ self in a new FakeStdinStream>>stream method.

@hernanmd hernanmd added the bug Something isn't working label Aug 21, 2023
@hernanmd hernanmd self-assigned this Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant