Closed XavierGeerinck closed 2 years ago
Does this reproduce in the latest VS Code insiders build with all extensions disabled?
If it does, please share a project that demonstrates the issue
This reproduces in the latest build. Could it have to do with the number of files Pulumi must load (entire ARM spec of Azure)
Extension Loading Issue
Extension Output Log (on normal and insiders)
index.ts
This demonstrates the issue (after a while, while working with it and trying to get command completion, reproduced on Mac and Windows through WSL)
import * as pulumi from "@pulumi/pulumi/index.js";
import * as resources from "@pulumi/azure-native/resources/index.js";
export const glbLocation = config.get("glb-location");
export const glbProjectName = config.get("glb-project-name");
export const glbProjectEnv = config.get("glb-project-env"); // prd, stg, dev, tst, tmp, ...
// ======================================================================
// Create the main Resource Group
// ======================================================================
const resourceGroup = pulumi.all([glbLocation, glbProjectName, glbProjectEnv]).apply(([glbLocation, glbProjectName, glbProjectEnv]) => {
return new resources.ResourceGroup(`rg-${glbProjectName}-${glbProjectEnv}-`, {
location: glbLocation
});
})
package.json
{
"name": "demo",
"version": "1.0.0",
"type": "module",
"devDependencies": {
"@types/node": "^17.0.35",
"ts-node": "^10.9.1",
"typescript": "^4.8.3"
},
"dependencies": {
"@materializeinc/pulumi-docker-buildkit": "^0.1.17",
"@pulumi/azure-native": "^1.64.1",
"@pulumi/docker": "^3.2.0",
"@pulumi/pulumi": "^3.33.1",
"@pulumi/random": "^4.7.0"
}
}
Possibly #45788
Indeed sounds to be similar! Any progress that can be taken here?
These dependencies are outrageously huge.
Files: 1760
Lines of Library: 27734
Lines of Definitions: 2042802
Lines of TypeScript: 15
Lines of JavaScript: 0
Lines of JSON: 0
Lines of Other: 0
Nodes of Library: 117315
Nodes of Definitions: 4060813
Nodes of TypeScript: 85
Nodes of JavaScript: 0
Nodes of JSON: 0
Nodes of Other: 0
Identifiers: 1333201
Symbols: 741457
Types: 257231
Instantiations: 244628
Memory used: 1431511K
Assignability cache size: 7136
Identity cache size: 102
Subtype cache size: 13
Strict subtype cache size: 0
I/O Read time: 2.49s
Parse time: 6.57s
ResolveModule time: 0.57s
ResolveTypeReference time: 0.00s
Program time: 9.85s
Bind time: 2.72s
Check time: 7.26s
printTime time: 0.00s
Emit time: 0.00s
Total time: 19.82s
It’s almost all @pulumi/azure-native:
tsc index.ts --listFilesOnly
I think the first question is whether all those files need to be in the program given the deep import you did, and whether there's a deeper one that would eliminate some of them. @amcasey, do you have any advice for other steps to take?
Any update on this? As I am currently unable to use Typescript for IaC as it keeps on crashing
The performance we deliver is expected given the size of @pulumi/azure-native. They need to find a way to pull in fewer than two million lines of type definitions given a single deep import.
This issue has been marked as 'External' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
Type: Bug
While working with Pulumi the JS/TS extension keeps crashing and linting fails.
VS Code version: Code 1.71.1 (e7f30e38c5a4efafeec8ad52861eb772a9ee4dfb, 2022-09-08T19:56:36.424Z) OS version: Windows_NT x64 10.0.22622 Modes: Sandboxed: No Connection to 'wsl+ubuntu-20.04' could not be established Remote OS version: Linux x64 5.15.57.1-microsoft-standard-WSL2 Remote OS version: Linux x64 5.15.57.1-microsoft-standard-WSL2 Remote OS version: Linux x64 5.15.57.1-microsoft-standard-WSL2
System Info
|Item|Value| |---|---| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 3693)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|63.91GB (28.15GB free)| |Process Argv|--crash-reporter-id beacd23c-1e2a-4a57-83b4-47e5251c7520| |Screen Reader|no| |VM|0%| Connection to 'wsl+ubuntu-20.04' could not be established |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 5.15.57.1-microsoft-standard-WSL2| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 3693)| |Memory (System)|31.30GB (19.90GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 5.15.57.1-microsoft-standard-WSL2| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 3693)| |Memory (System)|31.30GB (19.90GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 5.15.57.1-microsoft-standard-WSL2| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 3693)| |Memory (System)|31.30GB (19.90GB free)| |VM|0%|
Extensions (34)
Extension|Author (truncated)|Version ---|---|--- jupyter-keymap|ms-|1.0.0 remote-containers|ms-|0.251.0 remote-ssh|ms-|0.84.0 remote-ssh-edit|ms-|0.80.0 remote-wsl|ms-|0.66.3 vscode-remote-extensionpack|ms-|0.21.0 material-icon-theme|PKi|4.20.0 mdx|sil|0.1.1 vscode-iot-device-cube|vsc|0.3.0 vscode-mysql-client2|cwe|5.7.12 copilot|Git|1.44.6735 copilot-labs|Git|0.2.221 rest-client|hum|0.25.1 vscode-uuid-generator|mot|0.4.1 vscode-azurefunctions|ms-|1.7.4 vscode-azurelogicapps|ms-|1.0.34 vscode-azureresourcegroups|ms-|0.5.5 vscode-bicep|ms-|0.10.61 vscode-docker|ms-|1.22.1 csharp|ms-|1.25.0 vscode-dotnet-runtime|ms-|1.5.0 python|ms-|2022.14.0 vscode-pylance|ms-|2022.9.10 jupyter|ms-|2022.8.1002431955 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 azure-account|ms-|0.11.1 prisma|Pri|4.3.1 azure-iot-edge|vsc|1.25.9 azure-iot-toolkit|vsc|2.17.0 azure-iot-tools|vsc|0.3.0 vscode-iot-device-cube|vsc|0.3.0 vscode-iot-workbench|vsc|0.16.0 vscode-proto3|zxh|0.5.5A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411cf:30557515 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 pylanb8912:30545647 vsclangdf:30486550 c4g48928:30535728 hb751961:30553087 dsvsc012cf:30540253 azure-dev_surveyone:30548225 i497e931:30553904 ```