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

Base.ACTIVE_PROJECT is not intialized correctly in windows systems. #57479

Open
RefatIsmail96 opened this issue Feb 20, 2025 · 2 comments
Open

Comments

@RefatIsmail96
Copy link

I’ve encountered an issue with the initialization of the Base.ACTIVE_PROJECT variable in Julia on windows system. Specifically, the unsafe_string(Base.JLOptions().project) call in the Base.init_active_project function generates a load path with lowercase directory paths (e.g., c:\Users\...) for the active project. However, this causes a mismatch when compared to other paths (generated elsewhere) which are capitalized (e.g., C:\Users\...).

Windows is case-insensitive, but having a standardized way of representing path would avoid this mismatch. I encountered the issue while using CondaPkg.jl.

@KristofferC
Copy link
Member

How is the active project set? With an environment variable or with a command line flag or with Pkgs activate?

@vtjnash
Copy link
Member

vtjnash commented Feb 20, 2025

The standardized way is to call samefile. While uppercase drive is probably more canonical, it is fairly difficult to ensure that paths are fully "canonicalized" with all of the places they come from and can be altered by

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

3 participants