I can't reproduce this, but as best I can recall I did the following:
I created a new app called foo cloned from template-live
I made some changes to test another feature, created a simple app (on.draw, on.text_input, etc.)
I shut everything down.
I blew away the new app (and maybe cleared its save dir as well?)
I created a second new app called foo, cloned either from template-live or template-live-editor.
I started it up.
I started up the driver – and got a crash:
Error REPL:10: table index is nil
Traceback [love "callbacks.lua"]:228: in function 'handler' REPL:10: in function 'get_multiple_definitions_from_app' REPL:21: in function 'load_settings' main.lua:108: in function 'load_settings' main.lua:63: in function 'initialize' app.lua:77: in function <app.lua:13> [C]: in function 'xpcall' [C]: in function 'xpcall'
E5DWT4J3EOYPCJUFMHPYX4CLAI5LBF5B2H73M4MIFS2EN5HGISNQC
get_multiple_definitions_from_app = function(defs)
-- batch interface for speed
-- turn an array of string names into a table of string definitions corresponding to them
if #defs == 0 then return {} end
live.send_to_app('GET* '..table.concat(defs, ' '))
local response = wait_for_response()
local result = {}
for def in response:gmatch('(.-)\n==fw: definition boundary==\n') do
local name = live.get_cmd_from_buffer(def)
if name == nil then
print('failed to get cmd from buffer', def)
end
result[name] = def
end
return result
end
{"on_handle":547,"Failing_test_definition_background_color":925,"Definitions":503,"on_text":539,"new_definition":848,"A":831,"draw_test_failure_indicator":935,"tick_spec":998,"sx":955,"definition_background_color":1015,"Surface":422,"get_default_map":937,"on.draw":986,"on.key_release":720,"vx":545,"Viewport":604,"snapshot_canvas":913,"load_definition":854,"Save_viewport":865,"mouse_cursor":558,"copy_viewport":866,"Mouse_cursor":559,"on.mouse_release":836,"iscale":953,"set_mouse_cursor":562,"draw_ticks":997,"add_thick_line":400,"on.load_settings":940,"copy_shape":396,"Page":475,"Ticks_font":669,"initialize_manifest_navigator":773,"box_height":680,"compute_layout":385,"approximate":579,"Cursor_node":172,"fw_parent":1015,"update_editor_box":711,"fw_app":"driver","line_height":365,"on.initialize":948,"test_approximate_up":983,"on.mouse_press":916,"schema1_of_y":667,"Definition_background_color":849,"table_and_array_both_empty":689,"on.save_settings":742,"Menu_background_color":611,"draw_cursor":639,"y_of_schema1":364,"Zoomed_out":869,"Menu_command_color":613,"Animating":842,"Menu_highlight_color":614,"initialize_editor":678,"draw_menu_bar":861,"animate_next":914,"add_hotkey_to_menu":616,"survey_animation":1014,"Manifest_navigator":495,"draw_manifest_navigator":677,"approximate_up":985,"num_lines_for_manifest_navigator":676,"draw_run_time_error":808,"maybe_update_key_in_definitions":529,"reset_manifest_navigator":772,"on.code_submit":947,"on.text_input":855,"load_from_iterator":670,"sy":954,"get_definition_from_app":784,"on.code_change":924,"surface_bounds":814,"draw_load_time_error":929,"B":830,"manifest_navigator_up":628,"font":353,"manifest_navigator_down":635,"order_of_magnitude":573,"wait_for_response":781,"delete_definition":673,"Spawn_point":822,"move_candidate_to_front_of_manifest":632,"from_viewport":823,"keychord_press_on_manifest_navigator":765,"interpolate_viewport":843,"text_input_on_manifest_navigator":634,"get_multiple_definitions_from_app":1016,"Menu_border_color":612,"manifest_coord":636,"on.keychord_press":919,"manifest_index":637,"zoom_in":920,"manifest_navigator_candidates":638,"scale":712,"load_manifest":694,"add_def_to_menu":640,"on":1,"Test_definition_background_color":858,"Manifest":769,"zoom_out":908,"animate_next_frame":915,"Num_animation_frames":840,"undo_zoom_out":921,"get_manifest":768,"on.update":945,"vy":956}