oilshell.org

Side By Side Lines Parsed? Parse Process Time (secs) Internal Parse Time (secs) Parsed Lines/sec Translated? Filename
view 531 OK 0.9 0.9 590.0 FAIL git-prompt.sh

stderr

Translating git-prompt.sh
        Traceback (most recent call last):
  File "bin/osh", line 469, in <module>
    main(sys.argv)
  File "bin/osh", line 452, in main
    sys.exit(OilMain(argv))
  File "bin/osh", line 435, in OilMain
    status = OshMain(main_argv, login_shell)
  File "bin/osh", line 350, in OshMain
    osh2oil.PrintAsOil(arena, node, opts.debug_spans)
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 69, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 473, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 632, in DoCommand
    self.DoCommand(child, new_local_symbols)
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 549, in DoCommand
    self.DoAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 463, in DoAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 820, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 989, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 999, in DoWordPart
    span_id = word.LeftMostSpanForPart(node)
  File "/home/andy/git/oil/bin/../core/word.py", line 105, in LeftMostSpanForPart
    return LeftMostSpanForWord(part.words[0])  # Hm this is a=(1 2 3)
IndexError: list index out of range