Error GC failed post updating environment

error GC failed post updating environment(local environment as well as main julia environments)
how do i fix this ?

Precompiling project...
  46 dependencies successfully precompiled in 650 seconds (332 already precompiled)
[ Info: We haven't cleaned this depot up for a bit, running Pkg.gc()...
┌ Error: GC failed
│   exception =
│    TOML Parser error:
│    /home/nikhil/.julia/logs/manifest_usage.toml:820:1 error: invalid bare key character: '\0'
│      [["/home/nikhil/.julia/environments/v1.7/Manifest.toml"]]
│      ^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
└ @ Pkg /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/Pkg/src/Pkg.jl:644

https://github.com/JuliaLang/Pkg.jl/issues/2875

Easiest thing at the moment is probably to delete the file, unless you want to manually fix all errors. While Julia v1.9 should solve the issue by avoiding race conditions, what you can do right now is to avoid running multiple Pkg operations at the same time from different processes.

1 Like

Which file ? Manifest.toml ?

No, /home/nikhil/.julia/logs/manifest_usage.toml

1 Like