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

Stack trace URL improvements #3038

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Oct 2, 2024

New features:

  • Clickable URLs for functions from packages (thanks to @adrhill !!)
  • Show package name for external functions
  • Icon to show that the link will open in a new tab
  • Some CSS tweaks

Example

image

Example

image

@fonsp fonsp added the frontend Concerning the HTML editor label Oct 2, 2024
Copy link
Contributor

github-actions bot commented Oct 2, 2024

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="stack-frame-url-imrpvoements")
julia> using Pluto

@fonsp
Copy link
Owner Author

fonsp commented Oct 2, 2024

The new URL code does not work on Julia 1.6, and I don't see an easy way to make it work :(

@fonsp
Copy link
Owner Author

fonsp commented Oct 2, 2024

It might be worth trying this code JuliaLang/julia#47709 (comment) ? RegistryInstances might be okay to add as a dep

@fonsp fonsp mentioned this pull request Oct 2, 2024
@fonsp fonsp added the error display How errors and stack traces are presented label Oct 3, 2024
@cstjean
Copy link

cstjean commented Nov 1, 2024

The clickable URL feature is what I'm talking about in #2737 (comment). I would selfishly prefer JULIA_EDITOR over an URL because

  • It works even if offline
  • It works for local packages
  • It's always pointing to the right line, even for old versions.
  • My editor is comfier than github.

I know you favor simplicity and what's-best-for-students, so I'm not going to get my hopes up. This PR as is looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error display How errors and stack traces are presented frontend Concerning the HTML editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants