have new installed RT studio, opened some examples, they worked in studio
but if you try to compile them that crashes entirely app (error window src/menu_main.lua : 281)
after setting project directory bug is gone
check please for fresh installed run of studio
thank you
frame:Connect(ID_COMPILE, wx.wxEVT_COMMAND_MENU_SELECTED,
function ()
local docpath = ide:GetDocument(ide:GetEditor()):GetFilePath()
if docpath ~= nil then
local projpath = ide:GetProject():gsub("[\/]$", "") or ""
local isinproject = string.find(docpath, projpath) or false
local cmd = 'bin/wrtc.exe "'..docpath..(isinproject and '" "'..projpath..'"' or '"')
wx.wxExecute(cmd)
end
end)