-
Notifications
You must be signed in to change notification settings - Fork 12.8k
JS error highlighting stops working in some cases #8212
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
Comments
From @nrkn on April 20, 2016 5:16 BTW, there are a ton of ways to fix the min case so that it works, like adding node_modules to the exclude in jsconfig.json - but none of these fixes helps in our full app. Am at quite the loss as to how to proceed. Please let me know if I can provide any more info. Intellisense is also down. |
@nrkn thanks a lot for this nice test case. I was able to reproduce this immediately. First analysis shows that the tsserver which is powering JavaScript language smartness throws on reading the project info. We need to do two things here:
|
@zhengbli can you take a look and see why tsserver is having issues with this repro? |
This looks like the old issue where when the files in Work around: edit the
|
Brilliant. Though I'd already tried using By knowing that this was the cause I was able to get error highlighting and intellisense back by aggressively adding more and more things to the exclude until they started working. Looking forward to being able to remove some of those things when this fix surfaces! |
@nrkn out of curiosity, what are the common folders that you need to exclude manually? Are these your source code files or libraries? |
@zhengbli our own source - now that I look over it to better answer your question, most of it can actually probably stay in |
From @nrkn on April 20, 2016 4:46
I have no extensions installed. node.js v5.10.1
Error highlighting has stopped working in our node.js app - I was able to reduce it to a very minimal test case:
A single index.js containing an erroneous line so you can see if error highlighting is on
A single subfolder containing a package.json with grunt and grunt-browserify packages and a node_modules folder created by running npm install against the package.json
Standard vscode files - .vscode/launch.json and jsconfig.json
Steps to Reproduce:
npm install
I have reproduced this on 3 machines
Almost any change to this minimum case, like removing the node_modules folder, removing
use strict
from the index.js etc., removing the vscode files etc. prevents the bug from being triggered, and error highlighting starts working again, however our app is not a minimal test case so knowing that isn't much help to us!Copied from original issue: microsoft/vscode#5530
The text was updated successfully, but these errors were encountered: