Auto-Code Format removes catch code and breaks Javascript

4 posts, 1 answers
  1. Rodney
    Rodney avatar
    5 posts
    Member since:
    Sep 2014

    Posted 17 Nov 2014 Link to this post

    I have some working code and periodically use the Auto-format code in AppBuilder Windows Client to tidy it up. It usually works well.

    On 1 file, it keeps remove the .catch(xyz) that I use for BreezeJS

    You can see the problem here:

    My file is saved and I start off showing no Angular or Console errors. I then go to the code and Format it. It removes all my "catch" code from ".catch()"
    I do a Ctrl-Z in the video below to show the before and after. When I save it my app stops working...
    http://screencast.com/t/zYSSQRFlL



    Note: The Breeze Angular javascript code comes form:  http://www.getbreezenow.com/documentation/breeze-angular-service
  2. Answer
    Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 20 Nov 2014 Link to this post

    Hello Rodney,

    Thank you for reporting this. I managed to reproduce the faulty behavior on our side and it seems like a bug within the AppBuilder code editor. I have logged the issue, in order to fix it for future AppBuilder releases.

    Unfortunately, I cannot think of any workaround that you could use, until the issue is resolved. I apologize for this and thank you for the understanding.

    I have also, updated your Telerik points for reporting this bug.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Rodney
    Rodney avatar
    5 posts
    Member since:
    Sep 2014

    Posted 20 Nov 2014 in reply to Kaloyan Link to this post

    Ok, thanks (it is very annoying as I can't auto format ;)
  4. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 21 Nov 2014 Link to this post

    Hello Rodney,

    We understand how annoying this could be and that's why we will do our best, in order to have it fixed as soon as possible.

    Thank you for your patience and understanding once again.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top