lunorian
Posts: 12
Joined: Tue Dec 26, 2017 1:57 pm

VS Code Errors

Sun Dec 31, 2017 4:23 pm

I installed VS Code from https://code.headmelted.com/ and any time that a syntax highlighter is available I get an error saying the mode has failed while tokenizing the input. This breaks the usefulness of VS Code. Has anyone else had this issue? Has anyone found a solution?
Image

hippy
Posts: 7739
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: VS Code Errors

Sun Dec 31, 2017 6:34 pm

I vaguely recall getting similar issues when I was developing a syntax highlighting package for use with VS Code. It could be that some files are wrong, missing or corrupt, have wrong line-endings or the like. As a package I'm not sure why something might not be right.

Trying Code-OSS from headmelted, installed some time ago, it seems to be working for me, highlighting C and Python code differently. Though does keep "recommending" for Python even though installed and being used :roll:

It may perhaps depend on how you installed Code-OSS. This is what I used -

viewtopic.php?t=191342

If you cannot resolve the issue you may have to contact headmelted or Microsoft as it likely isn't a Pi-related issue per se. What OS and Code-OSS version do you have ? Under Raspbian Stretch, Pi 3B, Help->About for me shows -

Version 1.14.0
Commit c5e3....
Date 2017-06-09....
Shell 1.6.6
Renderer 56.0.2924.87
Node 7.4.0

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: VS Code Errors

Sun Dec 31, 2017 8:48 pm

I'd ask the system builder - he's on Twitter @headmelted.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”