# Messed up environment UUID?

**URL:** <https://discourse.julialang.org/t/messed-up-environment-uuid/64651>\
**Category:** General Usage\
**Created:** [July 14, 2021, 5:15pm UTC](https://discourse.julialang.org/t/messed-up-environment-uuid/64651 "2021-07-14T17:15:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![orome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/orome/32/26965_2.png) [@orome](https://discourse.julialang.org/u/orome)\
**Post date:** [July 14, 2021, 5:15pm UTC](https://discourse.julialang.org/t/messed-up-environment-uuid/64651/1 "2021-07-14T17:15:33Z")

</div>

I’ve got some weird behavior with an environment: I renamed a file in the environment’s `src` and subsequently every time I tried to `add` or `dev` any _other_ package with the project activated, I got an error:

```bash
ERROR: expected the file `src/oldname.jl` to exist for package `myenvt` at .../myenvt `

```

It’s completely bizarre to me that should get an error like that about a renamed file when trying to add a package dependency, especially since the text `oldname` appears nowhere in the project. Even more mystifying to me, deleting the UUID from `myenvt`’s `Project.toml` fixed the problem.

What’s going in here. And how do I get a UUID back (if I need to)?

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [July 15, 2021, 9:16am UTC](https://discourse.julialang.org/t/messed-up-environment-uuid/64651/2 "2021-07-15T09:16:43Z")

</div>

That sounds like a Revise message; I’d restart your Julia session. (In general you can’t change package versions after loading a package into your Julia session; Revise attempts to allow you to do that but sometimes it is unable and a restart is still needed).

---

<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:** [July 15, 2021, 9:42am UTC](https://discourse.julialang.org/t/messed-up-environment-uuid/64651/3 "2021-07-15T09:42:13Z")

</div>

> [@orome](#):
>
> I renamed a file in the environment’s `src` and subsequently every time I tried to `add` or `dev` any _other_ package with the project activated, I got an error:

The whole project is resolved together so the fact that you tried to add some other packages doesn’t really matter.

> [@orome](#):
>
> especially since the text `oldname` appears nowhere in the project

It probably exists in the manifest file.

---

<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:** [July 15, 2021, 9:42am UTC](https://discourse.julialang.org/t/messed-up-environment-uuid/64651/4 "2021-07-15T09:42:26Z")

</div>

> [@ericphanson](#):
>
> That sounds like a Revise message;

I am quite sure it is a Pkg error message.

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [July 15, 2021, 9:48am UTC](https://discourse.julialang.org/t/messed-up-environment-uuid/64651/5 "2021-07-15T09:48:35Z")

</div>

Oh, thanks for the correction then!

---

<div class="post-metadata">

**Author:** ![orome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/orome/32/26965_2.png) [@orome](https://discourse.julialang.org/u/orome)\
**Post date:** [July 16, 2021, 3:41pm UTC](https://discourse.julialang.org/t/messed-up-environment-uuid/64651/6 "2021-07-16T15:41:27Z")

</div>

It’s `Pkg`, and it happens in a fresh session.
