-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Initializing js/ts language features never completes #79380
Comments
/needsMoreInfo |
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue. Happy Coding! |
VS Code version: 1.37.1 Extensions (problem exists with all disabled): Steps to reproduce: Symptoms:
appears in the statusbar, which never disappears. As @brunoscopelliti mentioned the issue presents with the exact same symptoms as all of the other times it's been reported and closed previously (normally for insufficient information, or just locked with no explanation). |
Have you configured a custom TypeScript version in your workspace? Are you loading a file on a network drive? |
Hi @mjbvz No, the files are all on the local hard drive. There aren't any workspace settings at all, nor have I made any effort to set up TypeScript beyond installing the TSLint extension. |
Please try collecting the TS Server log:
If you can share the log, I can also take a look to see if anything stands out
|
Also @electric-skeptic, open a separate issue |
I confirm, I encounter the same issue. |
I'm sure we all have the same symptoms, as of the same version. Opening new issues divides the attention each issue gets, so it seems like we should contribute data to the same issue, otherwise devs get annoyed and close them as duplicates, which even the bot is noticing, or due to lack of further detail. We end up with the situation where people can see dozens of inadequately addressed, closed issues about this problem and are complaining about poor issue moderation instead of contributing to progress on it. |
Generic problems like this often have multiple different root causes and it is much easier for us to track each one individually. Otherwise we end up in exactly the situation we have now where multiple people chime in with +1 without providing any additional context and it is difficult to track their individual problems or follow up with them properly So instead of complaining, please open a separate issue and share the logs on it as I requested |
I am sorry, I cannot share the log cause it is proprietary code. |
|
No
No
Don't know, at the moment I'm working full time on a single project.
React web app, backend is in node
It's not that simple, cause I don't immediately notice the error. But I can try. |
Can you please try opening some other simple js projects to see if the issue is specific to the project you are working on? Also, can you share the logs privately with us? Without logs or repo steps, it is not really possible to investigate this effectively |
How? |
I have this issue as well (if anyone is interested?) Occurs in: Version: 1.37.1 (user setup) Using: WSL 2 with Ubuntu and the remote - WSL extension (0.39.2) output of log: https://gist.github.com/atlefren/0d261c06fc609d32f43a1c016f8c2921 seems to work sometimes, other times not.. Also tried to reproduce in Insiders, but there the WSL remote is borked atm.. |
@brunoscopelliti You can email them directly or a link to them if they are too large: matb AT microsoft. As I said, we only use the logs to diagnose issues like this |
Follow up: Now testing with a fresh install of Insiders (1.38.0-insider) (all config wiped, both on win and wsl side). Code reports ts v 3.6.1-rc, but I've also tried the "workspace version" (3.3.3333). Everything seemed to work fine untill npm install completed, which immediately triggered the "Initializing js/ts language features" message. I would not say I have an unreasonable amount of dependencies (for a typescript project), about 40 or so.. It seems like the log from ts server has this as its last line:
My guess is that the ts analyzer (or whatever it's called) has a hard time reading all the contents of node_modules due to some issue. Not sure if it's that fact that the folder is large (318 MB), or that WSL2 is slow, or that the disk itself is slow. One thing worth mentioning is that the folder is on my win drive, mapped to wsl. Things seems to work as expected when I checkout the repo in wsl and run it from there. Thus: my guess is that the issue is related to the combination of a slow wsl2 disk access to a win drive and a (rather) large and complex node_modules |
It is possible that you are experienceing this because of microsoft/TypeScript#21136. Thanks @mjbvz! |
@hisankaran Not sure if this question is directed at me, but unless some of my dependencies downloads this kind of file it is not the case. |
@atlefren No, that was a general suggestion for anyone who are landing on this issue. I got the exact same logs that you posted, and my node_modules is excluded for explorer. my test dir had all sorts of sample videos and audios, I tried moving that away from project and it worked. So, may be you should try excluding your node_modules from explorer. |
@hisankaran I understand. What do you mean by "excluded for explorer"? |
Got you. My watcher exclude is similar to your screenshot, but thanks for the suggestion. In my case I am rather certain that this has something to to with WSL2 interop in some way |
Closing as we have not heard back from the OP recently and cannot investigate without more information |
I've just installed version 1.37.1.
It seems there has been a regression on this issue: #68896.
The text was updated successfully, but these errors were encountered: