Skip to content

excessiveStackTrace:on shows non-absolute file in stacktrace #7492

@timotheecour

Description

@timotheecour

stacktrace in 1 entry is non-absolute:
t05_excessiveStackTrace.nim(6) will_fail

#[ 
D20180403T183731
 ]#
proc test_assert_fail() =
  let x=1
  proc will_fail()=doAssert x+1 == 3
  will_fail()

test_assert_fail()
nim c --excessiveStackTrace:on -r bugs/t05_excessiveStackTrace.nim
Hint: used config file '/Users/timothee/homebrew/Cellar/nim/0.18.0_1/nim/config/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/.config/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/git_clone/nim/timn/nim.cfg' [Conf]
CC: t05_excessiveStackTrace
Hint: operation successful (11743 lines compiled; 0.277 sec total; 22.109MiB peakmem; Debug Build) [SuccessX]
/Users/timothee/git_clone/nim/timn/bugs/t05_excessiveStackTrace.nim(9) t05_excessiveStackTrace
/Users/timothee/git_clone/nim/timn/bugs/t05_excessiveStackTrace.nim(7) test_assert_fail
t05_excessiveStackTrace.nim(6) will_fail
/Users/timothee/homebrew/Cellar/nim/0.18.0_1/nim/lib/system.nim(3771) raiseAssert
/Users/timothee/homebrew/Cellar/nim/0.18.0_1/nim/lib/system.nim(2833) sysFatal
Error: unhandled exception: x + 1 == 3  [AssertionError]
Error: execution of an external program failed: '/Users/timothee/git_clone/nim/timn/bugs/t05_excessiveStackTrace '

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions