Parsing of functions really slow

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

which os, julia version and vscode version?

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
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

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

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

I recorded a video. I selected the loop and pressed STRG + ENTER.2020-01-23 10-54-29

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

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.

5 Likes

Yes, that was it. Thank you very much!