jainpranav1 / Nand2Tetris-HDL-Visualizer

Repository for Nand2Tetris HDL Visualizer extension
2 stars 0 forks source link

Extension suddenly stopped accepting NOT gates. #9

Open NatiG7 opened 1 month ago

NatiG7 commented 1 month ago

After using the xtension successfully yesterday, today was slightly different.

image

I encountered this, and narrowed the issue down to the Not gate. it seems that all NOT gates stopped working in all hdl files when visualizing.

Removing the NOT gate statement solves the error.

NatiG7 commented 1 month ago

For reference : SyntaxError: Expected [a-z,A-Z], comment, or whitespace but ")" found.

Cant indentify the specific character/line/col that the problem appears in.

Edit2*: Not16 works fine.

jainpranav1 commented 1 month ago

Hey! Thank you for the issue. Let me take a look to see what is the defect.

NatiG7 commented 1 month ago

at MessagePortMain.emit (node:events:517:28) at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2285) nand2tetris-hdl-visualizer.visualize {"value":"PranavJain.nand2tetris-hdl-visualizer","_lower":"pranavjain.nand2tetris-hdl-visualizer"}

at new peg$SyntaxError ----> node_modules\hdl-parser\src\index.js:14:20) at peg$buildStructuredError ----- > node_modules\hdl-parser\src\index.js:414:12) at Object.peg$parse [as parse] ----> node_modules\hdl-parser\src\index.js:1708:11) also found at extensions\pranavjain.nand2tetris-hdl-visualizer-0.0.5\extension.js:103:30

On another machine, same error but different char.