AlchemicRaker / alchemy65

A vscode debugger extension for NES projects using cc65 and ca65.
MIT License
18 stars 4 forks source link

Running with Mesen2 on a Mac #10

Open DoctorMikeReddy opened 1 year ago

DoctorMikeReddy commented 1 year ago

I can get Alchemy65 to build NES roms from C files on a M1 MacBook, and to run Mesen2 (as Mesen-X doesn't do MacOS), but I get this error in the Lua script when trying to create a host for VSCode to hook into when running: Loading script... adapter.lua:3: attempt to call a nil value (global 'require')

for the following code: local socket = require("socket.core")

The ROM file runs fine, but VSCode eventually returns the following error as it cannot attach: Connection error: unable to connect to Alchemy 65 debug host presumably because the socket wasn't created

Any ideas?

DoctorMikeReddy commented 1 year ago

Also, possibly related (but not sure) is several "Property XXX is not allowed" errors in the launch.json file for the following:

       "romPath": "${workspaceFolder}/full_game.nes",
        "dbgPath": "${workspaceFolder}/full_game.dbg",
        "program": "/Users/mreddy01/Desktop/NESDev/Mesen2/Mesen.app/Contents/MacOS/Mesen",
        "sourcePath": "${workspaceFolder}/",
        "stopOnEntry": true,
        "resetOnEntry": true