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

Error on new devcontainer configuration from codespace #3

Open
Malix-Labs opened this issue Apr 17, 2024 · 2 comments
Open

Error on new devcontainer configuration from codespace #3

Malix-Labs opened this issue Apr 17, 2024 · 2 comments

Comments

@Malix-Labs
Copy link

Malix-Labs commented Apr 17, 2024

In VSCode, from the default image (mcr.microsoft.com/devcontainers/universal:2), creating any new jupyter-datascience-notebooks devcontainer configuration throws an error

Reproduction Steps

  1. Create a new codespace (by default, it will be on mcr.microsoft.com/devcontainers/universal:2)
  2. Try to create a new devcontainer configuration with jupyter-datascience-notebooks (or any other)

Logs

Application of the template failed.

[DevContainerJsonSupport V] [2024-04-17T17:27:55.079Z] Preparing to apply Template 'ghcr.io/devcontainers-community/templates/jupyter-datascience-notebooks:latest'

[DevContainerJsonSupport V] [2024-04-17T17:27:55.086Z] Running Dev Containers CLI:   templates apply --workspace-folder /tmp/tmp-output-dir-1713374875080 --template-id ghcr.io/devcontainers-community/templates/jupyter-datascience-notebooks:latest --template-args {"baseVariant":"scipy-notebook","imageVariant":"latest"} --features [] --tmp-dir /tmp/tmp-dir-1713374875080 --log-level debug

[DevContainerJsonSupport V] [2024-04-17T17:27:55.088Z] Start: Run: /vscode/bin/linux-x64/e170252f762678dec6ca2cc69aba1570769a5d39/node /home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js templates apply --workspace-folder /tmp/tmp-output-dir-1713374875080 --template-id ghcr.io/devcontainers-community/templates/jupyter-datascience-notebooks:latest --template-args {"baseVariant":"scipy-notebook","imageVariant":"latest"} --features [] --tmp-dir /tmp/tmp-dir-1713374875080 --log-level debug

[Client:extension:417b:resolver:resolve:1:background-tasks:activity-monitor:vscode-activity-provider V] sending activity heartbeat
[Client:extension:417b:resolver:resolve:1:background-tasks:activity-monitor:vscode-activity-provider I] Executed notify-codespace-of-client-activity using gRPC
[Client:extension:417b:resolver:resolve:1:background-tasks:activity-monitor:vscode-activity-provider I] Activity signal sent with result true
[DevContainerJsonSupport V] [2024-04-17T17:27:55.433Z] [2024-04-17T17:27:55.432Z] @devcontainers/cli 0.56.2. Node.js v18.18.2. linux 6.2.0-1019-azure x64.

[DevContainerJsonSupport V] [2024-04-17T17:27:56.179Z] /home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6107

[DevContainerJsonSupport V] [2024-04-17T17:27:56.179Z]         return paths.every((q) => q[0] === fn) && dirs.every((q) => q[0] instanceof Set && q[0].has(fn));

[DevContainerJsonSupport V] [2024-04-17T17:27:56.179Z]                                    ^

[DevContainerJsonSupport V] [2024-04-17T17:27:56.179Z] TypeError: Cannot read properties of undefined (reading '0')

[DevContainerJsonSupport V] [2024-04-17T17:27:56.180Z]     at /home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6107:36

[DevContainerJsonSupport V] [2024-04-17T17:27:56.180Z]     at Array.every (<anonymous>)

[DevContainerJsonSupport V] [2024-04-17T17:27:56.180Z]     at check (/home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6107:22)

[DevContainerJsonSupport V] [2024-04-17T17:27:56.180Z]     at run (/home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6110:33)

[DevContainerJsonSupport V] [2024-04-17T17:27:56.181Z]     at /home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6150:31

[DevContainerJsonSupport V] [2024-04-17T17:27:56.182Z]     at Set.forEach (<anonymous>)

[DevContainerJsonSupport V] [2024-04-17T17:27:56.182Z]     at clear (/home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6150:14)

[DevContainerJsonSupport V] [2024-04-17T17:27:56.182Z]     at /home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6114:18

[DevContainerJsonSupport V] [2024-04-17T17:27:56.183Z]     at done (/home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6616:11)

[DevContainerJsonSupport V] [2024-04-17T17:27:56.183Z]     at /home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js:6708:11

[DevContainerJsonSupport V] [2024-04-17T17:27:56.185Z] Node.js v18.18.2

[DevContainerJsonSupport V] [2024-04-17T17:27:56.188Z] Stop (1100 ms): Run: /vscode/bin/linux-x64/e170252f762678dec6ca2cc69aba1570769a5d39/node /home/codespace/.vscode-remote/extensions/github.codespaces-1.16.19/dist/spec-node/devContainersSpecCLI.js templates apply --workspace-folder /tmp/tmp-output-dir-1713374875080 --template-id ghcr.io/devcontainers-community/templates/jupyter-datascience-notebooks:latest --template-args {"baseVariant":"scipy-notebook","imageVariant":"latest"} --features [] --tmp-dir /tmp/tmp-dir-1713374875080 --log-level debug

[DevContainerJsonSupport V] [2024-04-17T17:27:56.189Z] Exit code 1

@Malix-Labs
Copy link
Author

Hey, can this be escalated ?
It may be a greater issue than just Codespaces, given how its base image has common dependencies.

@david4096
Copy link

I also had this error trying to apply the template. I cannot use this dev container template currently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants