question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect errors shown when launching in remote container (Codespaces)

See original GitHub issue

Type: Bug

When a remote Codespaces container is built and loaded in VSCode for the first time, VSCode seems to be parsing task.json or recommending extensions in parallel with installing extensions in devcontainer.json. This leads to:

  1. False-positive errors printed out around parsing task.json (due to an extension installed type not being recognized), and
  2. Extension being recommended to be installed even though it is specified in devcontainer.json.

To reproduce:

VSCode browser:

  1. Go to https://github.com/Azure-Samples/todo-python-mongo
  2. Click on ‘Code’ -> Create Codespaces environment
  3. Wait for Codespaces environment to be fully available

VSCode desktop:

  1. Have Codespaces extension installed.
  2. Use Codespaces: New Container and select Azure-Samples/todo-python-mongo
  3. Wait for Codespaces environment to be fully available

Expected: VSCode should load without any errors.

Actual:

  1. In the terminal Output, errors printed our regarding "There is no registered task type ‘dotenv’. Even thought this dotenv task type is specified by an installed extension (azure-dev). image
  2. In the bottom right corner, a installer recommendations for “Azure Developer CLI” extension pops up. Screen Shot 2022-10-21 at 9 14 28 AM

That’s very peculiar, since the Azure Dev extension (with the same identifier) is already installed: Screen Shot 2022-10-21 at 9 19 57 AM

For more context: https://github.com/Azure/azure-dev/issues/951 https://github.com/Azure/azure-dev/issues/949

VS Code version: Code 1.71.1 (e7f30e38c5a4efafeec8ad52861eb772a9ee4dfb, 2022-09-08T19:56:36.424Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: No Connection to ‘codespaces+weikanglim-github-template-test-qvrq7wrxwxf45wp’ could not be established Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2 Remote OS version: Linux x64 5.4.0-1094-azure

System Info
Item Value
CPUs Intel® Core™ i9-10980XE CPU @ 3.00GHz (36 x 3000)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 63.73GB (28.11GB free)
Process Argv –crash-reporter-id 0ce79a4c-f4f8-4913-a92b-4597f5c231c8
Screen Reader no
VM 0%

Connection to ‘codespaces+weikanglim-github-template-test-qvrq7wrxwxf45wp’ could not be established

Item Value
Remote WSL: Ubuntu
OS Linux x64 5.10.102.1-microsoft-standard-WSL2
CPUs Intel® Core™ i9-10980XE CPU @ 3.00GHz (36 x 2999)
Memory (System) 49.99GB (47.96GB free)
VM 0%
Item Value
Remote Codespaces
OS Linux x64 5.4.0-1094-azure
CPUs Intel® Xeon® Platinum 8370C CPU @ 2.80GHz (4 x 2793)
Memory (System) 7.77GB (6.49GB free)
VM 0%
Extensions (30)
Extension Author (truncated) Version
codespaces Git 1.13.1
better-cpp-syntax jef 1.16.3
jupyter-keymap ms- 1.0.0
remote-containers ms- 0.255.4
remote-ssh ms- 0.90.1
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.66.3
kuskus-kusto-syntax-highlighting ros 1.1.21
vscode-eslint dba 2.2.6
codespaces Git 1.13.1
vscode-pull-request-github Git 0.50.0
azure-dev ms- 0.3.0
vscode-azureappservice ms- 0.24.5
vscode-azurefunctions ms- 1.8.3
vscode-azureresourcegroups ms- 0.5.6
vscode-azurestaticwebapps ms- 0.11.3
vscode-azurestorage ms- 0.15.0
vscode-azurevirtualmachines ms- 0.6.2
vscode-bicep ms- 0.11.1
vscode-cosmosdb ms- 0.19.2
vscode-docker ms- 1.22.2
vscode-dotnet-runtime ms- 1.5.0
python ms- 2022.16.1
vscode-pylance ms- 2022.11.10
jupyter ms- 2022.8.1002431955
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.9
azure-account ms- 0.11.2
azurecli ms- 0.5.0
vscode-node-azure-pack ms- 1.1.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848cf:30577861
nodejswelcome1cf:30587006
fc301958:30595537
2e4cg342:30596373

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexr00commented, Nov 10, 2022

@meganrogge you’re probably correct on the cause. I don’t recall seeing this before.

0reactions
meganroggecommented, Nov 10, 2022

I think this has probably been occurring for awhile and is now noticeable with this change that made automatic tasks run by default in trusted workspaces

https://github.com/microsoft/vscode/pull/165570

@alexr00 I see in the stack trace that the check for automatic tasks (via getWorkspaceTasks) is leading to this - presumably because the extension’s contributed tasks haven’t yet been registered.

Have you seen this before?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Tools Tips and Tricks - Visual Studio Code
Make sure Docker engine is installed on the remote machine and that Docker CLI works (run docker ps from the terminal and ensure...
Read more >
Shell server terminated (code: 126, signal: null) unable to find ...
Remote Containers : Show Logs ... Then tell vscode to try opening the project in a remote container again. It will be forced...
Read more >
How To Get Started with VS Code Development containers
This is not a problem new to the world of software and ... Step 1 — Install the Visual Studio Code Remote -...
Read more >
Error codes for Visual Studio Container Tools - Microsoft Learn
For example, if the active launch profile uses the wrong service action ( wrongAction ) as shown below, then you will see this...
Read more >
VS Code Remote / GitHub Codespaces Development ...
Press F1 , and select the Add Development Container Configuration Files... command for Remote-Containers or Codespaces. Pick one of the recommended definitions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found