Skip to content

activate in the wrong current working directory #4189

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

Open
PatrickHaecker opened this issue Mar 17, 2025 · 1 comment
Open

activate in the wrong current working directory #4189

PatrickHaecker opened this issue Mar 17, 2025 · 1 comment

Comments

@PatrickHaecker
Copy link

I regularly waste a bit of time because when I want to activate an environment, I need to give the path. As the absolute path is often long, I need to provide the relative one which means I need to check which is the current working directory. This is not a show-stopper, but a flow-stopper :-).

Sometimes, I manage to get it wrong and therefore activate a non-existing directory, happily add a package to the environment and spend the next minutes with debugging errors which do not fit my mental model.

Can't we just check all packages which are already added or developed when only a package name without any path information is provided for activate and activate that existing environment even if it is not in the current working directory?

I think this is probably what we want in more than 99% of the cases. In the remaining cases where you already have a package Package and want to create a new environment in the current directory with the same name, you could still activate ./Package in the package REPL.

@PatrickHaecker
Copy link
Author

This would mirror the $PATH behavior in most operating systems (. not in the $PATH) on the shell, so should feel familiar to most users:

  • If you want to start a process, just enter the binary and $PATH is being searched for it.
  • When you really want to start something in the current directory, you use an explicit path like ./julia.

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

1 participant