# Code not editable

**URL:** <https://forum.xojo.com/t/code-not-editable/70471>\
**Category:** General\
**Created:** [May 30, 2022, 6:20am UTC](https://forum.xojo.com/t/code-not-editable/70471 "2022-05-30T06:20:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [May 30, 2022, 6:20am UTC](https://forum.xojo.com/t/code-not-editable/70471/1 "2022-05-30T06:20:43Z")

</div>

Before 2022r1 I had that sometimes: I could search and edit the controls. But code became not editable.

Now with 2022r1 after every debug run I can’t edit the code anymore. It drives me bonkers. It happens on 2 computers.

Even the localised strings show up as not editable:

 ![Screen Shot 2022-05-30 at 08.02.11](https://forum.xojo.com/uploads/default/original/2X/c/cb2e67b5609558b2b8433525d5f38b742f779042.png)

After reloading the project the localised string are editable again:

 ![Screen Shot 2022-05-30 at 08.03.47](https://forum.xojo.com/uploads/default/original/2X/b/b4d7b23960f63031118461d519ef67812ef416b1.png)

Until the next debug run.

What is causing this behaviour? macOS High Sierra and Monterey.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [May 30, 2022, 3:14pm UTC](https://forum.xojo.com/t/code-not-editable/70471/2 "2022-05-30T15:14:49Z")

</div>

Is it just me having such fun?

My code is external items in xml.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [May 30, 2022, 4:10pm UTC](https://forum.xojo.com/t/code-not-editable/70471/3 "2022-05-30T16:10:07Z")

</div>

> [@Beatrix\_Willius](#):
>
> Is it just me having such fun?

I haven’t seen this, but I use text format for most of my projects unless I’m just working on an idea in a throw-away project, then it’s binary.

---

<div class="post-metadata">

**Author:** ![Martin\_T](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@Martin\_T](https://forum.xojo.com/u/Martin_T)\
**Post date:** [May 30, 2022, 4:13pm UTC](https://forum.xojo.com/t/code-not-editable/70471/4 "2022-05-30T16:13:04Z")

</div>

I had the same issue. Working with external files in a Xojo Project, edit some code of it and save the project file results into the fact, the code is no longer editable, until you close and re-open the Project again in Xojo.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [May 30, 2022, 4:13pm UTC](https://forum.xojo.com/t/code-not-editable/70471/5 "2022-05-30T16:13:36Z")

</div>

Ah. I don’t use external files anymore. That must be it.

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [May 30, 2022, 4:15pm UTC](https://forum.xojo.com/t/code-not-editable/70471/6 "2022-05-30T16:15:40Z")

</div>

You mean you change the content of a file containing, say, code, behind the back of the IDE? How can this be safe?

---

<div class="post-metadata">

**Author:** ![Steve\_Albin](https://forum.xojo.com/user_avatar/forum.xojo.com/steve_albin/32/180_2.png) [@Steve\_Albin](https://forum.xojo.com/u/Steve_Albin)\
**Post date:** [May 30, 2022, 4:20pm UTC](https://forum.xojo.com/t/code-not-editable/70471/7 "2022-05-30T16:20:30Z")

</div>

I have seen this on a few occasions - always when trying to edit an external item. Of course I thought it odd but I just rebooted Xojo and all went away. I’ll pay closer attention next time.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [May 30, 2022, 4:23pm UTC](https://forum.xojo.com/t/code-not-editable/70471/8 "2022-05-30T16:23:07Z")

</div>

I don’t think they’re editing it outside Xojo, but when they edit an external item inside Xojo, then Run/Build, the external item is no longer editable until reloaded.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [May 30, 2022, 4:26pm UTC](https://forum.xojo.com/t/code-not-editable/70471/9 "2022-05-30T16:26:02Z")

</div>

@Anthony_G_Cyphers : exactly.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [May 30, 2022, 4:28pm UTC](https://forum.xojo.com/t/code-not-editable/70471/10 "2022-05-30T16:28:53Z")

</div>

I looked for a case in Issues and didn’t find one. I’d encourage one of you experiencing this to open a case. That’s a pretty nasty bug.

---

<div class="post-metadata">

**Author:** ![DerkJ](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@DerkJ](https://forum.xojo.com/u/DerkJ)\
**Post date:** [May 30, 2022, 4:36pm UTC](https://forum.xojo.com/t/code-not-editable/70471/11 "2022-05-30T16:36:28Z")

</div>

What file type are the external items, we use xojo\_xml\_code and have never seen this.  
Could the base-folder be shared by icloud ?

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [May 30, 2022, 5:09pm UTC](https://forum.xojo.com/t/code-not-editable/70471/12 "2022-05-30T17:09:23Z")

</div>

I’m only using xojo\_xml\_code as file ending and there is no cloud involved.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [May 31, 2022, 12:16am UTC](https://forum.xojo.com/t/code-not-editable/70471/13 "2022-05-31T00:16:39Z")

</div>

Like others, I’ve seen this once in a while and it was never reproducible. I’ve even had external items, where I could edit the code, but the changes were not included when running the project, nor saved when I saved the project.

Restarting Xojo seemed to fix it.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [May 31, 2022, 10:38am UTC](https://forum.xojo.com/t/code-not-editable/70471/14 "2022-05-31T10:38:38Z")

</div>

@Sam_Rowlands : yup, that was quite some years ago. Lost the work of days.

I made a bug report: [Xojo: Account Login](https://tracker.xojo.com/xojoinc/xojo/-/issues/68753)

Ouch, the link is ugly.
