Vscode: The mode has failed while tokenizing the input.

Created on 8 Jul 2016  路  12Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.3
  • OS Version: Linux Mint 17

Steps to Reproduce:

  1. Restarting the code gives the error mentioned in title.
  2. 2.
install-update linux

Most helpful comment

Did you upgrade from something other than v1.2.0? See #8876

Possible work around:

sudo rm -rf /usr/share/code/resources/app/node_modules/vscode-textmate/node_modules

All 12 comments

same here:

  • vs code 1.3
  • ubuntu 14.04

Trying deleting and fresh install ala: https://github.com/Microsoft/vscode/issues/5564

@tryangul I had it solved by removing and reinstalling. might work out for you.
sudo apt-get remove --purge code
Also, remove /usr/share/code and ~/.vscode
Reinstall again. It worked.

Did you upgrade from something other than v1.2.0? See #8876

Possible work around:

sudo rm -rf /usr/share/code/resources/app/node_modules/vscode-textmate/node_modules

Having the same problem on Windows here, trying reinstall

@elvarb can you create another issue with more details on this?

I had the same issue:
From about:

Version 1.3.0
Commit e724f269ded347b49fcf1657fc576399354e6703
Date 2016-07-07T16:50:12.291Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0

Running sudo rm -rf /usr/share/code/resources/app/node_modules/vscode-textmate/node_modules worked.

Same here, persisted through an update.

Version 1.5.3 currently and Ubuntu 16.04 LTS

Version 1.5.3
Commit 5be4091987a98e3870d89d630eb87be6d9bafd27
Date 2016-09-22T08:40:08.699Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0

Using the command posted by Zolomon fixed the issue.

sudo rm -rf /usr/share/code/resources/app/node_modules/vscode-textmate/node_modules

Going to close this off as you should only need to run the workaround once after upgrading from a pre-1.3 version:

sudo rm -rf /usr/share/code/resources/app/node_modules/vscode-textmate/node_modules

Having this issue on VS Code 1.12.1 @ Windows 10
I've made an addon with language support and it doesn't properly start. All I get is ther error.
There is no node_modules in vscode-textmate

@hipanda you should create a new issue, this was Linux specific.

@hipanda I was able to solve it on windows by running vscode as administrator.

@sha265 I'll give that a shot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrisdias picture chrisdias  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

trstringer picture trstringer  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

NikosEfthias picture NikosEfthias  路  3Comments