Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on error, should flush stdout #30

Open
timotheecour opened this issue Jul 18, 2018 · 2 comments
Open

on error, should flush stdout #30

timotheecour opened this issue Jul 18, 2018 · 2 comments
Projects

Comments

@timotheecour
Copy link
Contributor

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 '
@AndreiRegiani
Copy link
Member

Should be fixed now, can you verify?

@timotheecour
Copy link
Contributor Author

@["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 '

@0atman 0atman added this to Needs triage in Bug Triage Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Bug Triage
  
Needs triage
Development

No branches or pull requests

2 participants