Small bug - load(file.mc) fails if there is no empty lines at the end of the file - also reported at Sourceforge #1345803.
Subject: Small bug - load(file.mc) fails if there is no empty lines at the end of the file - also reported at Sourceforge #1345803.
From: Christiansson, G.A.V.
Date: Wed, 2 Nov 2005 11:22:29 +0100
Dear Maxima people,
Load, batch, and batchload stopped working for a number of files when I
upgraded from 5.9.1 to 5.9.2, and this is at least a workaround that
works for me.
(Add a newline at the end of the files.)
Below I will illustrate the contents of two files, delimited by ----,
then the commands that provoke the bug.
Maxima is great. Thanks for the good work!
Best regards,
Goran Christiansson
g.a.v.christiansson@wbmt.tudelft.nl
-------------- show_bug.mc:
/* Small program to illustrate a small bug in Maxima 5.9.2, on Windows
XP */
a:34;
------------ no_bug.mc
/* Small program to illustrate a small bug in Maxima 5.9.2, on Windows
XP */
a:34;
----------- (note the empty line at the end of the file)
A session:
========================================================================
=
Using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (aka GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) load(show_bug);
Maxima encountered a Lisp error:
Error in MACSYMA-TOP-LEVEL [or a callee]: Unexpected end of #.
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i2) load(no_bug);
(%o2) D:/docs/hapticAnalysisPackage/examples/no_bug.mc
(%i3) bug_report();
The Maxima bug database is available at
http://sourceforge.net/tracker/?atid=104933&group_id=4933&func=browse
Submit bug reports by following the 'Submit New' link on that page.
Please include the following build information with your bug report:
-------------------------------------------------------------
Maxima version: 5.9.2
Maxima build date: 9:5 10/12/2005
host type: i686-pc-mingw32
lisp-implementation-type: GNU Common Lisp (GCL)
lisp-implementation-version: GCL 2.6.7
-------------------------------------------------------------
The above information is also available from the Maxima function
build_info().
---------------------------------------------
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/