Hey,
So' I have Lua Glider 1.9 but am struggling to perform basic debugging tasks with it so far. I can load the player, but that's about it. I can't deploy to the player, or a device running the player.
Has anyone else been successful in using this setup. Would you be able to explain your configuration?
Thanks!
BW
Comments
Please try again with Glider v 1.9.1. You can get it via help-> check for updates. We fixed some Gideros specific bugs and we are working on better Gideros support.
Regards,
M.Y. Developers
I think it may have something to do with some sub-folder goofiness. Right now, my folders are structured as thus:
/Root
(the remaining folders are inside Root; sorry, I can't figure out how to "indent" ;-)
/fonts
/images
/sounds
/src (where my main.lua and all other .lua files reside)
I've opened each of these folders as a "project" inside Glider. There are no sub-folders inside of these projects. When I hit run, I don't get any complaints about it being unable to find main.lua, so all seems to be well there. It just never actually runs it that I can tell. I've set breakpoints inside main.lua and they are never triggered.
The only success I've had thus far is when I have created a brand new, very simple project with nothing but a main.lua, displaying a code-generated rectangle in the window. The Gideros player launches and the rectangle is displayed as expected.
I had tried adding the res folder as a project as well, but Glider wasn't giving me the option to do so. I thought it had to do with the fact that it contained nothing but sub-folders, but that didn't turn out to be the case. I renamed the folder, and suddenly, I was allowed to add it. I even changed it back to "res", and the option remained. Weird.
Unfortunately, that didn't fix the problem for me, either.
Success!
Well, so much for my src folder. I did a big re-structuring, and after some messing around to get things running in Gideros again, my new folder structure looks like this:
Root (all lua source files now stored here, not in Root/src)
Root/res
Root/res/fonts
Root/res/images
Root/res/sounds
I added every folder here as a project in Glider, and all seems to be working now.
I checked the GliderProj.gproj file that was generated, here's its content:
BW
Gideros plugin loaded successfully
System Lua Interpreter plugin loaded successfully
Moai plugin loaded successfully
Corona plugin loaded successfully
Gideros plugin loaded successfully
connected!
... with my GliderProj.gproj being generated after that. Mine *does* list all of my .lua files, including main, amongst other things. You're also missing the properties tag, which makes me think it's not really outputting a legitimate Gideros project file to begin with. I'm a newcomer to Glider, so I can't offer any real insight, but your strange plugin messages do steer my suspicions in that direction.
I hate to be the guy who suggests re-installing Glider, but... maybe?
I've reinstalled and tried LuaGlider out on a couple of different PC's, and my Mac. Issue is the same across all 3 machines.
Anyone else having this problem?
Thanks for hanging in there. We were not taking into account all the features of the gproj file format (ie external relative paths, file dependencies, etc) but that is soon to change.
We are about to release version 1.9.21 that should address most of these issues. This version of Glider has better gproj file integration than ever. And it has customizers for many gproj specific features such as dependencies, file attributes, image scales, etc. Please see this google document for more details:
https://docs.google.com/document/d/1j-m_cNTvqE6icYAWOSdOJgmLhQOKFsJ3O2mH2VEW2YY/edit#
BTW you can get all updates via help->check for updates.
Regards,
M.Y. Developers