Corona CIDER Advanced Debugger with IDE - v 1.5.1- Update

Hi there!, after last update I’m getting this error whenever I try to run my project with debug enabled:

he file sandbox for this project is located at the following folder:
(/Users/rubs_eguan/Library/Application Support/Corona Simulator/project1-157D3EF74024E66CE529E37B443D648E)
Runtime error
…opbox/Desarrollo/CoronaSDK/project1/CiderDebugger.lua:65: attempt to index global ‘CiderRunMode’ (a nil value)
stack traceback:
[C]: ?

Thanks in advance!. [import]uid: 8933 topic_id: 23072 reply_id: 99177[/import]

@rubs,

The problem should go away when you stop debugging and start again. Please remove the “require CiderDebugger” line if the problem persists. The IDE will then insert the updated require (has some more arguments for the added options.)

Let us know if that solves the problem.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99199[/import]

It now works by removing the whole statement!

Nice support as always, thank you guys! [import]uid: 8933 topic_id: 23072 reply_id: 99204[/import]

@Rubs,

No problem. Let us know if you run into any more problems.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99206[/import]

And now it is working.
I don’t know which version I was using. I just updated again. The updates are comming a bit too fast to keep track. [import]uid: 100901 topic_id: 23072 reply_id: 99235[/import]

yep, same here [import]uid: 9035 topic_id: 23072 reply_id: 99267[/import]

@T.alberga and alwzn4vr,

Yeah updates are more like daily builds. Things will settle down soon.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99285[/import]

an indention oddities:

while condition do  
 if condition then  
 if othercondition then dosomething end  
 end --  

Basically if you do a one-line if, the next end doesn’t indent back to where it belongs.

[import]uid: 19626 topic_id: 23072 reply_id: 99379[/import]

We definitely need forum with topics like bugs, feature requests, announcements… [import]uid: 101952 topic_id: 23072 reply_id: 99386[/import]

Just got the latest update and I am getting the following error if the require “CiderDebugger” line is uncommented…

CiderDebugger.lua:65: attempt to index global ‘CiderRunMode’ (a nil value)

This causes the debugger and execution to stop. [import]uid: 114363 topic_id: 23072 reply_id: 99394[/import]

@robmiracle,
Thanks for letting us know about this. Is the Auto-indent working well except for this issue?

@srdjan.markovic,
Hopefully we will have our own forum here soon.

@schizoid2k,
Please remove the “require CiderDebugger” line from your main.lua file. This should resolve the issue.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99396[/import]

@MY

If I remove the require line, how do I debug? Perhaps I am not understanding what I need to do to enable the debugger properly.

Without that line, I cannot debug (but I can run).

thanks! [import]uid: 114363 topic_id: 23072 reply_id: 99402[/import]

@schizoid2k,

Sorry for the confusion. CIDER will automatically insert the require line on its own depending on if you pick build/run/debug. It will also remove the require line on its own when you close the corona simulator. You should not have to manually put any require CiderDebugger lines.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99403[/import]

There are still more issues with the indent.

given this block of code:

local function myFunction(event)  
 if event.phase == "ended" then  
 do stuff  
 end  
 return true  
end  

If I put my cursor at the beginning of the “return true” line and hit enter, to open space between the end above it and the return, the return true back-indents to the beginning of the line.

I’m still not fond of having to hit enter to have the indention work…

Given the same code above if I add another “if” after the end and before the return I end up with this:

local function myFunction(event)  
 if event.phase == "ended" then  
 do stuff  
 end  
 if somecondition then  
 somevar = somethingelse  
 end  
 return true  
end  

But since I have to hit enter to get the “end” to back indent, I then end up with:

local function myFunction(event)  
 if event.phase == "ended" then  
 do stuff  
 end  
 if somecondition then  
 somevar = somethingelse  
 end  
  
 return true  
end  

And I have to erase the four spaces and the return to close up that blank line.

I know white space can improve readability, but it makes the program a lot longer and you have to scroll your editor a lot more (yea, I know I should fold my functions, but . . . )

Rob
[import]uid: 19626 topic_id: 23072 reply_id: 99406[/import]

@Rob,

If I put my cursor at the beginning of the “return true” line and hit enter, to open space between the end above it and the return, the return true back-indents to the beginning of the line.

Most weird auto-indent problems can be resolved by doing 1 auto-format action on your file. (Right click and press format). This will set all the spaces right and the indents should work.

But since I have to hit enter to get the “end” to back indent, I then end up with:
Sure, we can make it such that it will auto un-indent the end when you finish typing it.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99554[/import]

@mydevelopers

i just updated to the latest version of CIDER and the debugger library. But this time, I got another stack overflow:

Runtime error ?:0: C stack overflow stack traceback: [C]: ? ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> ... ?: in function <?:57> ?: in function <?:57> ?: in function <?:57> .../deniz/Dropbox/Shared/YuzbirOnline/CiderDebugger.lua:160: in function 'serializeDump' .../deniz/Dropbox/Shared/YuzbirOnline/CiderDebugger.lua:352: in function 'writeVariableDump' .../deniz/Dropbox/Shared/YuzbirOnline/CiderDebugger.lua:417: in function 'p' .../deniz/Dropbox/Shared/YuzbirOnline/CiderDebugger.lua:682: in function <...><br> ...ers/deniz/Dropbox/Shared/YuzbirOnline/okey_table.lua:156: in function 'onRelease'<br> ?: in function <?:90><br> ?: in function <?:215><br> [import]uid: 11686 topic_id: 23072 reply_id: 99692[/import] </…>

@deniz,

We will try using dkjson instead of the standard library. This may resolve the issue. Can you perhaps find a snippet of code that can reproduce this same error? This would help us a lot.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99820[/import]

@All,
Update 1.4.9 is live.
Whats new?
-Some bug fixes, display objects should appear properly in variables window
-using dkjson library

  • Variable Filters : Choose what variables you want to see and hide the rest, can significantly make inspecting variables easier. See screenshot below for details.

    -If bookmarks were not working for you it is fixed in this version. Although you may have to re-download the installer to fix the issue.

Regards,
M.Y. Developers
[import]uid: 55057 topic_id: 23072 reply_id: 99862[/import]

Hey M.Y. Developers,

Really enjoying the debugging features in CIDER.

I’ve also been using the auto save feature, is there anyway to reduce that time to maybe 1 second? or even less than 1 second? Ideally even autosave on every keystroke.

I’m working on a prototype whereby the Corona application updates in real time as you code, no need to relaunch/reload the app. (inspiration taken from this video http://vimeo.com/36579366 - which is a great watch if you’re interested).

IntelliJ allows every second, but even that is too slow.

Thanks guys,

Aaron [import]uid: 118390 topic_id: 23072 reply_id: 99868[/import]

@gravityapple,

Glad you are enjoying it!
There is an option in the options menu called “save on focus lost.” This should do what you are looking for. See image below:

Basically when you click on the corona simulator it should save all your files.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 99872[/import]