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

Unable to add devcontainer configuration files for 'datascience-python-r' #10716

Open
vbuzin opened this issue Feb 18, 2025 · 1 comment
Open
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@vbuzin
Copy link

vbuzin commented Feb 18, 2025

Configuration
OS: macOS Sequoia 15.3.1
VSCode: 1.97.2
Dev Containers Ext: 0.397.0

An attempt to add devcontainer configuration files to a workspace for 'datascience-python-r' results in the following:

[62 ms] Dev Containers 0.397.0 in VS Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447).
[62 ms] Initializing configuration support...
[63 ms] Internal initialization of dev container support package...
[7791 ms] Entering createDevContainerConfig_v2
[18588 ms] Preparing to apply Template 'ghcr.io/microsoft/datascience-py-r/datascience-python-r'
[18592 ms] Running Dev Containers CLI:   templates apply --workspace-folder /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884235244 --template-id ghcr.io/microsoft/datascience-py-r/datascience-python-r --template-args {} --features [] --tmp-dir /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-dir-1739884235244 --log-level debug --omit-paths []
[18630 ms] ProxyResolver#loadSystemCertificates count
[18632 ms] ProxyResolver#loadSystemCertificates count filtered
[18633 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/sbuzin/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js templates apply --workspace-folder /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884235244 --template-id ghcr.io/microsoft/datascience-py-r/datascience-python-r --template-args {} --features [] --tmp-dir /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-dir-1739884235244 --log-level debug --omit-paths []
[18777 ms] [2025-02-18T13:10:35.433Z] @devcontainers/cli 0.73.0. Node.js v20.18.1. darwin 24.3.0 arm64.
[18780 ms] [2025-02-18T13:10:35.436Z] Loading 19 extra certificates from /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/vsch/certificates-0a3c1e87cf2e7c1a5500fad469eb3d4125f0a8b5fad65b5d97fb0cf429701fe3.pem.
[19010 ms] [2025-02-18T13:10:35.666Z] Start: Run: docker-credential-desktop get
[19141 ms] [2025-02-18T13:10:35.797Z] Stop (131 ms): Run: docker-credential-desktop get
[20049 ms] [2025-02-18T13:10:36.705Z] Files to omit: 'devcontainer-template.json, README.md, NOTES.md'
[20092 ms] [Error: EACCES: permission denied, open '/var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884235244/.git/objects/0a/50104a2a92c3264e5aceb4680e1335ea290c4f'] {
[20092 ms]   errno: -13,
[20093 ms]   code: 'EACCES',
[20093 ms]   syscall: 'open',
[20093 ms]   path: '/var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884235244/.git/objects/0a/50104a2a92c3264e5aceb4680e1335ea290c4f'
[20093 ms] }
[20096 ms] Exit code 1
[362448 ms] Entering createDevContainerConfig_v2
[386455 ms] Preparing to apply Template 'ghcr.io/microsoft/datascience-py-r/datascience-python-r'
[386458 ms] Running Dev Containers CLI:   templates apply --workspace-folder /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884603112 --template-id ghcr.io/microsoft/datascience-py-r/datascience-python-r --template-args {} --features [] --tmp-dir /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-dir-1739884603112 --log-level debug --omit-paths []
[386459 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/sbuzin/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js templates apply --workspace-folder /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884603112 --template-id ghcr.io/microsoft/datascience-py-r/datascience-python-r --template-args {} --features [] --tmp-dir /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-dir-1739884603112 --log-level debug --omit-paths []
[386627 ms] [2025-02-18T13:16:43.282Z] @devcontainers/cli 0.73.0. Node.js v20.18.1. darwin 24.3.0 arm64.
[386630 ms] [2025-02-18T13:16:43.286Z] Loading 19 extra certificates from /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/vsch/certificates-0a3c1e87cf2e7c1a5500fad469eb3d4125f0a8b5fad65b5d97fb0cf429701fe3.pem.
[386866 ms] [2025-02-18T13:16:43.522Z] Start: Run: docker-credential-desktop get
[386972 ms] [2025-02-18T13:16:43.627Z] Stop (105 ms): Run: docker-credential-desktop get
[387886 ms] [2025-02-18T13:16:44.542Z] Files to omit: 'devcontainer-template.json, README.md, NOTES.md'
[387919 ms] [Error: EACCES: permission denied, open '/var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884603112/.git/objects/0a/50104a2a92c3264e5aceb4680e1335ea290c4f'] {
[387919 ms]   errno: -13,
[387919 ms]   code: 'EACCES',
[387919 ms]   syscall: 'open',
[387920 ms]   path: '/var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884603112/.git/objects/0a/50104a2a92c3264e5aceb4680e1335ea290c4f'
[387920 ms] }
[387921 ms] Exit code 1

The below doesn't change the outcome:

chmod -R a+rwx /var/folders/9c/jf14jkcs2h73kd28hq90gf3r0000gn/T/tmp-output-dir-1739884603112
@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Feb 18, 2025
@chrmarti
Copy link
Contributor

@minsa110 The ghcr.io/microsoft/datascience-py-r/datascience-python-r template seems to contain the entire workspace including the .git folder. I don't see an option on the devcontainers action for publishing the template to exclude or specifically include files. I suggest to move the files that should be part of the template package to a src subfolder and use that as the base-path-to-templates in the action's options.

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants