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

Pristine initialize_project provides Warning and subsequent quickactivate does not work #377

Closed
mocalvao opened this issue Jan 10, 2023 · 2 comments

Comments

@mocalvao
Copy link

When I try to create a pristine project via:

julia> using DrWatson

julia> inititialize_project("test")

I get:

Warning: We couldn't rename default branch to main, please do it manually. We got error: │ UndefVarError: GitReference not defined

Nevertheless, the project files and directories are correctly (?) created and the new environment/project "test" is activated, as per the ] prompt ...

However, after restarting Julia, and trying:

julia> using DrWatson

julia> quickactivate(".")

I get:

Warning: DrWatson could not find find a project file by recursively checking given dirand its parents. Returningnothing instead. │ (given dir: )

and this time I do not end up in the new environment/project "test"...

My Julia version is 1.8.3 and DrWatson version is 2.12.1

@mocalvao
Copy link
Author

Sorry for the stupid question: I was using the quickactivate command from the wrong directory.

However, the annoying warning from the initialize_command still bugs me. Is it related to any other issue? Should I be concerned with it?

@Datseris
Copy link
Member

You shouldn't be concerned. One needs to use Git.jl as a proper git interface instead of the internal Lib2Git we use to make the git repo and attempt to rename it. Feel free to open a PR that fixes this, but the warning isn't worth a worry at the moment.

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