[8.0.1] Very long source code ...

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

[8.0.1] Very long source code ...

Postby marten » Sun Feb 28, 2010 12:13 am

I created a source string building a ByteArray:

^#(12 23 32 45 .....)

and so on. The resulting string is pretty large. I output this string to Transcript, SelectAll, then switch to a method editor and the did "paste". The string seems to be inserted, but it is not viewable. I can save the method and it seems to be there - because executing the method returns the ByteArray ...
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: [8.0.1] Very long source code ...

Postby tc » Sun Feb 28, 2010 4:40 am

Hello,

Which OS and version of ST are you using?

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: [8.0.1] Very long source code ...

Postby marten » Sun Feb 28, 2010 5:35 am

tc wrote:Hello,

Which OS and version of ST are you using?

--tc


Windos 7 and 8.0.1 ...
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: [8.0.1] Very long source code ...

Postby marten » Sun Feb 28, 2010 6:09 am

tc wrote:Hello,

Which OS and version of ST are you using?

--tc


The reason was simple: if the length of a single line is too long - no source will be shown. Just add a "cr" after each 80 (or whatever works) characters and all the source is shown again - very simple, when the source code is generated automatically.

Marten
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: [8.0.1] Very long source code ...

Postby tc » Sun Feb 28, 2010 6:24 am

Hello,

The same problem (method not seen or displayed incorrectly) can be seen by loading Seaside and looking at PTDeploymentLibrary>>#prototypeJs. The method displays correctly if the text is word wrapped. The method is not going to be colored since the syntax tree has a limit.

On Unix, it seems there is a fundamental problem because the method will not display properly with ibmst.icx nor abt.icx.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: [8.0.1] Very long source code ...

Postby jtuchel » Mon Mar 01, 2010 2:49 pm

This is true for all methods containing long Strings, like the jQuery javascript methods or if you import files into WAFileLibrary methods.

Seems like the browsers simply cannot handle loooooong lines of text. The effects range from "animated text" where portions of the line get scrolled to the right to seemingly frozen editor panes or only half-shown lines.

This is not so bad for most cases since you may not want to really read such long lines, but I remember downloading jQuery two times in order to look for some JavaScript code in jQuery, just because the browser can't handle it.

I've seen it on Windows XP and Vista with VAST 8.x (haven't looked into B136 yet).

cu

Joachim
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest