[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ANN: ZeroBrane Studio IDE v0.30; now with stack/variable information and love2d support
- From: Paul K <paulclinger@...>
- Date: Fri, 29 Jun 2012 22:42:22 -0700
Hi Javier,
> yep, it launches! and it shows the tutorial docs, links work, etc.
This is a good start ;)
> - there's no menubar. only the same icon buttons as the examples
> plus a "jump to function definition" popup menu
> - after trying to run a demo, the editor window floats on top of any
> other window.
This is strange; I haven't seen this on MacOS (and definitely not on
windows). Will need to find a linux box.
> Lua: Error while running chunk
> src/editor/commands.lua:499: wxLua: Unable to call an unknown method
> 'ShowFullScreen' on a 'wxFrame' type.
It seems like that port may not have that function. I added a check
for that to call it under pcall. Will check the changes in later
today.
> ./turtle.lua:338: wxLua: Expected an 'unsigned integer' for parameter
> 1, but got a 'number'.
> Function called: 'wxMilliSleep(number)'
> 01. wxMilliSleep(integer)
I noticed the same thing when I was testing new binaries for 2.8.12.
Reported yesterday:
http://permalink.gmane.org/gmane.comp.lib.wxwidgets.wxlua.user/3037
> this seems a (design?) glitch of wxLua, changing that line from
yes, I can apply the same fix you did, but it does seem like something
that can be fixed in wxLua as it behaved as expected in earlier
versions.
I'd be curious to see if the debugging works. Just hit Start Debugging
on any simple script and see if you can step through it. I'll probably
open a ticket on github for this and move some of this info there.
We should probably get off the list if it gets too technical. Thank
you for your help!
Paul.
On Fri, Jun 29, 2012 at 5:18 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> On Fri, Jun 29, 2012 at 5:59 PM, Paul K <paulclinger@yahoo.com> wrote:
>>>> lua -e 'require "wx"'
>>> Gtk-Message: Failed to load module "canberra-gtk-module"
>>> but it seems to be minimal, since all the samples seem to work.
>>
>> If you get wx samples to work, you should be able to try with ZeroBrane Studio.
>
> yep, it launches! and it shows the tutorial docs, links work, etc.
>
> weird UI issues:
> - there's no menubar. only the same icon buttons as the examples
> plus a "jump to function definition" popup menu
> - after trying to run a demo, the editor window floats on top of any
> other window.
> - hitting the close window corner button doesn't kill it, but the
> terminal shows an error:
>
> Lua: Error while running chunk
> src/editor/commands.lua:499: wxLua: Unable to call an unknown method
> 'ShowFullScreen' on a 'wxFrame' type.
>
> (hitting Ctr-C (twice) at the terminal kills it)
>
> execution issues:
> - at first didn't find the Lua executable. no prob, just put a
> ./bin/lua => /usr/bin/lua link
> - the spirograph demo flashes a small window and dies with:
>
> ./turtle.lua:338: wxLua: Expected an 'unsigned integer' for parameter
> 1, but got a 'number'.
> Function called: 'wxMilliSleep(number)'
> 01. wxMilliSleep(integer)
> stack traceback:
> (command line):1: in function <(command line):1>
> [C]: in function 'wxMilliSleep'
> ./turtle.lua:338: in function 'wait'
> ./spirograph.lua:33: in function 'spiro'
> ...ack-0.30/myprograms/zerobrane-lessons/05-running.lua:11: in main chunk
> [C]: in function 'dofile'
> (command line):1: in function <(command line):1>
> [C]: in function 'xpcall'
> (command line):1: in main chunk
> [C]: ?
> Program completed in 0.12 seconds (pid: 26405).
>
> this seems a (design?) glitch of wxLua, changing that line from
>
> else wx.wxMilliSleep(stillneed); return
>
> to
>
> else wx.wxMilliSleep(math.floor(stillneed)); return
>
> allows it to run and show some graphs. still not sure if they look as
> they should, and it only progresses while there's some events, like
> moving the mouse inside the window. if i keep still, the program
> freezes.
>
> in all, not bad for a first try, considering all the (squeaky) moving parts.
>
> --
> Javier
>