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
JS/TS Crashing on Pulumi File #50809
Comments
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.
It’s almost all @pulumi/azure-native:
The output
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
canvas_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
Connection to 'wsl+ubuntu-20.04' could not be established
Extensions (34)
A/B Experiments
The text was updated successfully, but these errors were encountered: