Re: line numbering in packages
- To: mathgroup at smc.vnet.net
- Subject: [mg23642] Re: line numbering in packages
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sun, 28 May 2000 23:08:56 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <8gic0u$i32@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, how to find the line 7349 ? First of all you can count the lines from the begin of our file. Second you can use a ASCII editor (PFE, TextPad, Notepad, ...) that show the line number in it's status bar. The error is not exactly in the line reported by Mathematica, somewhere above. Because the parser read an expression, try to interpert it and opp's it gives the line where it can't continue the parsing and not the true error positon Regards Jens Atul Sharma wrote: > > I occasionally have problems with packages that ran fine under Mathematica 3.0, > returning error messages under Mathematica 4.0. Usually, the errors are identified > by a description and a line number, i.e. > > Syntax::"com": "Warning: comma encountered with no adjacent expression; the > \ > expression will be treated as Null. \!\(\" (line 7349 of \\\xxx.m\\\")\"\)" > > Forgive this rather dumb question, but how to I find a particular line > number in a package, particularly with a large package as in the example > above? This tends not to be a problem with the official WRI add-ons, since > updates are readily available. Still, a number of useful third-party > packages didn't make the transition smoothly, and some of these errors can > presumably be easily amended. > > A. Sharma