-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: The mode has failed while tokenizing the input #29216
Comments
I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: |
@peterhinners Does the console show anything? ( |
@bpasero Thank you for the suggestion. I tried it and am still getting the error. @alexandrudima Great suggestion. This happens for any file by the way. What I see in the console is the following (and it continues to appear repeatedly... I had like 13,000 instances of this error before I closed it): [IPC Library: Watcher] Error: watch /home/cfe/projects/ContentStream/api/app/vendor/jms/parser-lib/src/JMS ENOSPC |
Thank you @peterhinners for getting back to us. I believe the ENOSPC error messages in the console are a red herring, and possibly unrelated to the initial error message -- it is a known problem for our file watcher under Linux -- #7950 . I believe the solution is to increase the maximum watchers in inotify . Once you get rid of the file watcher noise in the console, could you please check the console again, hopefully more information about the exception will be present there. |
@alexandrudima Thank you for your continued help... I increased the watchers and am indeed getting a different message now: shell.ts:439 /lib/x86_64-linux-gnu/libc.so.6: version |
@peterhinners Would this help? @Tyriar Is there a way for us to express that we need |
@alexandrudima yes and we currently do this for .rpm packages https://github.com/Microsoft/vscode/blob/master/resources/linux/rpm/dependencies.json#L54 - for .deb this is covered by #13089 |
VSCode Version: code-insiders_1.14.0-1498021996_amd64.deb
OS VErsion: Debian GNU/Linux 7.11
Steps to Reproduce:
Edit any file
You should then see an error popup, and you see this on the window gaining focus:
"The mode has failed while tokenizing the input"
I have tried uninstalling and reinstalling. Have also tried the same with the standard vs code (not insiders). Have also tried the trick mentioned in other forums to no avail (sudo rm -rf /usr/share/code/resources/app/node_modules/vscode-textmate/node_modules).
Any suggestions? Many thanks
The text was updated successfully, but these errors were encountered: