1. #1
    Ext JS Premium Member JTM's Avatar
    Join Date
    Mar 2007
    Location
    Plymouth, MI
    Posts
    50
    Vote Rating
    0
    JTM is on a distinguished road

      0  

    Default [Solved] Ext Builder 0.1 Alpha1: Problem parsing "//"

    [Solved] Ext Builder 0.1 Alpha1: Problem parsing "//"


    Hello,

    I'm having some trouble since swiching to the java version of "Ext Builder" / JS Builder from the Windows version (http://code.google.com/p/js-builder) to process our custom javascript.

    Any lines with "//" are being truncated. For example:

    Code:
    Ext.SSL_SECURE_URL = 'https://www.test.com';
    becomes:

    Code:
    Ext.SSL_SECURE_URL = 'https:
    or....

    Code:
    return this.replace(/\//g, " / ");
    becomes:

    Code:
    return this.replace(/\

  2. #2
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default


    Interesting. I will take a look in this and see if i can't figure something out. I'll keep you updated.
    Jon
    Lead Internal Application Engineer - SugarCRM
    h2ik.co

  3. #3
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default


    I just posted 0.1 Alpha 1a which fixes this problem

    http://extjs.com/forum/showthread.php?p=38008#post38008

    Enjoy!
    Jon
    Lead Internal Application Engineer - SugarCRM
    h2ik.co

  4. #4
    Ext JS Premium Member JTM's Avatar
    Join Date
    Mar 2007
    Location
    Plymouth, MI
    Posts
    50
    Vote Rating
    0
    JTM is on a distinguished road

      0  

    Default


    This does indeed fix the problem I was experiencing... Thank you for the quick attention.

    Jason

  5. #5
    Ext User
    Join Date
    Apr 2007
    Posts
    43
    Vote Rating
    0
    BPreusing is on a distinguished road

      0  

    Default


    Quote Originally Posted by jon.whitcraft View Post
    I just posted 0.1 Alpha 1a which fixes this problem

    http://extjs.com/forum/showthread.php?p=38008#post38008

    Enjoy!
    Hi Jon,

    nice tool!

    But I just ran into another little problem with //
    I accidentally wrote a comment this way: /// , which was left by JSBuilder as / (unterminated regex).

    What does /// mean?
    a. Empty rexexp followed by division
    b. comment containing /

    To my knowledge empty regexps are not allowed.

  6. #6
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default


    I do believe you are correct on both accounts.

    Currently I just look for //<space><comment> to strip out as I can not handle every type of inline comment that is created as most inline javascript comments that re used in Ext JS are just that a //<space><comment> so that is how i look and then strip the comments.

    are you using the Java builder or the .net application?
    Jon
    Lead Internal Application Engineer - SugarCRM
    h2ik.co

  7. #7
    Ext User
    Join Date
    Apr 2007
    Posts
    43
    Vote Rating
    0
    BPreusing is on a distinguished road

      0  

    Default


    Quote Originally Posted by jon.whitcraft View Post
    I do believe you are correct on both accounts.

    are you using the Java builder or the .net application?
    I use the Java builder (see my post with the UTF-8 bug)

Thread Participants: 2