News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
MurgaLua with ZeroBrane Studio
Author Message
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
RE: MurgaLua with ZeroBrane Studio

So far so good. I added "scratchextloop = true," to the end of the script to allow for "Run as Scratchpad" mode which allows for seeing our FLTK windows. I'll attach the script change.

Code:
local exe

local function exePath()
  local mainpath = ide.editorFilename:gsub("[^/\\]+$","")
  local macExe = mainpath..'bin/murgaLua'
  return (ide.osname == "Windows" and mainpath..[[bin\murgaLua.exe]]
     or  (ide.osname == "Unix" and [[murgaLua]]) -- using installed murgaLua
     or  (wx.wxFileExists(macExe) and macExe or mainpath..[[bin/murgaLua]]))
end

return {
  name = "MurgaLua (basic)",
  description = "MurgaLua interpreter with debugger",
  api = {"baselib"},
  frun = function(self,wfilename,rundebug)
    exe = exe or exePath()
     if rundebug then DebuggerAttachDefault() end

    local cmd = ('"%s" "%s"'):format(exe, wfilename:GetFullPath())
    -- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
    return CommandLineRun(cmd,self:fworkdir(wfilename),true,false,nil,nil,
      function() ide.debugger.pid = nil end)
  end,
  fprojdir = function(self,wfilename)
    return wfilename:GetPath(wx.wxPATH_GET_VOLUME)
  end,
  fworkdir = function (self,wfilename)
    return ide.config.path.projectdir or wfilename:GetPath(wx.wxPATH_GET_VOLUME)
  end,
  hasdebugger = true,
  fattachdebug = function(self) DebuggerAttachDefault() end,
  skipcompile = true,
  scratchextloop = true,
  unhideanywindow = true,

}

This is very cool.

Whats the story with in IntelliJ IDEA? We have similiar functionality?



Attached File(s)
.lua File  murgaLua.lua (Size: 1.22 KB / Downloads: 4)

This post was last modified: 01-16-2013 11:49 AM by iGame3D.

01-16-2013 02:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
MurgaLua with ZeroBrane Studio - iGame3D - 01-05-2013, 08:46 PM
RE: MurgaLua with ZeroBrane Studio - iGame3D - 01-16-2013 02:46 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: