Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`
Solution 1
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 :
- Go to
File--> Preferences--> Setting
- Search for
Max Tokenization Length
- Change the default value to 2000000
I hope this will help
Related videos on Youtube
Kevbo
Updated on September 16, 2022Comments
-
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 about 3 yearsI 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.