BenchmarkTools not working in Julia 1.2?

Issuing

using Pkg; Pkg.add(“BenchmarkTools”)

Leads to the error

Updating registry at ~/.julia/registries/General
Updating git-repo https://github.com/JuliaRegistries/General.git
Resolving package versions…
Unknown package Compat found in the compatibility requirements of WebIO [0f1e0344]

I would appreciate any suggestion to remedy this.

This is Julia 1.2 on Cocalc.

Best

 Heinz

Something to try, hit ] to go into the package manager then enter update to update all your packages.

If that does work you could try ] to get into the package manager then remove WebIO which seems to be giving you the issue.

Something more “violent” to do would be running gc from the package manager…that will remove any unused modules…

Thank you for your reply @pixel27

Update gave me:

  ]update 
  `Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...`

`Unknown package Compat found in the compatibility requirements of WebIO [0f1e0344]`

I then tried ]remove WebIO but got

The following package names could not be resolved:
 * WebIO (not found in project or manifest)
Please specify by known `name=uuid`.

Any thoughts? I would somehow like to “reset” everything…

Thanks,

Heinz.

BenchmarkTools should work fine. There is probably something else wrong in your environment which is causing this error.

Have you tried pkg> instantiate --project; add BenchmarkTools?

If that doesn’t work, you can start from scratch by deleting the Project.toml and Manifest.toml files. You can find their location with status.

(TestEnv) pkg> status
    Status `~/.julia/environments/TestEnv/Project.toml` <-HERE

Your registry seems completely broken. I would delete it ‘registry rm General’ and add it again ‘registry add General’ (both in the pkg prompt)

1 Like

@kristoffer.carlsson and @00vareladavid
I was advised by the frankly cocalc people to delete .julia and this did the trick. Thanks so much! Heinz.