Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`

10,358

Solution 1

enter image description here

Apparently, just toggling the options for breakpoints on caught and uncaught exceptions causes it to fail... Doesn't make sense, but it works now.

Solution 2

I fixed this problem by increasing Max Tokenization Length in VSCode :

  1. Go to File--> Preferences--> Setting
  2. Search for Max Tokenization Length enter image description here
  3. Change the default value to 2000000

I hope this will help

Share:
10,358

Related videos on Youtube

Kevbo
Author by

Kevbo

Updated on September 16, 2022

Comments

  • Kevbo
    Kevbo over 1 year

    I'm at a loss here. I have a Node.js server built for my project and out of nowhere, I started getting this error when I try to run the server in VSCode:

    Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via editor.maxTokenizationLineLength.

    I had edited some of my functions in my controller before this started. I discarded all changes but the error still persists. I don't understand what has changed for this to happen. Any advice would be greatly appreciated.

    My code is here if you want to take a look https://github.com/Kevinclane/timeclock

  • Kevbo
    Kevbo about 3 years
    I tried to edit this as well and set it to a ridiculously large number and it was still failing. It turns it was just because I had selected for all breakpoints to be hit for caught and uncaught exceptions. I wasn't sure what it did and I selected it, then forgot all about it and couldn't figure out what was going on. Worked fine after I turned them off. Still seems strange that it would fail on that just by seeing the breakpoint though. Thank you for taking time to try to address this issue though! It is appreciated.