Ticket #1826 (new feature request)

Opened 6 years ago

Last modified 4 months ago

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 Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

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

Changed 6 years ago by guest

  • cc iampure@… added

Changed 6 years ago by simonmar

  • milestone set to 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.

Changed 6 years ago by simonmar

  • os changed from Unknown to Multiple
  • component changed from Compiler to GHCi
  • architecture changed from Unknown to Multiple
  • milestone changed from 6.8 branch to 6.8.3

Changed 6 years ago by simonmar

  • difficulty changed from Unknown to Easy (1 hr)

Changed 5 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?

Changed 5 years ago by simonmar

Perhaps by checking whether the history is empty?

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

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

Changed 5 years ago by igloo

  • priority changed from normal to low
  • status changed from closed to reopened
  • resolution fixed deleted

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.

Changed 5 years ago by igloo

  • milestone changed from 6.8.3 to 6.10 branch

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 4 years ago by igloo

  • milestone changed from 6.10 branch to 6.12 branch

Changed 4 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)

Changed 3 years ago by igloo

  • milestone changed from 6.12 branch to 6.12.3

Changed 3 years ago by igloo

  • priority changed from low to normal
  • failure set to None/Unknown
  • milestone changed from 6.12.3 to _|_

Changed 4 months ago by morabbin

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

Note: See TracTickets for help on using tickets.