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

Use Base.fixup_stdlib_path in paths printed in e.g. ascend #328

Open
KristofferC opened this issue Jan 2, 2023 · 1 comment
Open

Use Base.fixup_stdlib_path in paths printed in e.g. ascend #328

KristofferC opened this issue Jan 2, 2023 · 1 comment

Comments

@KristofferC
Copy link
Collaborator

Right now, links to stdlibs are those of the build machine:

Choose possible caller of MethodInstance for Pkg.Types.Compat(::Pkg.Versions.VersionSpec, ::Any) or proceed to typed code:
 > "/Users/administrator/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-aarch64-1.0/build/default-macmini-aarch64-1-0/julialang/julia-master/usr/share/julia/stdlib/v1.10/Pkg/src/project.jl", read_project_compat: lines [66]
   Browse typed code

There is a Base.fixup_stdlib_path function that fixes this:

julia> Base.fixup_stdlib_path("/Users/administrator/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-aarch64-1.0/build/default-macmini-aarch64-1-0/julialang/julia-master/usr/share/julia/stdlib/v1.10/Pkg/src/project.jl")
"/Users/kristoffercarlsson/Downloads/julia-7a561bd6f0/share/julia/stdlib/v1.10/Pkg/src/project.jl"
@timholy
Copy link
Owner

timholy commented Jan 6, 2023

I've got a local fix for this in Cthulhu, I'll run it for a little while to make sure it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants