# BenchmarkTools not working in Julia 1.2?

**URL:** <https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334>\
**Category:** New to Julia\
**Created:** [November 21, 2019, 4:07am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334 "2019-11-21T04:07:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhb](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hhb](https://discourse.julialang.org/u/hhb)\
**Post date:** [November 21, 2019, 4:07am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334/1 "2019-11-21T04:07:10Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [November 21, 2019, 4:42am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334/2 "2019-11-21T04:42:53Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![hhb](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hhb](https://discourse.julialang.org/u/hhb)\
**Post date:** [November 21, 2019, 6:00am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334/3 "2019-11-21T06:00:56Z")

</div>

Thank you for your reply @pixel27

Update gave me:

```julia
  ]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

```julia
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.

---

<div class="post-metadata">

**Author:** ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)\
**Post date:** [November 21, 2019, 7:27am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334/4 "2019-11-21T07:27:10Z")

</div>

`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`.

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

```

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [November 21, 2019, 10:41am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334/5 "2019-11-21T10:41:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hhb](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hhb](https://discourse.julialang.org/u/hhb)\
**Post date:** [November 26, 2019, 5:06am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334/6 "2019-11-26T05:06:31Z")

</div>

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