nurpax / c64jasm

C64 6502 assembler in TypeScript
51 stars 14 forks source link

Report linenumber in plugin errors #85

Closed micheldebree closed 3 years ago

micheldebree commented 3 years ago

When I develop javascript in a plugin alongside my main asm, a javascript error is reported like this example:

twister.asm|40 col 1| error: Plugin load failed: twister.js.js: Unexpected token '!'

This refers to the asm file where the js is used. For debugging I would like to see the filename of the plugin, and the line,col where the error occured. Preferably in the same error format so I can click through to the source. My workaround is to write tests in javascript to find bugs.

nurpax commented 3 years ago

Agreed, I found this a bit of a pain too, and worked similarly by writing various test functions within the plugin js files.

Definitely will look into this.

nurpax commented 3 years ago

I just published c64jasm 0.9.2 that includes a fix for this issue.

micheldebree commented 3 years ago

Thanks, seems to work like a charm!