From scsh-users-request@scsh.net Tue Jan 2 10:45:12 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx2.informatik.uni-tuebingen.de (Postfix) with ESMTP id 788C9348B; Tue, 2 Jan 2007 10:45:10 +0100 (MET) Received: from mx2.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx2.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d4RYTx4TlcC4; Tue, 2 Jan 2007 10:45:08 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx2.informatik.uni-tuebingen.de (Postfix) with ESMTP id BFFE03483; Tue, 2 Jan 2007 10:45:07 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id 240D85EE3; Tue, 2 Jan 2007 10:45:06 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net X-Greylist: delayed 414 seconds by postgrey-1.27 at mx4; Tue, 02 Jan 2007 10:44:56 MET DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=sM8AW9EcN83x7d0VQF3WRe6HeKuuBG0yTx4w6K36VgSc5jPJIwCZ9awNi91Xg6EnQELqHW2JGBQJcwytzK2TC6ZlIgX7SC1a3f21qb71T+xC3IRh6bWM+/oJUJwyolHRkdiTcI2GjDXZaFcZLIL5RXBBRltJSx8dRWIEh1KLF28= Message-ID: Date: Tue, 2 Jan 2007 10:38:01 +0100 From: "Andreas Bernauer" Reply-To: andreas.bernauer@gmx.de Sender: bernauer@gmail.com To: scsh-users@scsh.net Subject: SUNet Surflets using POST method and Internet Explorer In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_144552_1265729.1167730681824" References: X-Google-Sender-Auth: c587eb3d37fbb108 Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/367 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Tue, 2 Jan 2007 10:45:06 +0100 (MET) ------=_Part_144552_1265729.1167730681824 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Emilio, On 12/24/06, Emilio Lopes wrote: > > I'm having a hard time using web forms with the POST method in > conjunction with Microsoft's Explorer (Version 6, XP SP2). > > > Getting the bindings off of the form definitely works, I can print the > input to the terminal after `send-html/suspend' returns. It's the > sending of the second page that fails somehow. > > The equivalent servlet works fine using PLT's web server, but I find > PLT Scheme painful for interactive development and their servlet > library is not so programmer friendly as SUNet's. > > Can anyone provide any insight on this problem? I don't know where to > start looking for a solution or workaround. > > > We had problems getting IE work with our SUnet FTP server, too. I don't have IE available currently, but I can look into the problem next week. I suspect the problem lies with the closing/not closing of the POST data channel. What you can try is to close / not close the POST data channel after receiving data (depending on how it is curerntly done in SURflets). IIRC, IE is very sensitive to what the webserver does or does not. Furthermore, you may want to use a packet sniffer to check which data IE sends and receives and how this data differs from what Firefox sends and receives. I am sorry I can't help you more at the moment. I'll look into it next week. Let me know, if you have interesting results or more questions. Cheers, Andreas. ------=_Part_144552_1265729.1167730681824 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Emilio,

On 12/24/06, Emilio Lopes < eclig@gmx.net> wrote:
I'm having a hard time using web forms with the POST method in
conjunction with Microsoft's Explorer (Version 6, XP SP2).


Getting the bindings off of the form definitely works, I can print the
input to the terminal after `send-html/suspend' returns.  It's the
sending of the second page that fails somehow.

The equivalent servlet works fine using PLT's web server, but I find
PLT Scheme painful for interactive development and their servlet
library is not so programmer friendly as SUNet's.

Can anyone provide any insight on this problem?  I don't know where to
start looking for a solution or workaround.



We had  problems getting IE work with our SUnet FTP server, too. I don't have IE available currently, but I can look into the problem next week. I suspect the problem lies with the closing/not closing of the POST data channel. What you can try is to close / not close the POST data channel after receiving data (depending on how it is curerntly done in SURflets). IIRC, IE is very sensitive to what the webserver does or does not.
Furthermore, you may want to use a packet sniffer to check which data IE sends and receives and how this data differs from what Firefox sends and receives.

I am sorry I can't help you more at the moment. I'll look into it next week. Let me know, if
you have interesting results or more questions.

Cheers,

Andreas.
------=_Part_144552_1265729.1167730681824-- From scsh-users-request@scsh.net Wed Jan 3 14:48:47 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id A32263470; Wed, 3 Jan 2007 14:48:45 +0100 (MET) Received: from mx1.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx1.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LRGlpTVniyUm; Wed, 3 Jan 2007 14:48:45 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 67F36344F; Wed, 3 Jan 2007 14:48:44 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id 208735EE3; Wed, 3 Jan 2007 14:48:43 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net X-Injected-Via-Gmane: http://gmane.org/ To: scsh-users@scsh.net From: Emilio Lopes Subject: Re: SUNet Surflets using POST method and Internet Explorer Date: Wed, 3 Jan 2007 13:47:00 +0000 (UTC) Lines: 33 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 192.109.190.88 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1) Sender: news Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/368 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Wed, 3 Jan 2007 14:48:43 +0100 (MET) Hello all, hello Andreas! Andreas Bernauer writes: > We had problems getting IE work with our SUnet FTP server, too. I > don't have IE available currently, but I can look into the problem > next week. I suspect the problem lies with the closing/not closing > of the POST data channel. What you can try is to close / not close > the POST data channel after receiving data (depending on how it is > curerntly done in SURflets). Closing the request's input-port (in `get-bindings') results in a core dump of the SUNet server. Ouch! But your hint regarding the FTP server was very helpful. I browsed ftpd's code and saw there a comment about a bug in Internet Explorer exposed by disabling buffering of the socket port. Well, it turns out that the HTTP server *does* disable buffering of the socket's input port (file "httpd/core.scm", procedure `httpd'), with the comment: ;; If there is buffering for the input, ;; CGI scripts don't get the full request If I comment out the call to `set-port-buffering', surflets using the POST method work fine with IE. But then, CGI scripts would probably stop working (I didn't test this). It seems that one would have to turn buffering off only for the surflet handler, but I don't know the code enough to be able to do this change. I'm thankful for suggestions :-). From scsh-users-request@scsh.net Fri Jan 5 10:53:06 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id E6F6B3482; Fri, 5 Jan 2007 10:53:03 +0100 (MET) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TnnPaaJ2GqaW; Fri, 5 Jan 2007 10:53:00 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id CFC79347E; Fri, 5 Jan 2007 10:52:56 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id D7B025EE3; Fri, 5 Jan 2007 10:52:55 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net From: Michael Sperber To: Emilio Lopes Cc: scsh-users@scsh.net Subject: Re: SUNet Surflets using POST method and Internet Explorer References: Date: Fri, 05 Jan 2007 10:52:47 +0100 In-Reply-To: (Emilio Lopes's message of "Wed, 3 Jan 2007 13:47:00 +0000 (UTC)") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.5-b27 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable Resent-Message-ID: <5HsCEB.A.ytC.3_hnFB@bernard> Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/369 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Fri, 5 Jan 2007 10:52:55 +0100 (MET) Emilio Lopes writes: > Closing the request's input-port (in `get-bindings') results in a core > dump of the SUNet server. Ouch! Backtrace? --=20 Cheers =3D8-} Mike Friede, V=F6lkerverst=E4ndigung und =FCberhaupt blabla From scsh-users-request@scsh.net Sat Jan 6 16:41:08 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 082503474; Sat, 6 Jan 2007 16:41:06 +0100 (MET) Received: from mx1.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx1.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xyu5vrujGmuw; Sat, 6 Jan 2007 16:41:03 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 6C08D347B; Sat, 6 Jan 2007 16:41:01 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id C10805EDE; Sat, 6 Jan 2007 16:40:59 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net X-Injected-Via-Gmane: http://gmane.org/ To: scsh-users@scsh.net From: Emilio Lopes Subject: Re: SUNet Surflets using POST method and Internet Explorer Date: Sat, 06 Jan 2007 16:43:20 +0100 Organization: The Church of Emacs Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=latin-iso8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: rba92.r.pppool.de User-Agent: Emacs Gnus Cancel-Lock: sha1:HXOcgEl0a4iufRUELCq9/CRx4kk= Sender: news Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/370 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Sat, 6 Jan 2007 16:40:59 +0100 (MET) Michael Sperber writes: > Emilio Lopes writes: >> Closing the request's input-port (in `get-bindings') results in a core >> dump of the SUNet server. Ouch! > Backtrace? This was on Windows/Cygwin and it seems that I can't reproduce this (and another "interesting" problem that I'm having) in a decent environment. It would be interesting to check if closing the request's input-port (with the server running on a decent OS) does solve the problem with Explorer. It would be a better/simple solution than twiddling the buffering. But I don't have Windows at home and no Unix access at work, so I can't test this. Anyone? Also PLT's server has some code to cope with an Explorer bug. From collects/web-server/private/request.ss: ; to work around a bug in MSIE for documents < 265 bytes when connecting from the local ; machine. The server could pad the response as MSIIS does, but closing the connection works, too. ; We do not check for version numbers since IE 6 under windows is 5.2 under macosX But this doesn't seem to be the same bug I encountered because I was also having this problem when connection from another machine and it was independent of the document size. Oh, well... -- Emílio C. Lopes Munich, Germany From scsh-users-request@scsh.net Sat Jan 6 18:34:25 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id BFFF4348F; Sat, 6 Jan 2007 18:34:22 +0100 (MET) Received: from mx1.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx1.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Va5IMYEmftfI; Sat, 6 Jan 2007 18:34:21 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 9F0C73474; Sat, 6 Jan 2007 18:34:19 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id 8676B5EDD; Sat, 6 Jan 2007 18:34:18 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net To: Emilio Lopes Cc: scsh-users@scsh.net Subject: Re: SUNet Surflets using POST method and Internet Explorer References: From: Martin Gasbichler Date: Sat, 06 Jan 2007 18:34:12 +0100 In-Reply-To: (Emilio Lopes's message of "Sat, 06 Jan 2007 16:43:20 +0100") Message-ID: <598xggjbzf.fsf@informatik.uni-tuebingen.de> User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b27 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/371 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Sat, 6 Jan 2007 18:34:18 +0100 (MET) Emilio Lopes writes: > Michael Sperber writes: > >> Emilio Lopes writes: > >>> Closing the request's input-port (in `get-bindings') results in a core >>> dump of the SUNet server. Ouch! > >> Backtrace? > > This was on Windows/Cygwin and it seems that I can't reproduce this > (and another "interesting" problem that I'm having) in a decent > environment. I don't know if this helps but you can obtain a stack trace in a non-interactive stetting using DISPLAY-CONTINUATION from Sunterlib's interaction package. -- Martin From scsh-users-request@scsh.net Wed Jan 10 23:39:25 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id 5B32834A6; Wed, 10 Jan 2007 23:39:22 +0100 (MET) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HQsJ+f8I1O39; Wed, 10 Jan 2007 23:39:20 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id E69443485; Wed, 10 Jan 2007 23:39:18 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id BB6935EDD; Wed, 10 Jan 2007 23:39:17 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net Date: Wed, 10 Jan 2007 17:38:55 -0500 From: Anthony Carrico To: scsh Subject: Re: Install lib and development Message-ID: <20070110223854.GA9606@memebeam.org> References: <20061222190721.GB5303@memebeam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Resent-Message-ID: <5qj_6D.A.9ZL.UsWpFB@bernard> Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/372 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Wed, 10 Jan 2007 23:39:17 +0100 (MET) On Sat, Dec 23, 2006 at 04:22:05PM +0100, Michael Sperber wrote: > I'm not sure I understand the details, but this looks as though it > could trivially be done with the RT-MODULES package from Sunterlib. > Have you tried that? Sorry for the delayed reply, that seems like a good idea, but the library's config would need to load the module-system library. In other words, it would need to simulate "-lel module-system/load.scm" in the exec language. I've tried the following: /home/acarrico/src/load-test/test-library/load.scm: (load (user (run '(find-library-file 'module-system/load.scm" (lib-dirs) #f)))) $ SCSH_LIB_DIRS='#f "/home/acarrico/src/load-test" $ scsh -lel test-library/config.scm Error: exception (car "/usr/local/lib/scsh-0.6/modules/0.6/module-system/load.scm") This seems as tricky as the original problem! -- Anthony Carrico http://giftfile.org/ From scsh-users-request@scsh.net Thu Jan 11 08:24:25 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx2.informatik.uni-tuebingen.de (Postfix) with ESMTP id B4D1F34BF; Thu, 11 Jan 2007 08:24:23 +0100 (MET) Received: from mx2.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx2.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9n1wsxGDZzBj; Thu, 11 Jan 2007 08:24:22 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx2.informatik.uni-tuebingen.de (Postfix) with ESMTP id 095A83487; Thu, 11 Jan 2007 08:24:21 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id 548F15EDA; Thu, 11 Jan 2007 08:24:14 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net From: Michael Sperber To: Anthony Carrico Cc: scsh Subject: Re: Install lib and development References: <20061222190721.GB5303@memebeam.org> <20070110223854.GA9606@memebeam.org> Date: Thu, 11 Jan 2007 08:24:05 +0100 In-Reply-To: <20070110223854.GA9606@memebeam.org> (Anthony Carrico's message of "Wed, 10 Jan 2007 17:38:55 -0500") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.5-b27 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/373 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Thu, 11 Jan 2007 08:24:14 +0100 (MET) Anthony Carrico writes: > On Sat, Dec 23, 2006 at 04:22:05PM +0100, Michael Sperber wrote: >> I'm not sure I understand the details, but this looks as though it >> could trivially be done with the RT-MODULES package from Sunterlib. >> Have you tried that? > > Sorry for the delayed reply, that seems like a good idea, but the > library's config would need to load the module-system library. In > other words, it would need to simulate "-lel module-system/load.scm" > in the exec language. I've tried the following: > > /home/acarrico/src/load-test/test-library/load.scm: > > (load > (user > (run > '(find-library-file 'module-system/load.scm" (lib-dirs) #f)))) > > $ SCSH_LIB_DIRS=3D'#f "/home/acarrico/src/load-test" > $ scsh -lel test-library/config.scm > > Error: exception > (car "/usr/local/lib/scsh-0.6/modules/0.6/module-system/load.scm= ") I'm still fuzzy on what you're trying to do. What's in module-system/load.scm? Or is this the same as test/library/load.scm? There, the quoting looks as though it's responsible for the error you're getting. Shouldn't you be doing something like: (define load-location '(user (run (find-library-file 'module-system/load.scm" (lib-dirs) #f)))) (load load-location) Sorry if I seem dense ... --=20 Cheers =3D8-} Mike Friede, V=F6lkerverst=E4ndigung und =FCberhaupt blabla From scsh-users-request@scsh.net Thu Jan 11 18:51:07 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 8AFBB3498; Thu, 11 Jan 2007 18:51:04 +0100 (MET) Received: from mx1.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx1.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zQ8EXnHuU+SG; Thu, 11 Jan 2007 18:51:03 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 03C643490; Thu, 11 Jan 2007 18:51:01 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id 7398E5EE3; Thu, 11 Jan 2007 18:51:00 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net Date: Thu, 11 Jan 2007 12:50:40 -0500 From: Anthony Carrico To: scsh Subject: Re: Install lib and development (solved!) Message-ID: <20070111175039.GA11381@memebeam.org> References: <20061222190721.GB5303@memebeam.org> <20070110223854.GA9606@memebeam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/374 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Thu, 11 Jan 2007 18:51:00 +0100 (MET) On Thu, Jan 11, 2007 at 08:24:05AM +0100, Michael Sperber wrote: > I'm still fuzzy on what you're trying to do. What's in > module-system/load.scm? You suggested I use RT-MODULES, that is its load file (generated by Michel Schinz's install library). > There, the quoting looks as though it's responsible for the error > you're getting. Shouldn't you be doing something like: > > (define load-location > '(user > (run > (find-library-file 'module-system/load.scm" (lib-dirs) #f)))) > (load load-location) This doesn't quite work, but you have solved my problem! I didn't realize there was a 'define' in the command language. > Sorry if I seem dense ... Or me. Either way we have stumbled on the answer. Now I'll show a concrete version of what I originally proposed: Suppose I was fixing a bug in your cml library. I might temporarily change my library path to use the development version: SCSH_LIB_DIR='#f "/home/acarrico/src/sunterlib/s48/" But this doesn't work, since any application would have include: -lel cml/load.scm but the development version isn't "installed", so load.scm doesn't exist. The load file is generated by cml's pkg-def.scm: /home/acarrico/src/sunterlib/s48/cml/pkg-def.scm: ... (define-package "cml" (1 1) ((install-lib-version (1 3 0))) (write-to-load-script `((config) (load ,(absolute-file-name "packages.scm" (get-directory 'scheme #f))))) ...) ... To solve this problem, I could add a "development time" version like this: /home/acarrico/src/sunterlib/s48/cml/load.scm: (config) (load "/home/acarrico/src/sunterlib/s48/cml/packages.scm") This would work for me, but if I put this file in source control, it would fail for you since the wrong path would be hard coded. The better solution is what we have been trying to discuss: /home/acarrico/src/sunterlib/s48/cml/load.scm: (user) (define library-load-pathname (run '(find-library-file "cml/packages.scm" (lib-dirs) #f))) (config) (load library-load-pathname) This would work for me and you and anyone else since the path is relative. -- Anthony Carrico http://giftfile.org/ From scsh-users-request@scsh.net Sun Jan 28 16:19:07 2007 Return-Path: X-Original-To: scsh@informatik.uni-tuebingen.de Delivered-To: scsh@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id 3B24F3492; Sun, 28 Jan 2007 16:19:05 +0100 (MET) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RsB-s6O6Vw2i; Sun, 28 Jan 2007 16:19:04 +0100 (MET) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id C96A53482; Sun, 28 Jan 2007 16:19:02 +0100 (MET) Received: by www.scsh.net (Postfix, from userid 3123) id 0A0CA5EDE; Sun, 28 Jan 2007 16:19:01 +0100 (MET) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net From: Michael Sperber To: prestowk Cc: scsh-users@scsh.net Subject: Re: Exception: return-from-callback "scheme_stat" References: Date: Sun, 28 Jan 2007 16:18:46 +0100 In-Reply-To: (prestowk@gmail.com's message of "Sat, 02 Sep 2006 01:36:12 +0300") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.5-b27 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: archive/latest/375 X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Sun, 28 Jan 2007 16:19:01 +0100 (MET) I just saw that I'd completely forgotten about this one. Sorry about the huge delay! If it's still relevant: prestowk writes: > Michael Sperber writes: > >> Can you say ,preview to generate a backtrace? > > Error: exception > wrong-type-argument > (return-from-callback "scheme_stat" ' > photo> ,preview Still looks weird. Can you say ,debug and type "d" a few times so we can see a few stack frames? --=20 Cheers =3D8-} Mike Friede, V=F6lkerverst=E4ndigung und =FCberhaupt blabla