Re: Wolfram Workbench source editor and corrupted file
- To: mathgroup at smc.vnet.net
- Subject: [mg97179] Re: Wolfram Workbench source editor and corrupted file
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Sat, 7 Mar 2009 02:39:30 -0500 (EST)
- References: <goo8dt$t3s$1@smc.vnet.net> <goqpl4$lvj$1@smc.vnet.net>
Hi, > I would not recommend a Java bases editor for a probably > huge ASCII file. actually I think that this is a kind of prejudice that often, but not always holds, just as the prejudice that Mathematica is too slow for numerics :-). I just opened a 4MB file with the standard eclipse text editor and found it to be reasonable reactive. In this very case though, it turned out to be true, see later... > You need a ASCII editor that can find > matching {},[] symbols like the most programmers editors do. > TextPad, UltraEdit, Notepad++, TextMate should do that better. > The Workbench editor is for short Mathematica packages, some > 100 kByte typical (in the most cases less) and not for a 4 MByte > notebook with graphic boxes and formating. In fact it was me who once suggested to give the workbench mathematica source editor a try, because it has the nice feature that it knows the mathematica syntax so you can select a cell-expression (as long as it is intact) with a double click, which would be very convenient for the process of correcting the corrupted notebook (you can try that with a small notebook file). When you try this with a huge file, you will notice that exactly that feature is turned of (and some others too) for performance reasons. It seems to be controlled by the option setting Window -> Preferences -> Mathematica -> Special -> "Ignore files greater than", which you can increase to something larger than the file in question. You will notice that then it will take ages to open huge files and eventually the Java VM will run out of memory. There are ways to tune that and you could also try to switch off the other niceties of the Mathematica editor but altogether I think you will probably be better off to use another editor and rely on just simple bracket matching as Jens has suggested... hth, albert