Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error writing file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JS  
View profile  
 More options Oct 8 2012, 5:37 pm
From: JS <j...@mentics.com>
Date: Mon, 8 Oct 2012 14:37:18 -0700
Local: Mon, Oct 8 2012 5:37 pm
Subject: Error writing file
Using cd with absolute path results in error for me:

Shen 2010, copyright (C) 2010 Mark Tarver
www.shenlanguage.org, version 6.1
running under Common Lisp, implementation: CLisp
port 1.2 ported by Mark Tarver

(0-) (cd "C:/dev/workspace/ShenJ/src/main/shen/")
"C:/dev/workspace/ShenJ/src/main/shen//"

(1-) (write-to-file "test.txt" "out")
PARSE-NAMESTRING: syntax error in filename "C:/dev/workspace/ShenJ/src/main/shen
//C:/dev/workspace/ShenJ/src/main/shen//test.txt" at position 39

(2-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Tarver  
View profile  
 More options Oct 9 2012, 8:22 am
From: Mark Tarver <dr.mtar...@gmail.com>
Date: Tue, 9 Oct 2012 05:22:23 -0700 (PDT)
Local: Tues, Oct 9 2012 8:22 am
Subject: Re: Error writing file
Try missing out the final / in the cd string.  Shen puts this in
automatically; you have // in the pathname which is wrong.

Mark

On Oct 8, 10:37 pm, JS <j...@mentics.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JS  
View profile  
 More options Oct 9 2012, 10:52 am
From: JS <j...@mentics.com>
Date: Tue, 9 Oct 2012 07:52:46 -0700
Local: Tues, Oct 9 2012 10:52 am
Subject: Re: Error writing file

On Tue, Oct 9, 2012 at 5:22 AM, Mark Tarver <dr.mtar...@gmail.com> wrote:
> Try missing out the final / in the cd string.  Shen puts this in
> automatically; you have // in the pathname which is wrong.

That doesn't make a difference:

(0-) (cd "C:/dev/workspace/ShenJ/src/main/shen")
"C:/dev/workspace/ShenJ/src/main/shen/"

(1-) (write-to-file "test.txt" "out")
PARSE-NAMESTRING: syntax error in filename "C:/dev/workspace/ShenJ/src/main/shen
/C:/dev/workspace/ShenJ/src/main/shen/test.txt" at position 38

Look at the error closely. It's duplicating the whole path:
C:/dev/workspace/ShenJ/src/main/shen/C:/dev/workspace/ShenJ/src/main/shen/t est.txt

Notice the 2 C:'s?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Tarver  
View profile  
 More options Oct 10 2012, 7:56 am
From: Mark Tarver <dr.mtar...@gmail.com>
Date: Wed, 10 Oct 2012 04:56:26 -0700 (PDT)
Local: Wed, Oct 10 2012 7:56 am
Subject: Re: Error writing file
I ran this with a Lisp TRACE.

(25-) (write-to-file "test.txt" "out")

1. Trace: (intmake-string '"~A" '#(shen-tuple write-to-file NIL))
1. Trace: intmake-string ==> "write-to-file"
1. Trace:
(intmake-string '"~A~A"
 '#(shen-tuple "C:/dev/workspace/ShenJ/src/main/shen/"
    #(shen-tuple "test.txt" NIL)))
1. Trace: intmake-string ==> "C:/dev/workspace/ShenJ/src/main/shen/
test.txt"
PARSE-NAMESTRING: syntax error in filename "C:/dev/workspace/ShenJ/src/
main/shen/C:/dev/workspace/ShenJ/src/main/shen/test.txt" at position
38

As far as I can make out Shen parses your pathname correctly and CLisp
prints out this error.  Very odd.

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
taotree  
View profile  
 More options Nov 16 2012, 1:22 pm
From: taotree <jshell...@gmail.com>
Date: Fri, 16 Nov 2012 10:22:02 -0800 (PST)
Local: Fri, Nov 16 2012 1:22 pm
Subject: Re: Error writing file

I'm still seeing the error with absolute path names in shen-clisp 7.

Shen 2010, copyright (C) 2010 Mark Tarver
www.shenlanguage.org, version 7
running under Common Lisp, implementation: CLisp
port 1.2 ported by Mark Tarver

(0-) (cd "C:/")
"C://"

(1-) (write-to-file "test.txt" "test out")
PARSE-NAMESTRING: syntax error in filename "C://C://test.txt" at position 5

(2-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Tarver  
View profile  
 More options Nov 19 2012, 11:14 am
From: Mark Tarver <dr.mtar...@gmail.com>
Date: Mon, 19 Nov 2012 08:14:41 -0800 (PST)
Local: Mon, Nov 19 2012 11:14 am
Subject: Re: Error writing file
None here. look at your cd command.

Shen 2010, copyright (C) 2010 Mark Tarver
www.shenlanguage.org, version 7.1
running under Common Lisp, implementation: CLisp
port 1.2 ported by Mark Tarver

(0-) (cd "C:")
"C:/"

(1-) (load "ffi.shen")
ffi
push
macro
call-ffi-macro
process-ffi-call
quote
[[tcl/tk (@p shen->tcl send-tcl) (@p tcl->shen receive-tcl)]]
shen->tcl
send-tcl
flush-tcl-tk
tcl-stream
create-tcl-stream
open-process-stream
receive-tcl
receive-tcl-help
tcl->shen
macro
make!-macro
make
set-all!
set!
get!
br-string
chname
macro
pack!-macro
pack
list->string

run time: 0.35880230367183685 secs
loaded

(2-)

On Nov 16, 6:22 pm, taotree <jshell...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
j...@mentics.com  
View profile  
 More options Nov 19 2012, 3:31 pm
From: j...@mentics.com
Date: Mon, 19 Nov 2012 12:31:31 -0800
Local: Mon, Nov 19 2012 3:31 pm
Subject: Re: Error writing file
The problem is with write-to-file. load works fine for me, too.

You were able to reproduce this problem before, I think.

https://groups.google.com/forum/?fromgroups=#!searchin/Qilang/clisp$2...

On Mon, Nov 19, 2012 at 8:14 AM, Mark Tarver <dr.mtar...@gmail.com> wrote:
> None here. look at your cd command.

> Shen 2010, copyright (C) 2010 Mark Tarver
> www.shenlanguage.org, version 7.1
> running under Common Lisp, implementation: CLisp
> port 1.2 ported by Mark Tarver

> (0-) (cd "C:")
> "C:/"

> (1-) (load "ffi.shen")
> ffi
> push

...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Tarver  
View profile  
 More options Nov 20 2012, 12:05 pm
From: Mark Tarver <dr.mtar...@gmail.com>
Date: Tue, 20 Nov 2012 09:05:30 -0800 (PST)
Local: Tues, Nov 20 2012 12:05 pm
Subject: Re: Error writing file
Got it.

write-file in load.shen should read

(define write-to-file
   File Text -> (let Stream (open file File out)
                     String (if (string? Text)
                                (make-string "~A~%~%" Text)
                                (make-string "~S~%~%" Text))
                     Write (pr String Stream)
                     Close (close Stream)
                     Text))

in KLambda

(defun write-to-file (V1679 V1680)
 (let Stream (open file V1679 out)
   (let String (if (string? V1680)
                   (intmake-string "~A~%~%" (@p V1680 ()))
                   (intmake-string "~S~%~%" (@p V1680 ())))
    (let Write (pr String Stream) (let Close (close Stream) V1680)))))

Mark

Mark
On Nov 19, 8:31 pm, j...@mentics.com wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »