Run parrallel computing code

I have met this issue when I need to run the Performance Overview code
GitError(Code:ENOTFOUND, Class:Config, config value ‘safe.directory’ was not found) Stacktrace: [1] macro expansion @ [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\error.jl:111](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/LibGit2/src/error.jl:111) [inlined] [2] LibGit2.GitRepo(path::String) @ LibGit2 [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\repository.jl:11](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/LibGit2/src/repository.jl:11) [3] #ensure_clone#2 @ [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\GitTools.jl:72](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/GitTools.jl:72) [inlined] [4] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec) @ Pkg.Types [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:752](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/Types.jl:752) [5] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.Types [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:822](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/Types.jl:822) [6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, IJulia.IJuliaStdio{Base.PipeEndpoint}, Tuple{Symbol}, NamedTuple{(:io,), Tuple{IJulia.IJuliaStdio{Base.PipeEndpoint}}}}) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:255](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:255) [7] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IJulia.IJuliaStdio{Base.PipeEndpoint}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:156) [8] add(pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:145) [9] #add#24 @ [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:143) [inlined] [10] add(pkg::Pkg.Types.PackageSpec) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:143) [11] top-level scope @ In[2]:1
could anyone help me ?

thanks

Hey, welcome to Julia discourse !

Can you be a bit more specific ?
What is the “Performance Overview code” ? :sweat_smile:
Also, how did you try to “run” it ? Show us some code !

so sorry :sweat_smile: I am doing Parallel Computing course

code:

import Pkg; Pkg.add(Pkg.PackageSpec(url=“GitHub - JuliaAcademy/JuliaAcademyData.jl: Supplementary materials for Julia Academy courses”))

using JuliaAcademyData; activate(“Parallel_Computing”)
i found this issue :
GitError(Code:ENOTFOUND, Class:Config, config value ‘safe.directory’ was not found) Stacktrace: [1] macro expansion @ [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\error.jl:111](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/LibGit2/src/error.jl:111) [inlined] [2] LibGit2.GitRepo(path::String) @ LibGit2 [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\repository.jl:11](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/LibGit2/src/repository.jl:11) [3] #ensure_clone#2 @ [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\GitTools.jl:72](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/GitTools.jl:72) [inlined] [4] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec) @ Pkg.Types [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:752](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/Types.jl:752) [5] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.Types [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:822](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/Types.jl:822) [6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, VSCodeServer.IJuliaCore.IJuliaStdio{Base.PipeEndpoint, typeof(VSCodeServer.io_send_callback)}, Tuple{Symbol}, NamedTuple{(:io,), Tuple{VSCodeServer.IJuliaCore.IJuliaStdio{Base.PipeEndpoint, typeof(VSCodeServer.io_send_callback)}}}}) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:255](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:255) [7] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::VSCodeServer.IJuliaCore.IJuliaStdio{Base.PipeEndpoint, typeof(VSCodeServer.io_send_callback)}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:156) [8] add(pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:145) [9] #add#24 @ [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:143) [inlined] [10] add(pkg::Pkg.Types.PackageSpec) @ Pkg.API [C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143](file:///C:/Users/profe/AppData/Local/Programs/Julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/API.jl:143) [11] top-level scope @ [c:\Users\profe\Downloads\015](file:///C:/Users/profe/Downloads/015) Julia is fast (1).ipynb:1

try with the exact github url :slight_smile:

julia> import Pkg; Pkg.add(url="https://github.com/JuliaAcademy/JuliaAcademyData.jl")

i got this ERROR: invalid git HEAD (reference ‘refs/heads/master’ not found)
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:69
[2] check_valid_HEAD(repo::LibGit2.GitRepo)
@ Pkg.GitTools C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\GitTools.jl:342
[3] (::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String})(repo::LibGit2.GitRepo)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:754
[4] with(f::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String}, obj::LibGit2.GitRepo)
@ LibGit2 C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\types.jl:1160
[5] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:752
[6] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:822
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:255
[8] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156
[9] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145
[10] #add#24
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[11] add
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[12] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:173
[13] top-level scope
@ REPL[2]:1

caused by: GitError(Code:EUNBORNBRANCH, Class:Reference, reference ‘refs/heads/master’ not found)
Stacktrace:
[1] macro expansion
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\error.jl:111 [inlined]
[2] head(repo::LibGit2.GitRepo)
@ LibGit2 C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\reference.jl:44
[3] check_valid_HEAD(repo::LibGit2.GitRepo)
@ Pkg.GitTools C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\GitTools.jl:340
[4] (::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String})(repo::LibGit2.GitRepo)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:754
[5] with(f::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String}, obj::LibGit2.GitRepo)
@ LibGit2 C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\types.jl:1160
[6] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:752
[7] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:822
[8] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:255
[9] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156
[10] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145
[11] #add#24
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[12] add
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[13] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:173
[14] top-level scope
@ REPL[2]:1

are you sure you run the code exactly as showed ?

Try also with

julia> Pkg.add(url="https://github.com/JuliaAcademy/JuliaAcademyData.jl", rev="main")

Yes but I got again this

ERROR: invalid git HEAD (reference ‘refs/heads/master’ not found)
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:69
[2] check_valid_HEAD(repo::LibGit2.GitRepo)
@ Pkg.GitTools C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\GitTools.jl:342
[3] (::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String})(repo::LibGit2.GitRepo)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:754
[4] with(f::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String}, obj::LibGit2.GitRepo)
@ LibGit2 C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\types.jl:1160
[5] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:752
[6] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:822
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:255
[8] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156
[9] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145
[10] #add#24
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[11] add
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[12] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::String, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:173
[13] top-level scope
@ REPL[3]:1

caused by: GitError(Code:EUNBORNBRANCH, Class:Reference, reference ‘refs/heads/master’ not found)
Stacktrace:
[1] macro expansion
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\error.jl:111 [inlined]
[2] head(repo::LibGit2.GitRepo)
@ LibGit2 C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\reference.jl:44
[3] check_valid_HEAD(repo::LibGit2.GitRepo)
@ Pkg.GitTools C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\GitTools.jl:340
[4] (::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String})(repo::LibGit2.GitRepo)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:754
[5] with(f::Pkg.Types.var"#57#58"{Pkg.Types.Context, Pkg.Types.PackageSpec, String}, obj::LibGit2.GitRepo)
@ LibGit2 C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\LibGit2\src\types.jl:1160
[6] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:752
[7] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:822
[8] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:255
[9] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156
[10] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145
[11] #add#24
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[12] add
@ C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined]
[13] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::String, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\profe\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:173
[14] top-level scope
@ REPL[3]:1

Your local clones directory appears to have been corrupted. Try wiping out the clones directory in your JULIA_DEPOT_PATH.

rm -rf ~/.julia/clones

I got this
ERROR: syntax: “/” is not a unary operator
Stacktrace:
[1] top-level scope
@ none:1

That’s a UNIX shell command. I see now that you are on Windows. Just delete the folder C:\Users\<username>\.julia\clones.

You can do this in Julia for a similar effect.

julia> rm(joinpath(DEPOT_PATH[1], "clones"); recursive=true)
1 Like