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]: Err 14 when trying to run Output tests from for the last project provided files #488

Open
1 of 2 tasks
happytomatoe opened this issue Oct 16, 2024 · 2 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@happytomatoe
Copy link
Contributor

Tool

None

Interface

None

Contact Details

No response

What happened?

How to recreate:

  1. Run this
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/12/OutputTest/Main.jack

/** Test program for the OS Output class. */
class Main {

    /** Outputs the entire character set to the screen using all the
     *  methods of the Output class. */
    function void main() {
        var String s;
    
    	let s = String.new(1);
    	do s.appendChar(String.doubleQuote());
    
        do Output.moveCursor(0, 63);
        do Output.printChar(66);
        do Output.moveCursor(22, 0);
        do Output.printChar(67);
        do Output.moveCursor(22, 63);
        do Output.printChar(68);
        do Output.printChar(65);
        
        do Output.moveCursor(2, 0);
        do Output.printString("0123456789");
        do Output.println();
        
        do Output.printString("ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz");
        do Output.println();
        
        do Output.printString("!#$%&'()*+,-./:;<=>?@[\]^_`{|}~");
        do Output.printString(s);
        do Output.println();
        
        do Output.printInt(-12345);
        do Output.backSpace();
        do Output.printInt(6789);
        
        return;
    }
}

I get ERR14

Additional Comments

No response

Do you want to try to fix this bug?

  • I want to try to add this feature!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@happytomatoe happytomatoe added the bug Something isn't working label Oct 16, 2024
@happytomatoe
Copy link
Contributor Author

If I remember correctly there is also another bug - If you run all provided files you can flush it out
https://github.com/nand2tetris/projects/tree/main/12

@HofmT
Copy link

HofmT commented Dec 25, 2024

I also have problems to run Output tests however in my case it returns Runtime error: Maximum call stack size exceeded.
I tried to reproduce this bug by running the web-ide locally on my mac but somehow that works fine. I tested latest main branch with commit ID cd2963f4ad14c1f8ce99ae0f11d5a749cc28bc0c

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

2 participants