CrossUI editor problem on reload

Post bugs here!

CrossUI editor problem on reload

Postby torkos » Wed Jan 25, 2017 6:24 pm

Hi.

I downloaded the latest crossUI 2.0 and am running on the Mac.
I'm having an issue where crossui runs well when I create a project. But if I exit crossUI and try to run it at a later time, I can load the project but the editor shows an empty screen with no components ... as if I started from scratch. When I look at the code, the code is correct and hasn't changed. Its like the editor hasn't parsed the code.
torkos
 
Posts: 9
Joined: Thu Jan 22, 2015 1:35 pm

Re: CrossUI editor problem on reload

Postby torkos » Thu Jan 26, 2017 12:15 am

To expand on the experience I am having, it seems the problem happens ever time I leave the design view. So if I switched to code view and then went back to design, my components would disappear (although I would still see the code if I went back to code view).
Another thing is that if I dropped a gui on the clear design view, my source would change as if I started on a blank page.
torkos
 
Posts: 9
Joined: Thu Jan 22, 2015 1:35 pm

Re: CrossUI editor problem on reload

Postby support » Sat Jan 28, 2017 12:55 am

There's a bug, if you are not online, execute the following code to solve it temporarily please.

javascript code
if(parseFloat(CONF.version)>=2){
RAD.JSEditor.prototype._getEval=function(text){
var ns=this,
code=(text || ns.getValue()),
result;

if(ns._evalcache[code]){
result = ns._evalcache[code];
}else{
result = RAD.CodeEditor.evalInSandbox("xui.Class=Class=function(a,b,c){return c;}; " + code,false, "com:JSEditor:" + ns.$xid +":2");
if(result.ok){
xui.breakO(ns._evalcache);
ns._evalcache[code] = result;
ns._designer.setLinkObj(result.ok);
}
}
return result;
}
}
support
 
Posts: 350
Joined: Sat Apr 27, 2013 9:22 am

Re: CrossUI editor problem on reload

Postby torkos » Sat Jan 28, 2017 5:05 am

Sorry, can I have more info on how to do that? Do I have to run the debugger, or do I paste the code somewhere?
torkos
 
Posts: 9
Joined: Thu Jan 22, 2015 1:35 pm

Re: CrossUI editor problem on reload

Postby support » Sat Jan 28, 2017 1:01 pm

We'll commit the bug fixed version in next week.
Temporarily, you can close all pages and reopen them again.
support
 
Posts: 350
Joined: Sat Apr 27, 2013 9:22 am

Re: CrossUI editor problem on reload

Postby torkos » Sun Jan 29, 2017 6:04 am

Yes, that seems to work for now. Thank you.
torkos
 
Posts: 9
Joined: Thu Jan 22, 2015 1:35 pm


Return to Bug Report

Who is online

Users browsing this forum: No registered users and 0 guests

cron