|
Post by barryk on Mar 5, 2011 10:03:05 GMT 1
First I tried to compile bacon.bac with my "1.0.21pre" that I had compiled a couple of weeks ago. Got compile errors.
So, I downloaded 1.0.21 bacon.bash, and I have /bin/bash v4, ran
./bacon.bash bacon.bac
And it stopped with this error message (repeated many times):
./bacon.bash: line 5176: [[: ./bacon.bac.Handle_Readln.tmp: syntax error: operand expected (error token is "./bacon.bac.Handle_Readln.tmp")
Regards, Barry Kauler
|
|
|
Post by barryk on Mar 5, 2011 10:08:01 GMT 1
If I try to compile with my 1.0.21pre binary, get this:
# bacon bacon.bac
Starting conversion... 787
Starting conversion... done. Starting compilation... Compiler emits messages!
...those messages are same as previous post.
Regards, Barry Kauler
|
|
|
Post by vovchik on Mar 5, 2011 10:22:43 GMT 1
Dear Barry, I compiled the latest release with my pre121 beta and it compiled fine on Puppy and Mac OSX. Are you certain something did not happen during the download of the source? Try getting the source again with wget (wget basic-converter.org/bacon.bac). Weird.... With kind regards, vovchik
|
|
|
Post by barryk on Mar 5, 2011 10:41:38 GMT 1
Well, well, I ran wget as you suggested, and my previous bacon.bac was smaller. So, yes, it was an incomplete download, which is interesting as I used the 'fetch' utility, which downloaded many files and did not give any error messages (that I saw). I might not use 'fetch' in the future!
Downloading bacon.bac properly, it compiles. Thanks for that.
|
|
|
Post by Pjot on Mar 5, 2011 12:00:25 GMT 1
Hi Barry,
It happened with me last week also, but it appears that my ISP was doing some upgrade on their servers causing the webpage sometimes not to be available for a few seconds.
The 'fetch' tool has no error checking or download recovery, and by default times out after 500 msecs:
total$ = "" REPEAT RECEIVE dat$ FROM mynet IF LEN(dat$) > 0 THEN total$ = CONCAT$(total$, dat$) UNTIL ISFALSE(WAIT(mynet, 500))
So this may be too strict.
The 'wget' utility does have error correction and download resumes.
Regards Peter
|
|
|
Post by Pjot on Mar 5, 2011 15:36:20 GMT 1
So I have improved the 'fetch' program. Each first HTTP response mentions the size of the data to be downloaded. The 'fetch' utility now will crosscheck this information with the actual resulting filesize. If these does not match, it will try to download again, to a maximum of 3 times. If after 3 times the file cannot be downloaded, a warning is displayed and the file will be skipped. New program is here. Hopefully this will resolve any download issues. Regards Peter
|
|
|
Post by barryk on Mar 7, 2011 10:43:59 GMT 1
Peter, Thanks for fixing fetch!
|
|