[antlr-interest] Help with FishEye

Wincent Colaiuta win at wincent.com
Tue Jul 3 01:18:43 PDT 2007


El 3/7/2007, a las 4:21, Jim Idle escribió:

> Echoing others, it all works perfectly for me L. Sorry you are having
> problems. If you click the download arrow then you get the tgz (or at
> least I do).

I've had problems on occasions downloading tarballs from FishEye. I  
don't know whether it's just when they're under heavy load but  
sometimes the downloads get truncated. Unfortunately, this is a  
silent failure, the download simply stops, because the server doesn't  
include a content-length header (see example headers below) and so  
the downloading client has no way of knowing that the download was  
incomplete; it only knows that the connection closed.

$ curl -i http://fisheye2.cenqua.com/browse/~tarball=tbz2/antlr/ 
antlr.tbz2

HTTP/1.1 200 OK
Date: Tue, 03 Jul 2007 08:01:29 GMT
Server: Jetty(6.1.2rc1)
Last-Modified: Thu, 28 Jun 2007 23:44:54 GMT
Content-Type: application/x-bzip2
Content-Disposition: attachment; filename=tarball.tbz2
Via: 1.1 fisheye2.cenqua.com
Connection: close
Transfer-Encoding: chunked

The only way to know that you've got a partial download is when your  
attempt to extract the archive fails with an error.

To address this problem I download using wget combined with the -c/-- 
continue switch; if the archive doesn't extract then I just wget to  
try again until it works.

A much more serious issue, however, is that even when you apparently  
get the entire archive, sometimes there are files missing from it!  
About a week ago (r3839) when Jim pushed bunch of updates to the C  
target I tried to grab the tarball and discovered that some of the  
updated files weren't in the archive. My solution was to download the  
individual files from FishEye rather than a tarball, and copy them  
into the right spots in the ANTLR 3.0 source tree. From memory, the  
files that Jim updated were:

C.stg
AST.stg
CTarget.java

So I just copied over those manually. I just tried to reproduce the  
problem now (r3852) and it looks like it is still an issue:

$ wget -c "http://fisheye2.cenqua.com/browse/~tarball=tbz2/antlr/ 
antlr.tbz2"
--10:07:34--  http://fisheye2.cenqua.com/browse/~tarball=tbz2/antlr/ 
antlr.tbz2
            => `antlr.tbz2'
Resolving fisheye2.cenqua.com... 63.246.7.20
Connecting to fisheye2.cenqua.com|63.246.7.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-bzip2]

100% 
[======================================================================= 
=================>] 1,670,384     14.60K/s    ETA 00:00

10:14:29 (4.26 KB/s) - `antlr.tbz2' saved [1670384]

Note the size of the downloaded archive. It extracts without errors,  
but look at the entire contents of the codegen subdirectory... where  
are the C target templates?

src/org/antlr/codegen/ACyclicDFACodeGenerator.java
src/org/antlr/codegen/ActionTranslator.g
src/org/antlr/codegen/ActionTranslatorLexer.java
src/org/antlr/codegen/CPPTarget.java
src/org/antlr/codegen/CSharpTarget.java
src/org/antlr/codegen/CTarget.java
src/org/antlr/codegen/CodeGenerator.java
src/org/antlr/codegen/JavaTarget.java
src/org/antlr/codegen/ObjCTarget.java
src/org/antlr/codegen/PythonTarget.java
src/org/antlr/codegen/RubyTarget.java
src/org/antlr/codegen/Target.java
src/org/antlr/codegen/codegen.g
src/org/antlr/codegen/templates/ANTLRCore.sti
src/org/antlr/codegen/templates/CPP/CPP.stg
src/org/antlr/codegen/templates/CSharp/AST.stg
src/org/antlr/codegen/templates/CSharp/ASTDbg.stg
src/org/antlr/codegen/templates/CSharp/CSharp.stg
src/org/antlr/codegen/templates/CSharp/Dbg.stg
src/org/antlr/codegen/templates/CSharp/ST.stg
src/org/antlr/codegen/templates/Java/AST.stg
src/org/antlr/codegen/templates/Java/ASTDbg.stg
src/org/antlr/codegen/templates/Java/Dbg.stg
src/org/antlr/codegen/templates/Java/Java.stg
src/org/antlr/codegen/templates/Java/ST.stg
src/org/antlr/codegen/templates/ObjC/AST.stg
src/org/antlr/codegen/templates/ObjC/ASTDbg.stg
src/org/antlr/codegen/templates/ObjC/Dbg.stg
src/org/antlr/codegen/templates/ObjC/ObjC.stg
src/org/antlr/codegen/templates/Python/AST.stg
src/org/antlr/codegen/templates/Python/Python.stg
src/org/antlr/codegen/templates/Ruby/Ruby.stg

According to the FishEye web interface there should be there:

<http://fisheye2.cenqua.com/browse/antlr/src/org/antlr/codegen/ 
templates/C>

But they're not in the archive...

> I am using IE7, which for many people would mean it is
> doomed to fail although IE7 works perfectly for me. Maybe try right
> click and download target? Maybe it is your browser? Safari?
>
>
>
> I think that the Cenqua guys would also like to know why it isn't
> working for you as this is a commercial product, so provide them
> feedback! J

CC'ing the FishEye support email address on this post as they  
probably need to know about this thread. For reference, the online  
archive of the thread is at:

   <http://www.antlr.org/pipermail/antlr-interest/2007-July/ 
021981.html>

Cheers,
Wincent



More information about the antlr-interest mailing list