Skip to content

on error, should flush stdout #30

Open

Description

@timotheecour

in both cases of #29, there's a flush missing:
the result of 1st echo isn't shown

whereas nim itself does flush:

nim c -o:app -r bugs/t59_array_index.nim
...
@["a", "b", "c"] # <= HERE
/Users/timothee/git_clone/nim/timn/bugs/t59_array_index.nim(3) t59_array_index
/Users/timothee/git_clone/nim/Nim/lib/system.nim(3597) []
/Users/timothee/git_clone/nim/Nim/lib/system.nim(2807) sysFatal
Error: unhandled exception: index out of bounds [IndexError]
Error: execution of an external program failed: './app '

Activity

  1. AndreiRegiani commented on Aug 5, 2018

    @AndreiRegiani
    Member

    Should be fixed now, can you verify?

  2. timotheecour commented on Aug 7, 2018

    @timotheecour
    ContributorAuthor

    @["a", "b", "c"] still not shown in inim 0.4.1

    inim -s=bugs/t59_array_index.nim
    👑 INim 0.4.1
    Nim Compiler Version 0.18.1 [MacOSX: amd64] at /Users/timothee/.nimble//bin/nim
    /Users/timothee/git_clone/nim/Nim/lib/system.nim(3597) []
    /Users/timothee/git_clone/nim/Nim/lib/system.nim(2807) sysFatal
    Error: unhandled exception: index out of bounds [IndexError]

    nim c -o:app -r bugs/t59_array_index.nim
    Hint: operation successful (12266 lines compiled; 0.382 sec total; 16.289MiB peakmem; Debug Build) [SuccessX]
    @["a", "b", "c"]
    /Users/timothee/git_clone/nim/timn/bugs/t59_array_index.nim(4) t59_array_index
    /Users/timothee/git_clone/nim/Nim/lib/system.nim(3597) []
    /Users/timothee/git_clone/nim/Nim/lib/system.nim(2807) sysFatal
    Error: unhandled exception: index out of bounds [IndexError]
    Error: execution of an external program failed: './app '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址