Problem with SchemeUnit, require, and Check Syntax

"Richard C. Cobbe" <[email protected]> Sat, 27 Dec 2003 13:22:43 -0600
Newsgroups gmane.lisp.scheme.plt.schematics.general
Message-ID <[email protected]>
--auixqkDyHq
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

Greetings, all.

I'm observing a rather strange bug involving SchemeUnit and
CheckSyntax.  I'm using SchemeUnit 0.15 and a prebuilt-CVS distribution
of DrScheme, dating from 23 Dec 03.  (Windows XP, although I've also
observed this on MacOS 10.2.8.)

I've attached several files.  Apologies for the size; I've trimmed them
down as far as I can manage.

Save all of the files in the same directory.  Open foo.ss in DrScheme;
hit Execute.  Nothing interesting happens, but you shouldn't get any
error messages.

Now, hit Check Syntax.  You should get an error message complaining that
DrScheme can't find the file "clinger-foo.ss"; the error also indicates
that it's looking for this file in the same directory where DrScheme
itself is installed.

I'm posting to the mailing list because it's a strange enough condition
that I'm not sure whether it's due to a bug in Schematics code or not.
A couple of folks have been hacking away at Check Syntax fairly heavily
recently, so it's very possible that the problem is due to their
changes.  That said, I'm fairly certain the problem is somewhere in
SchemeUnit, because if you open up test-foo.ss, comment out the require
of (lib "test.ss" "schemeunit"), and uncomment the corresponding defines
below, Check Syntax works fine.  I've also been unable to reproduce this
bug with modules that don't use the SchemeUnit stuff.

(Ryan, I'm copying you on this because I don't know if you read
schematics-users, and this was the strange bug I showed you just before
Christmas.  While the bug is obviously not in your part of SchemeUnit, I
thought you might be able to shed some light on this.)

Richard


--auixqkDyHq
Content-Type: application/octet-stream
Content-Disposition: attachment;
	filename="clinger-foo.ss"
Content-Transfer-Encoding: base64

KG1vZHVsZSBjbGluZ2VyLWZvbyBtenNjaGVtZQoKICAocHJvdmlkZSBsb29rdXApCgogIChk
ZWZpbmUgbG9va3VwIGxpc3QpCiAgKGRlZmluZSBpbml0LXN0eC1lbnYgbGlzdCkKICAoZGVm
aW5lIG1ha2UtZGVuOmlkIGxpc3QpKQo=

--auixqkDyHq
Content-Type: application/octet-stream
Content-Disposition: attachment;
	filename="foo.ss"
Content-Transfer-Encoding: base64

KG1vZHVsZSBmb28gbXpzY2hlbWUNCg0KICAocmVxdWlyZSAidGVzdC1mb28uc3MiKQ0KICAo
cmVxdWlyZS9leHBvc2UgImNsaW5nZXItZm9vLnNzIiAoaW5pdC1zdHgtZW52IG1ha2UtZGVu
OmlkKSkNCg0KICAoc2NoZW1ldW5pdC10ZXN0DQogICAobWFrZS10ZXN0LXN1aXRlDQogICAg
IlRlc3RzIGZvciBpbXBsZW1lbnRhdGlvbiBvZiBNYWNyb3MgVGhhdCBXb3JrIg0KDQogICAo
bWFrZS10ZXN0LWNhc2UgImVudjogYmFzaWMgbG9va3VwIg0KICAgICAoYXNzZXJ0LWVxdWFs
PyAobG9va3VwIGluaXQtc3R4LWVudiAnZm9vKQ0KICAgICAgICAgICAgICAgICAgICAobWFr
ZS1kZW46aWQgJ2ZvbykpKSkpKQ0K

--auixqkDyHq
Content-Type: application/octet-stream
Content-Disposition: attachment;
	filename="test-foo.ss"
Content-Transfer-Encoding: base64

KG1vZHVsZSB0ZXN0LWZvbyBtenNjaGVtZQoKICAocmVxdWlyZSAobGliICJ0ZXN0LnNzIiAi
c2NoZW1ldW5pdCIpCiAgICAgICAgICAgOyhsaWIgImdyYXBoaWNhbC11aS5zcyIgInNjaGVt
ZXVuaXQiKQogICAgICAgICAgIDsobGliICJ0ZXh0LXVpLnNzIiAic2NoZW1ldW5pdCIpCiAg
ICAgICAgICAgOyhsaWIgImRyc2NoZW1lLXVpLnNzIiAic2NoZW1ldW5pdCIpCiAgICAgICAg
ICAgKQoKICAoZGVmaW5lIHRlc3QvdGV4dC11aSBsaXN0KQogIDsoZGVmaW5lIG1ha2UtdGVz
dC1zdWl0ZSBsaXN0KQogIDsoZGVmaW5lIG1ha2UtdGVzdC1jYXNlIGxpc3QpCiAgOyhkZWZp
bmUtc3ludGF4IGFzc2VydC1lcXVhbD8KICA7ICAoc3ludGF4LXJ1bGVzICgpCiAgOyAgICBb
KF8gYSBiKSAobGlzdCAobGFtYmRhICgpIGEpIChsYW1iZGEgKCkgYikpXSkpCgogIChkZWZp
bmUtc3ludGF4IHJlcXVpcmUvZXhwb3NlCiAgICAoc3ludGF4LXJ1bGVzICgpCiAgICAgIFso
XyBtb2QpIChyZXF1aXJlIG1vZCldCiAgICAgIFsoXyBtb2QgKCkpIChyZXF1aXJlIG1vZCld
CiAgICAgIFsoXyBtb2QgKGlkMSBpZHMgLi4uKSkKICAgICAgIChiZWdpbgogICAgICAgICAo
cmVxdWlyZSBtb2QpCiAgICAgICAgIChkZWZpbmUtdmFsdWVzIChpZDEgaWRzIC4uLikKICAg
ICAgICAgICAobGV0IChbbnMgKG1vZHVsZS0+bmFtZXNwYWNlICdtb2QpXSkKICAgICAgICAg
ICAgIChwYXJhbWV0ZXJpemUgKFtjdXJyZW50LW5hbWVzcGFjZSBuc10pCiAgICAgICAgICAg
ICAgICh2YWx1ZXMKICAgICAgICAgICAgICAgIChuYW1lc3BhY2UtdmFyaWFibGUtdmFsdWUg
J2lkMSAjdCB2b2lkKQogICAgICAgICAgICAgICAgKG5hbWVzcGFjZS12YXJpYWJsZS12YWx1
ZSAnaWRzICN0IHZvaWQgKS4uLikpKSkpXSkpCgogIChwcm92aWRlIHJlcXVpcmUvZXhwb3Nl
CiAgICAgICAgICAgO21ha2UtdGVzdC1zdWl0ZQogICAgICAgICAgIDttYWtlLXRlc3QtY2Fz
ZQogICAgICAgICAgIDthc3NlcnQtZXF1YWw/CiAgICAgICAgICAgKGFsbC1mcm9tIChsaWIg
InRlc3Quc3MiICJzY2hlbWV1bml0IikpCiAgICAgICAgICAgKHJlbmFtZSB0ZXN0L3RleHQt
dWkgc2NoZW1ldW5pdC10ZXN0KSkpCg==

--auixqkDyHq--


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click