ChifiSource / Olive.jl

pure julia notebooks
MIT License
152 stars 6 forks source link

Feature suggestion: Redirect from exceptions #55

Open VarLad opened 1 year ago

VarLad commented 1 year ago

Since Olive can print errors, a cool thing to have would be to A good thing to have would be to:

  1. Click on the filenames in the stacktrace and it opens that file in a pane in Olive, possibly directly on the given line number
  2. If the file is already open, just point to the appropriate cell and line number
emmaccode commented 1 year ago

Since Olive can print errors, a cool thing to have would be to A good thing to have would be to:

  1. Click on the filenames in the stacktrace and it opens that file in a pane in Olive, possibly directly on the given line number
  2. If the file is already open, just point to the appropriate cell and line number

Ooooo, I like this, this would go nicely with the new Project/environment (and sub-projects which would go perfectly with this). I will milestone it!

emmaccode commented 1 year ago

Here is my idea for an approach to this, here is the StackFrame documentation: https://docs.julialang.org/en/v1/base/stacktraces/ We simply create a stack frame inside of the evaluation module, should be really straightforward :)