switch to source editor on error
[?]
Sep 4, 2023, 7:33 AM
IZGZEWFGSMVXXFGMBITHUZUSFAJGWZNBE7LR7PCZ52P2JEO5HAUQCDependencies
- [2]
DMS3N5YDundo an ancient hack; be an idiomatic LÖVE app - [3]
CUFW4EJLreorganize app.lua and its comments - [4]
3QNOKBFMbeginnings of a test harness - [5]
DJSIRUMDa more radical attempt at ignoring nil y's - [6]
AGJXIDOFhardcode some assumptions about how this app uses love - [*]
AVTNUQYRbasic test-enabled framework
Change contents
- edit in app.lua at line 5
-- * recover from errors (by switching to the source editor) - replacement in app.lua at line 28
love.handlers[name](a,b,c,d,e,f)xpcall(function() love.handlers[name](a,b,c,d,e,f) end, handle_error) - replacement in app.lua at line 33
App.update(dt)xpcall(function() App.update(dt) end, handle_error) - replacement in app.lua at line 37
App.draw()xpcall(App.draw, handle_error) - edit in app.lua at line 44[8.2551][3.305]
function handle_error(err)Error_message = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2):gsub('\n[^\n]+$', '')print(Error_message)if Current_app == 'run' thenSettings.current_app = 'source'love.filesystem.write('config', json.encode(Settings))load_file_from_source_or_save_directory('main.lua')App.undo_initialize()App.run_tests_and_initialize()elselove.event.quit()endend