# Sometimes the font color of \`julia\>\` in the VSCode REPL will become yellow

**URL:** <https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808>\
**Category:** VS Code\
**Tags:** question\
**Created:** [July 9, 2024, 6:49am UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808 "2024-07-09T06:49:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [July 9, 2024, 6:49am UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808/1 "2024-07-09T06:49:32Z")

</div>

Sometimes the font color of `julia>` in the VSCode REPL will become yellow:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/9/7922482d563177fad9cbd4e6896584d91cae2054.png)  
Normal:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/0/e0a575dbeb5811fdd19c051c92d77d1f410021c8.png)

I know when there are some errors in the code it will become yellow, but sometimes it still keeps yellow even I have fixed the errors.

---

<div class="post-metadata">

**Author:** ![savq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/savq/32/22063_2.png) [@savq](https://discourse.julialang.org/u/savq)\
**Post date:** [July 9, 2024, 7:15am UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808/2 "2024-07-09T07:15:54Z")

</div>

Revise.jl will change the color of the prompt if it finds an error that prevents it from working. Unfortunately this is not documented at all 😑

It usually also shows a warning indicating that it’s a revise problem, and that you should try running `Revise.retry()`. Though I don’t know why that doesn’t appear in this case.

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [July 9, 2024, 7:23am UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808/3 "2024-07-09T07:23:08Z")

</div>

Thank you! Although nothing has changed after I ran `Revise.retry()` 🤝 😀

![image](https://global.discourse-cdn.com/julialang/original/3X/3/7/37b0df57dc587acae6299c7be20d38be9e755a62.png)

---

<div class="post-metadata">

**Author:** ![tecosaur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tecosaur/32/23206_2.png) [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Post date:** [July 9, 2024, 7:31am UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808/4 "2024-07-09T07:31:03Z")

</div>

There are a few reasons is can stay yellow, one is if you switched to another REPL mode when it was fixed. Similarly, if you enter another REPL mode and a revise error occurs that mode can become yellow instead. Once this mixup has occurred, it has to be manually fixed or the Julia REPL restarted.

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [July 9, 2024, 8:05am UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808/5 "2024-07-09T08:05:00Z")

</div>

Oh, so it is! Thank you very much! 🤝

But I’m not ready to restart the REPL for quite some time, because there is  
important data in it that I haven’t found a proper way to save… 🥲

---

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [July 9, 2024, 12:58pm UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808/6 "2024-07-09T12:58:00Z")

</div>

> [@WuSiren](#):
>
> I haven’t found a proper way to save

I have heard it can be unreliable, but JDL2.jl has worked fine for me for short-term data storage: save variables to file, restart REPL, load variables from file, continue.

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [July 9, 2024, 2:55pm UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808/7 "2024-07-09T14:55:22Z")

</div>

Yes, I’m aware of it. thanks! But unfortunately, I have been just faced with a situation that it can’t save&load a trained model successfully. 🥴
