Truncated error messages

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Truncated error messages

OppaErich
Hi,
I've just started with this course at Coursera and had a rough start. A problem with the HardwareSimulator was truncates error messages because of a long path to the source file. Would it be possible to truncate the path instead of the error message if the space in not sufficient ?

error message

Thank you for this course and the tools,
Stephan Goldenberg
Reply | Threaded
Open this post in threaded view
|

Re: Truncated error messages

cadet1620
Administrator
You should be able to see the entire error message by hovering the mouse over the status bar. I find it more convenient to run the n2t tools from the command line.

To make this work, you need to add the nand2tetris/tools directory to your PATH environment variable.

[Linux example]

marka@Durnik:~$ find . -name "Hard*.sh" -print
./nand2tetris/tools/HardwareSimulator.sh
marka@Durnik:~$ export PATH=$PATH:~/nand2tetris/tools
marka@Durnik:~$ cd nand*/proj*/01
marka@Durnik:~/nand2tetris/projects/01$ tail Xor.hdl
 * out = not (a == b)
 */

CHIP Xor {
    IN a, b;
    OUT out;

    PARTS:
    Fubar
}
marka@Durnik:~/nand2tetris/projects/01$ HardwareSimulator.sh Xor.tst
Chip Fubar is not found in the working and built in folders: load Xor.hdl 
marka@Durnik:~/nand2tetris/projects/01$ 
If you want to add the direectory to your permanent PATH, you need to edit ~/.profile and re-login.

I'm not a Mac user, but googling "mac add directory to path" top result look useful.

--Mark

Reply | Threaded
Open this post in threaded view
|

Re: Truncated error messages

OppaErich
Hi,
I found out about the mouse hovering by accident. This helped a lot. I'll try running from CLI next time, I am a Linux guy.

Thanks,
Stephan