PDA

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



JTM
21 Jun 2007, 12:06 PM
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:


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

becomes:


Ext.SSL_SECURE_URL = 'https:

or....


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

becomes:


return this.replace(/\

jon.whitcraft
21 Jun 2007, 3:56 PM
Interesting. I will take a look in this and see if i can't figure something out. I'll keep you updated.

jon.whitcraft
23 Jun 2007, 7:25 PM
I just posted 0.1 Alpha 1a which fixes this problem

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

Enjoy!

JTM
25 Jun 2007, 5:13 AM
This does indeed fix the problem I was experiencing... Thank you for the quick attention.

Jason

BPreusing
2 Jul 2007, 10:37 PM
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! \:D/

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.

jon.whitcraft
3 Jul 2007, 6:29 AM
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?

BPreusing
3 Jul 2007, 6:34 AM
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)