# "else" in try-catch breaks cell-editor?

**URL:** https://discourse.julialang.org/t/else-in-try-catch-breaks-cell-editor/92563
**Category:** Pluto
**Created:** [January 5, 2023, 6:04pm UTC](https://discourse.julialang.org/t/else-in-try-catch-breaks-cell-editor/92563 "2023-01-05T18:04:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DOT](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DOT](https://discourse.julialang.org/u/DOT)
#### Post date: [January 5, 2023, 6:04pm UTC](https://discourse.julialang.org/t/else-in-try-catch-breaks-cell-editor/92563/1 "2023-01-05T18:04:50Z")

</div>

The new Julia-1.8 `else`-branch in `try`-`catch` seems to break the Pluto cell editor for me.

I’m on Julia 1.8.4 (macOS ARM), Pluto 0.19.19.

Does anybody else have this problem?

#### Reproducing it

I start a new Julia+Pluto session, create a new notebook, and copy-paste this into the first cell:

```julia-auto
begin
    try
        x = 7
    catch
        println("no")
    else
        println("yes")
    end
end

```

Then I run the cell – it prints “yes” into the mini-terminal, as expected.

Then I click the cursor into the cell and move it with the cursor-arrow-keys: The cursor jumps around.

With some more effort, you can make characters disappear. (Hint: Try typing the code above without the `begin`/`end`.)

---

<div class="post-metadata">

### Author: ![DOT](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DOT](https://discourse.julialang.org/u/DOT)
#### Post date: [March 16, 2023, 3:48pm UTC](https://discourse.julialang.org/t/else-in-try-catch-breaks-cell-editor/92563/2 "2023-03-16T15:48:16Z")

</div>

Update:  
Pluto 0.19.22 — still broken.

Does anybody know if there’s an Issue open for it?

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [March 16, 2023, 3:50pm UTC](https://discourse.julialang.org/t/else-in-try-catch-breaks-cell-editor/92563/3 "2023-03-16T15:50:02Z")

</div>

file an issue with Pluto people? [GitHub - fonsp/Pluto.jl: 🎈 Simple reactive notebooks for Julia](https://github.com/fonsp/Pluto.jl)

---

<div class="post-metadata">

### Author: ![Pangoraw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pangoraw/32/24719_2.png) [@Pangoraw](https://discourse.julialang.org/u/Pangoraw)
#### Post date: [October 30, 2023, 8:37pm UTC](https://discourse.julialang.org/t/else-in-try-catch-breaks-cell-editor/92563/4 "2023-10-30T20:37:06Z")

</div>

try-catch-else is now supported in [`Pluto@0.19.31`](https://github.com/fonsp/Pluto.jl/releases/tag/v0.19.31). In the future, do not hesitate to open an issue on the repository for missing features such as this one (I did not know about try-catch-else before randomly finding this post).
