Skip to content
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 TS/JS language features" freezes app for too long on every restart. #65178

Closed
4s7r0 opened this issue Dec 16, 2018 · 14 comments
Closed
Assignees
Labels
javascript JavaScript support issues

Comments

@4s7r0
Copy link

4s7r0 commented Dec 16, 2018

Version: 1.30.0
Commit: c6e592b
Date: 2018-12-11T22:21:33.585Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.13.0-43-generic

Steps to Reproduce:

  1. Download VS Code
  2. Open a JavaScript file
@vscodebot
Copy link

vscodebot bot commented Dec 16, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the javascript JavaScript support issues label Dec 16, 2018
@4s7r0
Copy link
Author

4s7r0 commented Dec 16, 2018

Looks like someone is running around closing issues EXACTLY describing this issue by claiming they don't have enough info. Just tell me how to shut it off. I would rather the entire app be a basic text editor than have that extension slow my machine down one iota.

"typescript.validate.enable": false,
"javascript.validate.enable": false,

Didn't work for me.

@4s7r0
Copy link
Author

4s7r0 commented Dec 17, 2018

I even tried some other solutions posted elsewhere such as changing my jsconfig.json to:
{
"compilerOptions": {
"module": "es2015",
"target": "ES6",
"lib": ["es6"]
},
"exclude": [
"node_modules",
"**/node_modules/*"
]
}

@4s7r0
Copy link
Author

4s7r0 commented Dec 17, 2018

I believe this was caused by some theme I had installed. While the loading time is still long, it has reduced enough where I believe it's nominal on my super slow old hardware.

@4s7r0 4s7r0 closed this as completed Dec 17, 2018
@jaredbuttars
Copy link

jaredbuttars commented Dec 17, 2018

Same issue here. No themes installed.

Version: 1.30.0 (user setup)
Commit: c6e592b
Date: 2018-12-11T22:29:11.253Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Windows_NT x64 10.0.17134

initializing

@4s7r0
Copy link
Author

4s7r0 commented Dec 20, 2018

It might be the Sublime-Babel extension I'm using, which my theme then uses. But I've not had the time to open the devtools and profile the whole thing. Try code --disable-extensions and reply to this. If it still doesn't work, I'll reopen this issue and check it myself.

@eluchsinger
Copy link

Doesn't that also disable the JS/TS Language features?

@4s7r0
Copy link
Author

4s7r0 commented Dec 23, 2018

I think the important take-away here is that something(?) is affecting performance and it is not easy or clear to find the culprit. You can selectively allow extensions while disabling the rest, narrowing it down, but what would be better is something that automatically warned you there might be a problem with X-extension because it's taking a long time to finish doing whatever.

@epeterssen
Copy link

Same issue. Reverted to 1.25.1.

@4s7r0
Copy link
Author

4s7r0 commented Jan 3, 2019

After a very brief glance at the logs, my next guess is that the TS server launching is slowing some people's machines way down.

@jupiterben
Copy link

jupiterben commented Jan 24, 2019

here is how I fixed this issue : use procmon.exe to see what the code.exe is doing, in my machine it busy read/write files in a symbollink V2, so I delete the symblolink ( or exclude the symbolink in jsconfig.json) , restart code , then everything is fine.

@4s7r0
Copy link
Author

4s7r0 commented Jan 25, 2019

Can you (or anyone) post step by step instructions? Thanks.

@neeleshb
Copy link
Contributor

neeleshb commented Jan 26, 2019

This is still reproducible as on Jan-25-2019 (I'm on debian).

  1. Uninstall code completely.
    $ sudo apt get purge code
    $ rm -rf ~/.config/Code
    $ rm -rf ~/.vscode

  2. Install the latest stable build (1.30.2 as of this writing).
    $ sudo apt-get install code (not insiders).
    EDIT - The exact same issue is reproducible on insiders as well - 1.31.0-insider

  3. Launch VScode and open any significantly big existing project (200+ TS files). It it matters, I just open the folder, and not any "workspace".

  4. Open any file using the navigator on the left or by typing the file name in ^P. As soon as you open the file, the left portion of the bottom blue bar starts showing "Initializing JS/TS Language features". There are no errors or warnings. Just stick in initialization.

  5. The initialization did not complete for ~30 minutes after which I gave up.

Note: While the initialization is in progress, VS code is usable as a text editor, but anything associated with TS (imports / auto completion / cross reference / goto definition etc) do not work.

@jupiterben
Copy link

Can you (or anyone) post step by step instructions? Thanks.

I think there maybe some symbolic link cause infinity loop in your project folder, try exclude some folders in jsconfig.json

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

7 participants