Opened 9 years ago

Last modified 4 years ago

#1826 new feature request

unable to list source for <exception thrown> should never occur

Reported by: guest Owned by:
Priority: normal Milestone:
Component: GHCi Version: 6.8.1
Keywords: Cc: iampure@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

I get the very unhelpful "unable to list source for <exception thrown>". I would like to get one of the following two responses, the last one is best.

Do this and that to list source
We currently cannot list source, because you did and that Do you still want to list source                although it requires to do that and that(for example automatically recompiling and reexecuting it until the same program point) [Y/n]?

Change History (16)

comment:1 Changed 9 years ago by guest

Cc: iampure@… added

comment:2 Changed 9 years ago by simonmar

Milestone: 6.8 branch

Ok, would this help?

Source location of exception is unknown, try `:back` and then `:list`.

or if you're not using :trace it would suggest doing that first.

comment:3 Changed 9 years ago by simonmar

Architecture: UnknownMultiple
Component: CompilerGHCi
Milestone: 6.8 branch6.8.3
Operating System: UnknownMultiple

comment:4 Changed 9 years ago by simonmar

difficulty: UnknownEasy (1 hr)

comment:5 Changed 9 years ago by igloo

I've improved the error, but I'm not sure how to tell if we are running with :trace; is there an easy way?

comment:6 Changed 9 years ago by simonmar

Perhaps by checking whether the history is empty?

comment:7 Changed 9 years ago by igloo

Resolution: fixed
Status: newclosed

Thanks; now fixed in 6.8 branch and HEAD, modulo #2054.

comment:8 Changed 9 years ago by igloo

Priority: normallow
Resolution: fixed
Status: closedreopened

Ah, so actually the :trace detection doesn't work if you :trace an already evaluated CAF, so sometimes the error will tell you to use :trace when you already are doing.

comment:9 Changed 9 years ago by igloo

Milestone: 6.8.36.10 branch

comment:10 Changed 8 years ago by simonmar

Architecture: MultipleUnknown/Multiple

comment:11 Changed 8 years ago by simonmar

Operating System: MultipleUnknown/Multiple

comment:12 Changed 8 years ago by igloo

Milestone: 6.10 branch6.12 branch

comment:13 Changed 7 years ago by simonmar

difficulty: Easy (1 hr)Easy (less than 1 hour)

comment:14 Changed 7 years ago by igloo

Milestone: 6.12 branch6.12.3

comment:15 Changed 7 years ago by igloo

Milestone: 6.12.3_|_
Priority: lownormal
Type of failure: None/Unknown

comment:16 Changed 4 years ago by morabbin

Bump; what's the state of :trace detection now?

Note: See TracTickets for help on using tickets.