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

Extensions won't install in amd64 devcontainer running on Apple Silicon #8541

Closed
blazewicz opened this issue May 24, 2023 · 14 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster

Comments

@blazewicz
Copy link

  • VSCode Version: 1.78.2
  • Local OS Version: macOS Ventura 13.3.1
  • Local chip architecture: Apple Silicon
  • Reproduces in: Remote - Containers
  • Name of Dev Container Definition with Issue:

Additional notes on local setup:

  • Docker Desktop v4.19.0
  • Virtualization framework enabled
  • File sharing implementation: VirtioFS
  • Use Rosetta for x86/amd64 emulation: enabled

Steps to Reproduce:

  1. Get Apple Silicon mac (M1, M2 etc.)
  2. Clone https://github.com/blazewicz/devcontainer-cross-arch
  3. Open in Container

This configuration will try to install GitLens extension, it will get stuck indefinitely:

Screenshot 2023-05-24 at 16 18 26

No errors appear, installation is simply stuck here.

Screenshot 2023-05-24 at 16 19 19

Manual installation with "Install in Dev Container: ..." also gets stuck in the same way:

Screenshot 2023-05-24 at 16 21 23

GitLens is not the only extension causing this error, I have observed the same issue with:

  • ms-python.vscode-pylance
  • ms-python.python
  • ms-azuretools.vscode-docker
  • bungcip.better-toml

Otherwise everything seems to be working fine.

Screenshot 2023-05-24 at 16 28 03

Not sure, but may be related to the issue with container running in 32-bit mode:

@Chuxel Chuxel transferred this issue from microsoft/vscode-dev-containers May 26, 2023
@chrmarti
Copy link
Contributor

chrmarti commented Jun 1, 2023

@blazewicz Does it work with 64-bit op-mode? (reading microsoft/vscode-dev-containers#1548 (comment))

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jun 1, 2023
@blazewicz
Copy link
Author

@blazewicz Does it work with 64-bit op-mode? (reading microsoft/vscode-dev-containers#1548 (comment))

Yes, in all other cases it works just fine. I can successfully install any extension using colima with --arch x86_64.

@sandy081
Copy link
Member

sandy081 commented Jun 1, 2023

Can you please enable the log level to trace F1 > Set Log Level... > Trace and share the logs again?

@blazewicz
Copy link
Author

Sure, here's a screenshot with the logs visible after setting log level to Trace:

Screenshot 2023-06-01 at 12 05 33

Last part of the log is showing ms-python.python because I tried to install it manually.

Here's is the contents of the log window in a text form: log.txt

What's interesting is that I did this twice and on the first time the GitLens extension was installed successfully. I tried to install Python extension manually and it didn't finish.

@sandy081
Copy link
Member

sandy081 commented Jun 1, 2023

Last part of the log is showing ms-python.python because I tried to install it manually.

What do you mean by installing manually?

Can you please try from the UI and share the following log?

  • F1 > Open View... > Remote

@blazewicz
Copy link
Author

What do you mean by installing manually?

By that I mean clicking the Install in Dev Container: ... button in the left pane of the UI. GitLens was configured to install automatically via devcontainer.json.

Here's the screenshot with the view that you requested:

Screenshot 2023-06-01 at 12 25 13

Also here's more detailed log I got from Dev Containers Developer: Show All Logs...: remoteContainers-2023-06-01T10-23-16.708Z.log

@sandy081
Copy link
Member

sandy081 commented Jun 1, 2023

Here's the screenshot with the view that you requested:

Thank you. But this is not what I requested. Can you please retry the action and share the following log?

  • F1 > Open View... > Remote Or Go to Output view in the bottom panel and look for Remote Log

@blazewicz
Copy link
Author

I'm sorry, I can't find Remote in view options for the Output panel. Only option called Remote refers to the side panel I sent the screenshot of.

Screenshot 2023-06-01 at 14 37 54

This is what I see in the drop down selector in the OUTPUT section of bottom panel:

Screenshot 2023-06-01 at 14 41 12

Did you mean Extension Host (Remote)?

@sandy081
Copy link
Member

sandy081 commented Jun 1, 2023

I am really sorry. I am looking for Server log

@blazewicz
Copy link
Author

No worries, here's the log: server_log_2023-06-01 12:43:19.log

@sandy081
Copy link
Member

/duplicate

microsoft/vscode#179827

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Jun 20, 2023
@vscodenpa
Copy link

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2023
@blazewicz
Copy link
Author

That is indeed the same problem and a working workaround was posted in the liked issue. I'll leave it here to spare some time to those who get here first.

Problem lays in the extension signature verification which can be disabled in Dev Container by adding following to devcontainer.json file:

{
    "customizations": {
        "vscode": {
            "settings": {
                "extensions.verifySignature": false
            }
        }
    }
}

source: microsoft/vscode#179827 (comment)

@ChristianRich
Copy link

Amazing thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Aug 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants