# Why am I getting the message Failed to Revise

**URL:** https://discourse.julialang.org/t/why-am-i-getting-the-message-failed-to-revise/84675
**Category:** Performance
**Tags:** question
**Created:** [July 23, 2022, 11:28am UTC](https://discourse.julialang.org/t/why-am-i-getting-the-message-failed-to-revise/84675 "2022-07-23T11:28:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Soldalma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soldalma/32/29388_2.png) [@Soldalma](https://discourse.julialang.org/u/Soldalma)
#### Post date: [July 23, 2022, 11:28am UTC](https://discourse.julialang.org/t/why-am-i-getting-the-message-failed-to-revise/84675/1 "2022-07-23T11:28:47Z")

</div>

I installed the package FinancialToolbox, and tested it as recommended:

```julia
Pkg.test("FinancialToolbox")

```

The package passed the test but there was a ‘Failed tp Revise’ message. There was a also a recommendation to try `Revise.retry()`, which I did. This is the outcome:

```julia
julia> Revise.retry()
┌ Error: Failed to revise C:\Users\fsald\.julia\packages\MbedTLS\bYd4w\src\ssl.jl
│ exception =
│ invalid redefinition of constant SSLContext
│ Stacktrace:
│ [1] top-level scope
│ @ C:\Users\fsald\.julia\packages\MbedTLS\bYd4w\src\ssl.jl:33
│ Revise evaluation error at C:\Users\fsald\.julia\packages\MbedTLS\bYd4w\src\ssl.jl:33
│ 
└ @ Revise C:\Users\fsald\.julia\packages\Revise\VskYC\src\packagedef.jl:708 

```

I do not know if this is important, but it would be nice to know why this is happening and what does it mean. Thanks for any hints.

---

<div class="post-metadata">

### Author: ![Krastanov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krastanov/32/6817_2.png) [@Krastanov](https://discourse.julialang.org/u/Krastanov)
#### Post date: [July 23, 2022, 1:08pm UTC](https://discourse.julialang.org/t/why-am-i-getting-the-message-failed-to-revise/84675/2 "2022-07-23T13:08:12Z")

</div>

`Revise` is a package used for interactive development of packages. If you do `using Revise; using MyPackage` then changes to the source code of `MyPackage` would be immediately reflected in the running Julia process (with some limitations), instead of having to restart Julia. A message like this appears when something fundamental was changed in `MyPackage` and `Revise` can not do a live update.

Did you on purpose import `Revise`? If not, it was probably part of your default environment (e.g. the Julia plugin for VSCode imports `Revise` behind the scene). If that is the case, just try this same procedure without `Revise` in a clean Julia REPL (e.g. by starting Julia from the terminal, not from VSCode).

If you are on purpose importing `Revise` because you want to use its interactive functionality… then I have no idea why this particular error is happening. **A test suite for a package is not supposed to be modifying other packages** (e.g. the `MbedTLS` package referred to in the error message). Something wrong is happening here, and I am sure either the `FinancialToolbox` or `Revise` developers would be interested in tracking the issue down.

---

<div class="post-metadata">

### Author: ![Soldalma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soldalma/32/29388_2.png) [@Soldalma](https://discourse.julialang.org/u/Soldalma)
#### Post date: [July 24, 2022, 12:05am UTC](https://discourse.julialang.org/t/why-am-i-getting-the-message-failed-to-revise/84675/3 "2022-07-24T00:05:04Z")

</div>

Thanks. I added `using Revise` and the problem was solved.
