# Parsing of functions really slow

**URL:** <https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626>\
**Category:** VS Code\
**Created:** [January 21, 2020, 3:56pm UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626 "2020-01-21T15:56:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [January 21, 2020, 3:56pm UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/1 "2020-01-21T15:56:25Z")

</div>

Hey everyone,

In VSCode, when I select a function definition and press STRG + Enter, it takes really long until it fully hits the REPL. It starts flickering in the console and just strange in total. Does anyone else have this problem and how can I fix it?

This problem does not arise when using Shift + Enter, though

Thank you

---

<div class="post-metadata">

**Author:** ![Jakub\_Wronowski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jakub_wronowski/32/204030_2.png) [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)\
**Post date:** [January 21, 2020, 4:16pm UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/2 "2020-01-21T16:16:34Z")

</div>

which os, julia version and vscode version?

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [January 21, 2020, 4:17pm UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/3 "2020-01-21T16:17:23Z")

</div>

```julia
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Environment:
  JULIA_EDITOR = "C:\Users\Ilja\AppData\Local\Programs\Microsoft VS Code\Code.exe"
  JULIA_NUM_THREADS = 4

```

```julia
Version: 1.41.1 (user setup)
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Datum: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
Betriebssystem: Windows_NT x64 10.0.18363

```

---

<div class="post-metadata">

**Author:** ![Jakub\_Wronowski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jakub_wronowski/32/204030_2.png) [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)\
**Post date:** [January 21, 2020, 4:23pm UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/4 "2020-01-21T16:23:51Z")

</div>

sorry, right now I have only mac and linux, and it works fine form me, I have the same versions of julia and vscode

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [January 21, 2020, 4:29pm UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/5 "2020-01-21T16:29:11Z")

</div>

No problem, your help is still appreciated 🙂 As I said, Shift+ Enter seems to work fine, so I will that from now on.

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [January 23, 2020, 10:09am UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/6 "2020-01-23T10:09:57Z")

</div>

I recorded a video. I selected the loop and pressed STRG + ENTER. ![2020-01-23 10-54-29](https://global.discourse-cdn.com/julialang/original/3X/3/d/3d3947dfbfe8c6d21a8e9eb1651bf1d72db1b09f.gif)

@davidanthoff Did you see something like this before? Can I somehow help you fix this problem?

---

<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:** [January 23, 2020, 10:18am UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/7 "2020-01-23T10:18:16Z")

</div>

It might be OhMyREPL.jl’s fault.

The VSCode plugin doesn’t use bracket paste on Windows which means that pasting something is equivalent to typing it on the keyboard (just really fast). For each character, OhMyREPL re-highligts the whole text so it becomes O(n^2) in the number of characters when pasting something.

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [January 23, 2020, 10:24am UTC](https://discourse.julialang.org/t/parsing-of-functions-really-slow/33626/8 "2020-01-23T10:24:10Z")

</div>

Yes, that was it. Thank you very much!
