Page 2 of 2
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Wed Feb 03, 2016 6:54 pm
by Wrinkliez
just here to say that i love zerobrane
the live coding feature is so convenient!
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Thu Feb 04, 2016 12:00 am
by paulclinger
@Alexar, that's a clever idea with the colorpicker; thank you for sharing! You can probably improve it by taking into account the currently selected fragment to initialize the color and add onUnregister event to remove the control from the toolbar.
@Wrinkliez, happy you love it!
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Wed Mar 02, 2016 4:39 pm
by Wrinkliez
Hey man, so I've been tinkering around with Zerobrane, and I have a question. Is there a rhyme or rhythm to the brackets? Soemtimes they seem to end with the function, other times not so much (see below).
Keep up the great work!
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Thu Mar 03, 2016 4:36 pm
by paulclinger
@Wrinkliez, this is because folding is set by default to "compact", which means it includes empty lines after the end of block (if any). If you don't want that, set `editor.foldcompact = false` in the config; see here:
https://studio.zerobrane.com/doc-editor ... ces#editor
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Fri Jul 22, 2016 10:24 pm
by pgimeno
I'm trying to debug a coroutine under LÖVE. I can set breakpoints in the main thread (meaning I've probably set up the debugger correctly), but not in the coroutine's thread. The program just doesn't stop there. Is this not supported?
Also, I don't have a LuaJIT option in Project > Lua Interpreter. Are there plans to support it in future?
I'm trying with ca291eff714d61cadc2a8531cd225f60611ce9d6 (current master as of this writing).
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Sat Jul 23, 2016 12:46 am
by paulclinger
> I can set breakpoints in the main thread (meaning I've probably set up the debugger correctly), but not in the coroutine's thread. The program just doesn't stop there. Is this not supported?
It is supported, but requires telling the debugger that support is needed; you may check this section in the documentation:
https://studio.zerobrane.com/doc-lua-de ... -debugging
> Also, I don't have a LuaJIT option in Project > Lua Interpreter. Are there plans to support it in future?
It's not needed, because it's no different from debugging of Lua 5.1 applications. In fact, ZeroBrane Studio itself is running using LuaJIT and it's the default interpreter used in debugging.
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Sat Jul 23, 2016 2:04 am
by pgimeno
It's under a CloudFlare firewall that blocks Tor so I can't read it directly. But I've found it by googling and then I could use the google cache to read it. Thank you.
It's not needed, because it's no different from debugging of Lua 5.1 applications. In fact, ZeroBrane Studio itself is running using LuaJIT and it's the default interpreter used in debugging.
Ah, good to know. The interpreter does make a difference sometimes, though, for example you may be using arg[] inside a function to access the function's variadic arguments. I guess that falls into the category of "don't do that".
Thanks for the help!
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Sat Jul 23, 2016 5:01 am
by paulclinger
> It's under a CloudFlare firewall that blocks Tor so I can't read it directly. But I've found it by googling and then I could use the google cache to read it.
The entire site is also available in the repository:
https://github.com/pkulchenko/ZeroBrane ... ging-works
> The interpreter does make a difference sometimes, though, for example you may be using arg[] inside a function to access the function's variadic arguments. I guess that falls into the category of "don't do that".
Right, there are some minor differences (for example, LuaJIT is more strict about string escapes), but they do fall under "don't do that" as you said
.
Re: ZeroBrane Studio Lua IDE v1.30 is out; updated LÖVE API for 0.10.0
Posted: Sat Jul 23, 2016 10:43 am
by pgimeno
Awesome, thank you!