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 JS/TS language features BUT NEVER STOPS! #124561

Closed
RVFET opened this issue May 25, 2021 · 9 comments
Closed

Initializing JS/TS language features BUT NEVER STOPS! #124561

RVFET opened this issue May 25, 2021 · 9 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@RVFET
Copy link

RVFET commented May 25, 2021

I even tried to disable the JS/TS extension but it doesn't work neither.
resim
resim

  • Issue Type: Bug
  • Extension Name: typescript-language-features
  • Extension Version: 1.0.0
  • OS Version: Windows_NT x64 10.0.18363
  • VS Code version: 1.56.2

================ EDIT ================

First of all Im not using "Volar" or any other Vue releated plugin.

All the plugins that I have are (see the images below) :
resim
resim
resim

The problem not happens everytime I open vscode but most of the time.
By the way I'm pretty sure once I tried disabling all extensions including JS/TS extension which causes the problem but it doesn't helped (When I click disable JS/TS it didn't worked but others were disabled).

{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 26,
		"activateCallTime": 3,
		"activateResolvedTime": 1,
		"activationReason": {
			"startup": false,
			"extensionId": {
				"value": "vscode.typescript-language-features",
				"_lower": "vscode.typescript-language-features"
			},
			"activationEvent": "onLanguage:jsonc"
		}
	},
	"runtimeErrors": []
}
@bartenra
Copy link

bartenra commented May 25, 2021

I am having the same problem after updating to 1.56.2

I'm seeing this in the Typescript debug log:

[Trace  - 09:03:15.563] <syntax> Canceled request with sequence number 2
[Trace  - 09:03:46.39] <semantic> Canceled request with sequence number 5
[Trace  - 09:03:48.183] <semantic> Canceled request with sequence number 6

@bartenra
Copy link

Actually, my issue is an interaction between Volar and @headlessui/vue.

@mjbvz
Copy link
Collaborator

mjbvz commented May 25, 2021

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

/needsMoreInfo

@johnsoncodehk

This comment has been minimized.

@johnsoncodehk
Copy link
Contributor

johnsoncodehk commented May 26, 2021

The problem is TS server freeze by special invalid content. And that is valid Vue content, but add to TS server by getExternalFiles api.

Repro (Note here no any vue file): https://github.com/johnsoncodehk/ts-extension-freeze-repro

(Also added a patching for this problem in volar 0.25.13.)

@Seefer
Copy link

Seefer commented May 26, 2021

I'm a web-dev newcomer and can reproduce this problem. It only seems to happen if I'm using VS Code in a project for simply learning Javascript that does not have any NPM packages, just one HTML file that links to a javascript file. In another project with just these two files but also using NPM packages and containing node_modules and a package.json, I briefly get the JS/TS language initializing message before it completes and vanishes. However, if I then delete the node_modules folder and the package.json in that folder and open the folder in VS Code again, the JS/TS initializing message just spins and spins and does not complete. Is this expected behaviour?

I've since discovered adding a jsconfig.json to the project root prevents the initializing message from constantly appearing. If the initialization does start it's too quick for me to see before it vanishes from the status bar.

I used the following in the jsconfig.json file:

{
  "compilerOptions": {
    "module": "es2020",
    "target": "es6"
  }
} 

VS Code version: Code 1.56.2 (054a929, 2021-05-12T17:13:13.157Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 x 3696)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.89GB (20.68GB free)
Process Argv F:\01-Projects\5-NodeJS\roman-numeral --crash-reporter-id 39706a1d-47ad-4451-8289-40dab0b1bf44
Screen Reader no
VM 0%
Extensions (59)
Extension Author (truncated) Version
html-snippets abu 0.2.1
armview ben 0.4.5
htmltagwrap bra 0.0.7
path-intellisense chr 2.3.0
vscode-eslint dba 2.1.20
docs-authoring-pack doc 0.1.13
githistory don 0.6.16
es7-react-js-snippets dsz 3.1.1
gitlens eam 11.4.1
EditorConfig Edi 0.16.4
vscode-npm-script eg2 0.3.21
prettier-vscode esb 6.4.0
vscode-language-babel mgm 0.0.31
git-graph mhu 1.30.0
file-downloader min 1.0.11
azure-pipelines ms- 1.183.0
vscode-azureappservice ms- 0.22.0
vscode-azureresourcegroups ms- 0.4.0
vscode-azurestorage ms- 0.12.0
vscode-azurevirtualmachines ms- 0.4.0
vscode-bicep ms- 0.3.539
vscode-cosmosdb ms- 0.16.0
vscode-docker ms- 1.13.0
csharp ms- 1.23.11
vscode-dotnet-runtime ms- 1.1.0
vscode-edge-devtools ms- 1.1.9
python ms- 2021.5.842923320
vscode-pylance ms- 2021.5.3
jupyter ms- 2021.6.832593372
remote-containers ms- 0.177.2
remote-ssh ms- 0.65.4
remote-ssh-edit ms- 0.65.6
remote-ssh-explorer ms- 0.55.0
remote-wsl ms- 0.56.3
vscode-remote-extensionpack ms- 0.21.0
azure-account ms- 0.9.8
azurecli ms- 0.5.0
cpptools ms- 1.3.1
powershell ms- 2021.2.2
typescript-javascript-grammar ms- 0.0.55
vs-keybindings ms- 0.2.1
vscode-node-azure-pack ms- 0.2.1
vsliveshare ms- 1.0.4272
vsliveshare-audio ms- 0.1.91
vsliveshare-pack ms- 0.4.0
azurerm-vscode-tools msa 0.15.1
debugger-for-chrome msj 4.12.12
debugger-for-edge msj 1.0.15
advanced-new-file pat 1.2.2
material-icon-theme PKi 4.7.0
vscode-yaml red 0.19.2
live-sass rit 3.0.0
LiveServer rit 5.6.1
vscode-fileutils sle 3.4.5
ms-teams-vscode-extension Tea 2.0.1
windows-terminal Tyr 0.6.1
vscodeintellicode Vis 1.2.14
vscode-icons vsc 11.4.0
JavaScriptSnippets xab 1.8.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt700cf:30270857
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt943:30300582
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30286553
vscgsv2ct:30307505
vscorehov:30302759
bridgeflight:30302069
vscod805:30301674

@bartenra
Copy link

The problem is TS server freeze by special invalid content. And that is valid Vue content, but add to TS server by getExternalFiles api.

Repro (Note here no any vue file): https://github.com/johnsoncodehk/ts-extension-freeze-repro

(Also added a patching for this problem in volar 0.25.13.)

@mjbvz Reproduction above. Is that enough info? :)

@RVFET
Copy link
Author

RVFET commented Jun 16, 2021

I really don't know what to add more than all above informations, so Im closing the issue (although it is not completely fixed, it still jums up sometimes randomly).

@RVFET RVFET closed this as completed Jun 16, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants
@Seefer @mjbvz @johnsoncodehk @RVFET @bartenra and others