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

REPL does not have StyledStrings in its dependencies #53176

Closed
fatteneder opened this issue Feb 4, 2024 · 11 comments
Closed

REPL does not have StyledStrings in its dependencies #53176

fatteneder opened this issue Feb 4, 2024 · 11 comments
Labels
status:priority This should be addressed urgently stdlib:REPL Julia's REPL (Read Eval Print Loop)
Milestone

Comments

@fatteneder
Copy link
Contributor

From https://discourse.julialang.org/t/error-while-running-julia-executable/109699

I can reproduce this on 3d8b107. Likely caused by 6e7db14712efbacca0569b1ac25e5fd7484d8906..

@fatteneder fatteneder added the stdlib:REPL Julia's REPL (Read Eval Print Loop) label Feb 4, 2024
@fatteneder
Copy link
Contributor Author

fatteneder commented Feb 4, 2024

It works when using the locally built depot:

JULIA_DEPOT_PATH=<git-repo>/usr/share/julia ./julia

@KristofferC
Copy link
Sponsor Member

This is an annoying issue which comes from the combination of REPL not being in the sysimage and the active project being used to look up the dependencies. You can either use a temp depot like that, activate the v1.11 environment and do a resolve or delete it or we have to figure out a better solution.

@fatteneder
Copy link
Contributor Author

... , activate the v1.11 environment ...

This does not work, because REPL throws the same error when attempting using Pkg.
And ] doesn't do anything.

... or delete it ...

This works too.

@KristofferC
Copy link
Sponsor Member

This does not work, because REPL throws the same error when attempting using Pkg.

You need to load Pkg in this "empty" env as well.

@tecosaur
Copy link
Contributor

tecosaur commented Feb 4, 2024

rm ~/.julia/environments/v1.11/Manifest.toml && ./julia --startup-file=no should do it, no?

@ShrutiRDalvi
Copy link
Contributor

rm ~/.julia/environments/v1.11/Manifest.toml && ./julia --startup-file=no should do it, no?

This worked for me, thanks a lot

@KristofferC
Copy link
Sponsor Member

... should do it, no?

well yes, but then you get rid of all your package versions which you might not want

@nsajko
Copy link
Contributor

nsajko commented Feb 11, 2024

@vtjnash vtjnash added the status:priority This should be addressed urgently label Feb 12, 2024
@vtjnash vtjnash added this to the 1.11 milestone Feb 12, 2024
@staticfloat
Copy link
Sponsor Member

I think we should have a special mode for loading REPL and Pkg that attempts to do so with the given environment stack, and if it is unable to it prints a warning and uses only @stdlib. This way we still allow users to override their REPL and Pkg versions as needed, but if things are broken, you still get a functional Julia.

@inkydragon
Copy link
Sponsor Member

The nightly CI for SHA.jl also ran into this problem.

https://github.com/JuliaCrypto/SHA.jl/actions/runs/7967342891/job/21749961409?pr=105#step:5:47

@vtjnash vtjnash closed this as completed Mar 12, 2024
@vtjnash
Copy link
Sponsor Member

vtjnash commented Mar 12, 2024

Fixed by #53326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:priority This should be addressed urgently stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

8 participants