# Suddenly REPL in vscode becomes weird

**URL:** https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459
**Category:** VS Code
**Created:** [August 8, 2022, 4:57am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459 "2022-08-08T04:57:07Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![rmsmsgood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rmsmsgood/32/20544_2.png) [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)
#### Post date: [August 8, 2022, 4:57am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/1 "2022-08-08T04:57:07Z")

</div>

Usually i use `shift + enter` to excute my julia code line by line, but suddenly it dosen’t work. For example, if i excute `e = 1+1` then i had got following:

```julia
julia> e = 1+1
2

```

Now, i get following:

![image](https://global.discourse-cdn.com/julialang/original/3X/2/5/253779bf56c979e997b716620fcbe278a9143f95.png)

I don’t know why, and it’s very uncomfortable(`Plots` is the worst). How can i fix it?

ps. I guess ‘Shell integration’ is not relevent to this issue. I tried change configuration(changing unable that).

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 8, 2022, 7:22am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/2 "2022-08-08T07:22:21Z")

</div>

I can’t repro that. What OS are you on? What does “I tried change configuration(changing unable that).” mean? Did you restart the REPL after changing the setting?

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [August 8, 2022, 7:38am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/3 "2022-08-08T07:38:09Z")

</div>

This slightly reminds me if this

> <https://github.com/timholy/Revise.jl/issues/617>
>
> This started happening recently, I'll come back to the REPL after some time and …the next statement will throw the following error. Afterwards, each execution in the REPL returns the result of the previous statement which looks like this
> 
> \`\`\`julia
> julia\> 1 + 1
> 2 # from before
> 
> julia\> 1 + 2
> 2
> 
> julia\> 1 + 3
> 3
> 
> julia\> "hello"
> 4
> 
> julia\> "lag"
> "hello"
> \`\`\`
> 
> This is the error message:
> 
> \`\`\`julia
> ERROR: UndefVarError: TakeWhile not defined
> Stacktrace:
> \[1\] top-level scope
> @ ~\\.julia\\packages\\Compat\\QxKrF\\src\\iterators.jl:42
> Revise evaluation error at ┌ Warning: C:\\Users\\Krumbiegel\\.julia\\packages\\IntervalSets\\4SvUi\\ exists, deleted all methods
> └ @ Revise C:\\Users\\Krumbiegel\\.julia\\packages\\Revise\\VxkZO\\src\\packagedef.jl:650
> C:\\Users\\Krumbiegel\\.julia\\packages\\Compat\\QxKrF\\src\\iterators.jl:42
> 
> Stacktrace:
> \[1\] methods\_by\_execution!(recurse::Any, methodinfo::Revise.CodeTrackingMethodInfo, docexprspr}}, mod::Module, ex::Expr; mode::Symbol, disablebp::Bool, always\_rethrow::Bool, kwargs::Bas}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
> @ Revise ~\\.julia\\packages\\Revise\\VxkZO\\src\\lowered.jl:231
> \[2\] #eval\_with\_signatures#92
> @ ~\\.julia\\packages\\Revise\\VxkZO\\src\\packagedef.jl:463 \[inlined\]
> \[3\] instantiate\_sigs!(modexsigs::OrderedCollections.OrderedDict{Module, OrderedCollections.atableExpr, Union{Nothing, Vector{Any}}}}; mode::Symbol, kwargs::Base.Iterators.Pairs{Union{}dTuple{(), Tuple{}}})
> @ Revise ~\\.julia\\packages\\Revise\\VxkZO\\src\\packagedef.jl:471
> \[4\] instantiate\_sigs!
> @ ~\\.julia\\packages\\Revise\\VxkZO\\src\\packagedef.jl:468 \[inlined\]
> \[5\] maybe\_extract\_sigs!
> @ ~\\.julia\\packages\\Revise\\VxkZO\\src\\pkgs.jl:145 \[inlined\]
> \[6\] (::Revise.var"#44#45"{String})()
> @ Revise ~\\.julia\\packages\\Revise\\VxkZO\\src\\pkgs.jl:518
> \[7\] with\_logstate(f::Function, logstate::Any)
> @ Base.CoreLogging .\\logging.jl:491
> \[8\] with\_logger
> @ .\\logging.jl:603 \[inlined\]
> \[9\] watch\_manifest(mfile::String)
> @ Revise ~\\.julia\\packages\\Revise\\VxkZO\\src\\pkgs.jl:497
> \[10\] (::Revise.TaskThunk)()
> @ Revise ~\\.julia\\packages\\Revise\\VxkZO\\src\\types.jl:272
> 
> caused by: UndefVarError: TakeWhile not defined
> Stacktrace:
> \[1\] macro expansion
> @ ~\\.julia\\packages\\JuliaInterpreter\\lObtQ\\src\\interpret.jl:60 \[inlined\]
> \[2\] getargs(args::Vector{Any}, frame::JuliaInterpreter.Frame)
> @ JuliaInterpreter ~\\.julia\\packages\\JuliaInterpreter\\lObtQ\\src\\builtins.jl:8
> \[3\] maybe\_evaluate\_builtin(frame::JuliaInterpreter.Frame, call\_expr::Expr, expand::Bool)
> @ JuliaInterpreter ~\\.julia\\packages\\JuliaInterpreter\\lObtQ\\src\\builtins.jl:116
> \[4\] evaluate\_call\_recurse!(recurse::Any, frame::JuliaInterpreter.Frame, call\_expr::Expr; ent
> @ JuliaInterpreter ~\\.julia\\packages\\JuliaInterpreter\\lObtQ\\src\\interpret.jl:204
> \[5\] evaluate\_call\_recurse!
> @ ~\\.julia\\packages\\JuliaInterpreter\\lObtQ\\src\\interpret.jl:201 \[inlined\]
> \[6\] eval\_rhs(recurse::Any, frame::JuliaInterpreter.Frame, node::Expr)
> @ JuliaInterpreter ~\\.julia\\packages\\JuliaInterpreter\\lObtQ\\src\\interpret.jl:395
> \[7\] step\_expr!(recurse::Any, frame::JuliaInterpreter.Frame, node::Any, istoplevel::Bool)
> @ JuliaInterpreter ~\\.julia\\packages\\JuliaInterpreter\\lObtQ\\src\\interpret.jl:533
> \[8\] methods\_by\_execution!(recurse::Any, methodinfo::Revise.CodeTrackingMethodInfo, docexprs:r}}, frame::JuliaInterpreter.Frame, isrequired::Vector{Bool}; mode::Symbol, skip\_include::Boo
> @ Revise ~\\.julia\\packages\\Revise\\VxkZO\\src\\lowered.jl:440
> \`\`\`
> 
> \`\`\`julia
> Julia Version 1.6.0-rc1
> Commit a58bdd9010 (2021-02-06 15:49 UTC)
> Platform Info:
> OS: Windows (x86\_64-w64-mingw32)
> CPU: Intel(R) Xeon(R) W-2265 CPU @ 3.50GHz
> WORD\_SIZE: 64
> LIBM: libopenlibm
> LLVM: libLLVM-11.0.1 (ORCJIT, cascadelake)
> \`\`\`

But it is hard to say from your post if this may be related.

---

<div class="post-metadata">

### Author: ![rmsmsgood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rmsmsgood/32/20544_2.png) [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)
#### Post date: [August 8, 2022, 7:39am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/4 "2022-08-08T07:39:03Z")

</div>

Sorry for my english and enviroment check!

1. I repro on my two computers, windows 10 and 11 with same env: julia 1.7.3, vscode 1.70.0, julia extension v1.6.29.
2. The dots next to `julia>` are about ‘Shell integration’ feature and suddenly appeared(today), same time with issue, so i had guess that’s the problem. “I tried change configuration(changing unable that).” means that i turn off the ‘Shell integration’ option in vscode but doesn’t work.
3. Yes. To be clear, REPL itself has no trouble. When i type on REPL directly, the code are excuted well. If i excute with `ctrl+enter` or `shift+enter` in text editor, that occurs.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 8, 2022, 7:46am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/5 "2022-08-08T07:46:34Z")

</div>

Ah, turns out this only happens when the `julia.execution.resultType` setting is set to `both` or `REPL`. Change that to `inline` for now; we should have a fix released in a few hours.

---

<div class="post-metadata">

### Author: ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)
#### Post date: [August 8, 2022, 8:53am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/6 "2022-08-08T08:53:49Z")

</div>

In case it is useful to anyone: I also had to deactivate the `Code in REPL` option

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 8, 2022, 11:01am UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/7 "2022-08-08T11:01:40Z")

</div>

v1.6.30 fixes this issue and should be out now.

---

<div class="post-metadata">

### Author: ![hdavid16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hdavid16/32/11531_2.png) [@hdavid16](https://discourse.julialang.org/u/hdavid16)
#### Post date: [August 11, 2022, 4:48pm UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/8 "2022-08-11T16:48:20Z")

</div>

I’m on v1.6.30 and have `julia.execution.resultType` set to `both` and I am seeing incredible lags on printing to the REPL.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 11, 2022, 4:49pm UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/9 "2022-08-11T16:49:30Z")

</div>

> [@VSCode REPL hanging after a while](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/11):
>
> Disabling terminal.integrated.shellIntegration.enabled should fix this in the short-term.

should help with that.

---

<div class="post-metadata">

### Author: ![hdavid16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hdavid16/32/11531_2.png) [@hdavid16](https://discourse.julialang.org/u/hdavid16)
#### Post date: [August 19, 2022, 3:37pm UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/10 "2022-08-19T15:37:50Z")

</div>

Hi @pfitzseb, now that there is a new version of the julia extension, I wanted to try to get the shell integration back. I renabled the terminal shell integration, but the cicles next to the julia prompt in the REPL no longer appear. Any thoughts on how I can get this back? I see the space where the circles should be, but there are no circles. If I disable the shell integration, the space (indentation) where the circles should be disappear…

Here are my terminal settings in vscode:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/c/eccb48184d1ccf422cbc760f08b807db76b8553c.png)

Windows 10 OS  
julia-vscode extension v1.7.4  
Julia v1.8.0

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 19, 2022, 3:47pm UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/11 "2022-08-19T15:47:42Z")

</div>

I’ve disabled shell integration on Windows until we can figure out how to get performance up to snuff.

---

<div class="post-metadata">

### Author: ![hdavid16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hdavid16/32/11531_2.png) [@hdavid16](https://discourse.julialang.org/u/hdavid16)
#### Post date: [August 19, 2022, 3:48pm UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459/12 "2022-08-19T15:48:15Z")

</div>

Oh ok. sounds good. Thanks!
