Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-09 Thread Jonathan Lundell
On Oct 9, 2010, at 3:47 PM, mart wrote: > > A little late on this one, but I am a little curious. Have you found > the root cause for these unwelcome characters? I see these type of > characters often enough and not just in the code folks check in, but > they make there way into all sorts of annoy

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-09 Thread mart
Hi all, A little late on this one, but I am a little curious. Have you found the root cause for these unwelcome characters? I see these type of characters often enough and not just in the code folks check in, but they make there way into all sorts of annoying places (like user change-descriptions)

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-08 Thread Mariano Reingart
On Fri, Oct 8, 2010 at 2:03 AM, Jonathan Lundell wrote: > On Oct 7, 2010, at 9:18 PM, mdipierro wrote: >> >> Can you check if it is fixed in trunk? > > It should fix the bogus compile error, yes. Whether the the error > highlighting will work, I don't know; I'm having trouble following the logic.

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-08 Thread Jonathan Lundell
On Oct 7, 2010, at 9:18 PM, mdipierro wrote: > > Can you check if it is fixed in trunk? It should fix the bogus compile error, yes. Whether the the error highlighting will work, I don't know; I'm having trouble following the logic. > > On Oct 7, 1:25 pm, Jonathan Lundell wrote: >> On Oct 7, 2

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-08 Thread Mariano Reingart
Yes, it fixes the \n\r bug. That seems to be an issue only in windows with IE... The fix also calculates the offset (line and char) correctly. Regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com On Fri, Oct 8, 2010 at 1:18 AM, mdipierro wrote: > Can you c

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread mdipierro
Can you check if it is fixed in trunk? On Oct 7, 1:25 pm, Jonathan Lundell wrote: > On Oct 7, 2010, at 11:04 AM, mdipierro wrote: > > > > > I am away from my computer but I suspect the > > > text=text.replace('\r\n','\n').strip()+'\n' > > > is missing before exec-uting (text) > > If I understand

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread mdipierro
If somebody figures out how to change the install to script to avoid the quirk would be great. On Oct 7, 6:15 pm, Jon Rosen wrote: > Interesting thread.  I noticed the "can't save" problem yesterday > myself on 1.86.2 which I downloaded on Tuesday (I guess there was a > new version out since then

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Jon Rosen
Interesting thread. I noticed the "can't save" problem yesterday myself on 1.86.2 which I downloaded on Tuesday (I guess there was a new version out since then) but figured it was "just one of those quirky things" that I had to live with. Web2Py is so cool and easy to build with (compared to Rail

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread slestak
Does this have an implication for the Hg integration, if it ends up detecting EOL changes as the only mod?

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Jonathan Lundell
On Oct 7, 2010, at 11:04 AM, mdipierro wrote: > > I am away from my computer but I suspect the > > text=text.replace('\r\n','\n').strip()+'\n' > > is missing before exec-uting (text) If I understand correctly, Mariano is concerned that any compile-error diagnostics match the character (vs line

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread mdipierro
I am away from my computer but I suspect the text=text.replace('\r\n','\n').strip()+'\n' is missing before exec-uting (text) On Oct 7, 11:20 am, Mariano Reingart wrote: > On Thu, Oct 7, 2010 at 12:36 PM, Jonathan Lundell wrote: > > On Oct 7, 2010, at 8:05 AM, Jonathan Lundell wrote: > > >> On

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Chuck Paulson
I am using Windows VIsta Home Premium Service Pack 2 with Internet Explorer 8. The editor is just the standard editor that comes with web2py. However since I can't edit with that now, I am moving over to Eclipse with PyDev which doesn't have this problem. On Oct 7, 12:59 pm, Jonathan Lundell wrot

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Jonathan Lundell
On Oct 7, 2010, at 9:20 AM, Mariano Reingart wrote: > > On Thu, Oct 7, 2010 at 12:36 PM, Jonathan Lundell wrote: >> On Oct 7, 2010, at 8:05 AM, Jonathan Lundell wrote: >>> >>> On Oct 7, 2010, at 7:32 AM, Jonathan Lundell wrote: On Oct 7, 2010, at 7:09 AM, mdipierro wrote: > >

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Mariano Reingart
On Thu, Oct 7, 2010 at 12:36 PM, Jonathan Lundell wrote: > On Oct 7, 2010, at 8:05 AM, Jonathan Lundell wrote: >> >> On Oct 7, 2010, at 7:32 AM, Jonathan Lundell wrote: >>> >>> On Oct 7, 2010, at 7:09 AM, mdipierro wrote: For now I reverted to 1.86.2 hoping the problem is not there. >>>

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Jonathan Lundell
On Oct 7, 2010, at 8:05 AM, Jonathan Lundell wrote: > > On Oct 7, 2010, at 7:32 AM, Jonathan Lundell wrote: >> >> On Oct 7, 2010, at 7:09 AM, mdipierro wrote: >>> >>> For now I reverted to 1.86.2 hoping the problem is not there. >> >> A hunch: the new syntax-checking code in admin/default/edit

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Jonathan Lundell
On Oct 7, 2010, at 7:32 AM, Jonathan Lundell wrote: > > On Oct 7, 2010, at 7:09 AM, mdipierro wrote: >> >> For now I reverted to 1.86.2 hoping the problem is not there. > > A hunch: the new syntax-checking code in admin/default/edit needs to convert > Windows line endings before calling compile

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Chuck Paulson
That makes sense. I am using Windows Vista and on db.py the error said line 2 char position -1 which could be a line ending problem. On Oct 7, 10:32 am, Jonathan Lundell wrote: > On Oct 7, 2010, at 7:09 AM, mdipierro wrote: > > > > > For now I reverted to 1.86.2 hoping the problem is not there. >

Re: [web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Jonathan Lundell
On Oct 7, 2010, at 7:09 AM, mdipierro wrote: > > For now I reverted to 1.86.2 hoping the problem is not there. A hunch: the new syntax-checking code in admin/default/edit needs to convert Windows line endings before calling compile. > > On Oct 7, 8:39 am, Chuck Paulson wrote: >> I just upgrad

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread Chuck Paulson
version 1.86.2 worked fine for me, except that once you save an edited file in the web2py interface, the save button becomes disabled and you have to exit out and re-edit in order to save again. On the 1.86.3 problem, the file did not matter, I always got a syntax error on line 2. For example, the

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread mdipierro
For now I reverted to 1.86.2 hoping the problem is not there. On Oct 7, 8:39 am, Chuck Paulson wrote: > I just upgraded to version 1.86.3 and whenever I try to edit a file > using the web2py interface I get a "failed to compile file because: > SyntaxError on line 2..." error. This happens on file

[web2py] Re: SyntaxError at line 2 on version 1.86.3

2010-10-07 Thread mdipierro
Can you post the first five lines (as an attachment) of a file that gives you problems? Is this on windows? Source or binary web2py? On Oct 7, 8:39 am, Chuck Paulson wrote: > I just upgraded to version 1.86.3 and whenever I try to edit a file > using the web2py interface I get a "failed to compil