Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ERROR("premature end of file encountered ");
PostPosted: Thu Aug 11, 2005 5:32 pm 
Hi!

I am facing somewhat odd behaviour of Singular. I have written few procedures in a single file with the code to be executed at the end. Say the name of the file is "myfile.sing". When I say
> < "myfile.sing";
It raises the error
. premature end of file encountered while reading the string
.

And then keeps on waiting for the input. Initially I thought this one to be the problem of string/ double quotes `"` mismatchings. So I commented the complete procedure part. And executed the just `print("Hello"); messages after restaring the singular. It gave me the same error.

Then after restarting the computer, I tried the original file again, it worked for the 1st run. but the same problem from 2nd run onwords.

Can somebody help me in this regard?

Vinay

P.S.
I have tried this on both shell + emacs.



email: vinay_wagh@yahoo.com
Posted in old Singular Forum on: 2003-04-18 08:13:56+02


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 20, 2005 5:40 pm 
It's hard to tell what's going on without seeing the actual file.
Can you post it (or send it to me)? I'm fairly new at this as
well, but I haven't seen the problem you describe. If I create
a file containing the single line
print("Hello");
and then read it with
< "file";
I see
Hello
printed.

What system (and OS version) are you using? When reporting
problems, it helps to know what you are running on, what
version of Singular, and a little more data about the problem.

Regards,

Justin

PS: the text handling of this interface does *not* wrap lines, so
you have to do it yourself. If you don't, you see long lines that
stretch forever out to the right...


email: justin@mac.com
Posted in old Singular Forum on: 2003-04-21 00:32:59+02


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 20, 2005 5:40 pm 
HI!
I am using Singular-2-0-3 on win98. Anyway but now I have
another problem that the problem I had described earlier
has suddenly stopped its strange behaviour. It behaves nicely now.

I think it had something to do with the memory. Anyay I 'll
try to monitor in case the problem repeates.

Regards
Vinay

email: vinay_wagh@yahoo.com
Posted in old Singular Forum on: 2003-04-21 10:38:38+02


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:57 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group