GetComponents has syntax errors

Issue #208 closed
Erik Schnetter created an issue

When I run GetComponents, it aborts due to syntax errors:

$ bin/GetComponents --status --root=. manifest/einsteintoolkit.th "my" variable $ret masks earlier declaration in same scope at bin/GetComponents line 520. "my" variable %svn_servers masks earlier declaration in same scope at bin/GetComponents line 524. "my" variable $base masks earlier declaration in same scope at bin/GetComponents line 524. syntax error at bin/GetComponents line 518, near "$base ~" syntax error at bin/GetComponents line 664, near "}" Execution of bin/GetComponents aborted due to compilation errors. eschnett@erik-schnetters-macbook-pro:~/EinsteinToolkit-hg-vanilla (15:04:45)

Keyword:

Comments (4)

  1. Eric Seidel
    • changed status to open
    • removed comment

    This is very strange. I ran the exact same command using the latest version of GetComponents from GitHub with no errors... Are you using the stock version of Perl shipped with OS X?

  2. Erik Schnetter reporter
    • removed comment

    No, I am running perl 5.8.9 installed via MacPorts. Stock perl is 5.10.

  3. Eric Seidel
    • changed status to resolved
    • removed comment

    Thanks for pointing this out. I have been using the stock perl 5.10, and apparently I used a syntax element that was not present in 5.8.9. I just submitted a fix to GitHub.

  4. Log in to comment