vscode | Visual Studio Code | Code Editor library

 by   microsoft TypeScript Version: 1.77.0 License: MIT

kandi X-RAY | vscode Summary

vscode is a TypeScript library typically used in Editor, Code Editor, Electron, Visual Studio Code applications. vscode has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.
Visual Studio Code
    Support
      Quality
        Security
          License
            Reuse
            Support
              Quality
                Security
                  License
                    Reuse

                      kandi-support Support

                        summary
                        vscode has a medium active ecosystem.
                        summary
                        It has 144291 star(s) with 25194 fork(s). There are 3201 watchers for this library.
                        summary
                        There were 10 major release(s) in the last 6 months.
                        summary
                        There are 6355 open issues and 147113 have been closed. On average issues are closed in 45 days. There are 366 open pull requests and 0 closed requests.
                        summary
                        It has a neutral sentiment in the developer community.
                        summary
                        The latest version of vscode is 1.77.0
                        vscode Support
                          Best in #Code Editor
                            Average in #Code Editor
                            vscode Support
                              Best in #Code Editor
                                Average in #Code Editor

                                  kandi-Quality Quality

                                    summary
                                    vscode has no bugs reported.
                                    vscode Quality
                                      Best in #Code Editor
                                        Average in #Code Editor
                                        vscode Quality
                                          Best in #Code Editor
                                            Average in #Code Editor

                                              kandi-Security Security

                                                summary
                                                vscode has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
                                                vscode Security
                                                  Best in #Code Editor
                                                    Average in #Code Editor
                                                    vscode Security
                                                      Best in #Code Editor
                                                        Average in #Code Editor

                                                          kandi-License License

                                                            summary
                                                            vscode is licensed under the MIT License. This license is Permissive.
                                                            summary
                                                            Permissive licenses have the least restrictions, and you can use them in most projects.
                                                            vscode License
                                                              Best in #Code Editor
                                                                Average in #Code Editor
                                                                vscode License
                                                                  Best in #Code Editor
                                                                    Average in #Code Editor

                                                                      kandi-Reuse Reuse

                                                                        summary
                                                                        vscode releases are available to install and integrate.
                                                                        vscode Reuse
                                                                          Best in #Code Editor
                                                                            Average in #Code Editor
                                                                            vscode Reuse
                                                                              Best in #Code Editor
                                                                                Average in #Code Editor
                                                                                  Top functions reviewed by kandi - BETA
                                                                                  kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
                                                                                  Currently covering the most popular Java, JavaScript and Python libraries. See a Sample Here
                                                                                  Get all kandi verified functions for this library.
                                                                                  Get all kandi verified functions for this library.

                                                                                  vscode Key Features

                                                                                  Visual Studio Code

                                                                                  vscode Examples and Code Snippets

                                                                                  No Code Snippets are available at this moment for vscode.
                                                                                  Community Discussions

                                                                                  Trending Discussions on vscode

                                                                                  FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command
                                                                                  chevron right
                                                                                  What is jsconfig.json
                                                                                  chevron right
                                                                                  Couldn't start dlv dap
                                                                                  chevron right
                                                                                  fastlane: [!] Google Api Error: Invalid request - Package not found: com.example.todo
                                                                                  chevron right
                                                                                  in Typescript, try...catch error object shows "Object is of type 'unknown'.ts(2571)"
                                                                                  chevron right
                                                                                  Visual Studio Code "Error while fetching extensions. XHR failed"
                                                                                  chevron right
                                                                                  cannot install "code": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap
                                                                                  chevron right
                                                                                  Fix issue With VS Code: yellow orange border box around characters
                                                                                  chevron right
                                                                                  Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader - Vue 3
                                                                                  chevron right
                                                                                  GitHub Codespaces: how to set x86_64, AMD64, ARM64 platform?
                                                                                  chevron right

                                                                                  QUESTION

                                                                                  FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command
                                                                                  Asked 2022-Apr-03 at 15:24

                                                                                  Flutterfire just added a CLI for us to use but I'm having a problem with the flutterfire configure command. I keep getting this error:

                                                                                  i Found 0 Firebase projects. Selecting project liveasy-1. FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command. COMMAND: firebase --version ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.

                                                                                  Even though I've installed the firebase CLI and can run firebase --version with no issues . I installed the standalone binary and when that didn't work I installed it with npm as well. I can login and see my projects list but running flutterfire configure seems to be an issue. I can't also access any firebase commands in vscode.

                                                                                  I'm I supposed to add something to the PATH in environmental variables? I've already added the cache/bin/ where flutterfire resides but I don't know how to do the same for firebase.

                                                                                  ANSWER

                                                                                  Answered 2021-Dec-20 at 05:58

                                                                                  For solving the standalone issue part of your question:

                                                                                  1 copy the downloaded .exe to your flutter project folder

                                                                                  2 rename it from firebase-tools-instant-win to just firebase (exe)

                                                                                  3 run "firebase login" from cmd line in the folder where you put the .exe and continue with flutterfire configure

                                                                                  This is a quick setup for a single project, if you plan to use firebase cli across multiple projects, you need to rename and move the .exe to a suitable location and fix env/paths issues.

                                                                                  Source https://stackoverflow.com/questions/70410843

                                                                                  QUESTION

                                                                                  What is jsconfig.json
                                                                                  Asked 2022-Mar-29 at 17:49

                                                                                  If i search the same question on the internet, then i'll get only links to vscode website ans some blogs which implements it.

                                                                                  I want to know that is jsconfig.json is specific to vscode or javascript/webpack?

                                                                                  What will happen if we deploy the application on AWS / Heroku, etc. Do we have to make change?

                                                                                  ANSWER

                                                                                  Answered 2021-Aug-06 at 04:10

                                                                                  This is definitely specific to VSCode.

                                                                                  The presence of jsconfig.json file in a directory indicates that the directory is the root of a JavaScript Project. The jsconfig.json file specifies the root files and the options for the features provided by the JavaScript language service.

                                                                                  Check more details here: https://code.visualstudio.com/docs/languages/jsconfig

                                                                                  You don't need this file when deploy it on AWS/Heroku, basically, you can exclude this from your commit if you are using git repo, i.e., add jsconfig.json in your .gitignore, this will make your project IDE independent.

                                                                                  Source https://stackoverflow.com/questions/68675994

                                                                                  QUESTION

                                                                                  Couldn't start dlv dap
                                                                                  Asked 2022-Mar-27 at 18:53

                                                                                  When I launch in VSCode dlv dap debug, I get this message:

                                                                                  Couldn't start dlv dap:
                                                                                  Error:timed out while waiting for DAP server to start
                                                                                  

                                                                                  I already have launch configurations for the project:

                                                                                  lunch.json:

                                                                                  {
                                                                                  "version": "0.2.0",
                                                                                  "configurations": [
                                                                                      {
                                                                                          "name": "Launch file",
                                                                                          "type": "go",
                                                                                          "request": "launch",
                                                                                          "mode": "debug",
                                                                                          "program": "${workspaceFolder}",
                                                                                          "showLog": true,
                                                                                          "env": {
                                                                                              "GO111MODULE": "on"
                                                                                          }
                                                                                      }
                                                                                  ]
                                                                                  }
                                                                                  

                                                                                  and setting.json is :

                                                                                  {
                                                                                  "folders": [
                                                                                      {
                                                                                          "path": "."
                                                                                      }
                                                                                  ],
                                                                                  "settings": {
                                                                                      "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
                                                                                      "go.autocompleteUnimportedPackages": true, 
                                                                                      "go.gocodePackageLookupMode": "go",
                                                                                      "go.gotoSymbol.includeImports": true,
                                                                                      "go.useCodeSnippetsOnFunctionSuggest": true,
                                                                                      "explorer.confirmDelete": false,
                                                                                      "go.formatTool": "goimports",
                                                                                      "go.docsTool": "gogetdoc",
                                                                                      "go.buildFlags": [],
                                                                                      "explorer.confirmDragAndDrop": false,
                                                                                      "window.zoomLevel": 0.8,
                                                                                      "editor.minimap.enabled": false,
                                                                                      "go.useLanguageServer": true,
                                                                                      "go.delveConfig":{
                                                                                          "debugAdapter":"dlv-dap"
                                                                                          },
                                                                                      "[go]": {
                                                                                          "editor.snippetSuggestions": "none",
                                                                                          "editor.formatOnType": true,
                                                                                          "editor.formatOnSave": true,
                                                                                          "editor.codeActionsOnSave": {
                                                                                              "source.organizeImports": true
                                                                                          }
                                                                                      },
                                                                                      "gopls": {
                                                                                          "experimentalWorkspaceModule": true,
                                                                                          "usePlaceholders": true, // add parameter placeholders when completing a function
                                                                                          "completionDocumentation": true // for documentation in completion items
                                                                                      }
                                                                                  },
                                                                                      
                                                                                  }
                                                                                  

                                                                                  The structure of the project is shown in the figure:

                                                                                  ANSWER

                                                                                  Answered 2021-Aug-13 at 15:50

                                                                                  You might have some luck switching the delveConfig to use legacy mode:

                                                                                      "go.delveConfig":{
                                                                                          "debugAdapter":"legacy"
                                                                                          }
                                                                                  

                                                                                  My team and I recently began seeing the same issue after updating VSCode. There's a little more info on this setting here: https://go.googlesource.com/vscode-go/+/HEAD/docs/debugging.md#switching-to-legacy-debug-adapter, but I believe root cause (if this does indeed solve your issue) is going to be your version of Golang is not the version targeted by dlv-dap. Anything below Go version 1.15 needs to use legacy mode, and the latest version of the delve debugger happens to skip legacy mode by default now.

                                                                                  I also needed to kill VSCode before this change took effect. According to the dlv-dap docs, you can also force it into legacy mode by switching launch.json's mode to "remote", so there's likely a few (maybe better) ways to resolve this issue.

                                                                                  Source https://stackoverflow.com/questions/68753251

                                                                                  QUESTION

                                                                                  fastlane: [!] Google Api Error: Invalid request - Package not found: com.example.todo
                                                                                  Asked 2022-Mar-20 at 02:27

                                                                                  I am using React-native for my app. I have named my name reactamplify. I want to deploy my app to Google play-store. For automation deployment I am using first time fastlane. I found this documentation, follow the steps and give API grant access. In my React native app, I navigate to android folder then run this command fastlane init. Give json_key_file path my downloaded auth json file. But I got confused about package name. I search my app name in vscode com.reactamplify replace them into com.example.todo. Then run android folder fastlane supply init, I am getting this error: [!] Google Api Error: Invalid request - Package not found: com.example.todo. I really don't know how to fix it :(. Really lost TBH.

                                                                                  When I run fastlane supply. I got this image

                                                                                  PS: It would be awesome if someone gives me example with images

                                                                                  ANSWER

                                                                                  Answered 2021-Oct-29 at 04:46

                                                                                  I found the reason. I need to upload at least one build to google Play store app manually. That’s why I got package name error.

                                                                                  Source https://stackoverflow.com/questions/69073389

                                                                                  QUESTION

                                                                                  in Typescript, try...catch error object shows "Object is of type 'unknown'.ts(2571)"
                                                                                  Asked 2022-Mar-18 at 03:47
                                                                                  router.get('/cells', async (req, res) => {
                                                                                      try {
                                                                                        const result = await fs.readFile(fullPath, { encoding: 'utf-8' });
                                                                                        res.send(JSON.parse(result));
                                                                                      } catch (err) {
                                                                                        if (err.code === 'ENOENT') { // Object is of type 'unknown'.ts(2571) (local var) err: unknown
                                                                                          await fs.writeFile(fullPath, '[]', 'utf-8');
                                                                                          res.send([]);
                                                                                        } else {
                                                                                          throw err;
                                                                                        }
                                                                                      }
                                                                                  

                                                                                  err.code make this ts error : Object is of type 'unknown'.ts(2571)

                                                                                  I definitely know that err.code exists, so I want to know how to define the type(or interface) of err?

                                                                                  (tsc version info : My global typescript version is v4.3.5 and the above code belongs to my project which has typescript v4.1.2)

                                                                                  --- Edit ---

                                                                                  I finally know why this error happens to me. I thought I used tsc version under 4.3.x, but it turns out I used v4.4.x.

                                                                                  In vscode, cmd + shift + P and search for Select Typescript version and I actually used v4.4.3, (I mistakenly thought on version because I only check tsc version from terminal)

                                                                                  Thanks for sharing Youtube video,

                                                                                  ANSWER

                                                                                  Answered 2021-Oct-03 at 06:44

                                                                                  In JavaScript/TypeScript you can throw anything, not only errors. In theory it could be anything in the catch block. If you want to prevent the type error it could make sense to check if the unknown value is a system error before checking the code.

                                                                                  if (err instanceof SystemError && err.code === 'ENOENT') {
                                                                                    // file not found
                                                                                  }
                                                                                  

                                                                                  Source https://stackoverflow.com/questions/69422525

                                                                                  QUESTION

                                                                                  Visual Studio Code "Error while fetching extensions. XHR failed"
                                                                                  Asked 2022-Mar-13 at 12:38

                                                                                  This problem started a few weeks ago, when I started using NordVPN on my laptop. When I try to search for an extension and even when trying to download through the marketplace I get this error:

                                                                                  EDIT: Just noticed another thing that might indicate to what's causing the issue. When I open VSCode and go to developer tools I get this error messege (before even doing anything):

                                                                                  "(node:19368) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use Code --trace-deprecation ... to show where the warning was created)"

                                                                                  The only partial solution I found so far was to manually download and install extensions.

                                                                                  I've checked similar question here and in other places online, but I didn't find a way to fix this. So far I've tried:

                                                                                  1. Flushing my DNS cache and setting it to google's DNS server.
                                                                                  2. Disabling the VPN on my laptop and restarting VS Code.
                                                                                  3. Clearing the Extension search results.
                                                                                  4. Disabling all the extensions currently running.

                                                                                  I'm using a laptop running Windows 10. Any other possible solutions I haven't tried?

                                                                                  ANSWER

                                                                                  Answered 2021-Dec-10 at 05:26

                                                                                  December 10,2021.
                                                                                  I'm using vscode with ubuntu 20.04.
                                                                                  I came across the XHR errors from yesterday and could not install any extensions.
                                                                                  Googled a lot but nothing works.
                                                                                  Eventually I downloaded and installed the newest version of VSCode(deb version) and everything is fine now. (I don't know why but maybe you can give it a try! Good Luck!)

                                                                                  Source https://stackoverflow.com/questions/70177216

                                                                                  QUESTION

                                                                                  cannot install "code": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap
                                                                                  Asked 2022-Mar-11 at 07:47

                                                                                  how I can fix it? I've tried to create "soft link" like sudo ln /snap /var/lib/snapd/snap and also sudo ln /var/lib/snapd/snap /snap --> but it doesn't work. I just want to install VSCode in Manjaro

                                                                                  ANSWER

                                                                                  Answered 2021-Jul-29 at 13:43

                                                                                  I use Manjaro too and have the same problem today, it happens after update some pkgs. And snapd can't install vscode for now.

                                                                                  And if you have the same problem as my, you should uninstall the vscode first and delete the .desktop file located on /home/your_username/.local/share/applications

                                                                                  To install I downloaded the .deb version on Visual Studio Code website, and converted it to something pacman could install.

                                                                                  Now a little tutorial on how to do that

                                                                                  How to install .deb on manjaro (arch linux)

                                                                                  The package that convert .deb is debtap, but it is only available on AUR. So first u'll need to install pacaur

                                                                                  sudo pacman -S pacaur
                                                                                  

                                                                                  After installed pacaur, now u can install debtap

                                                                                  pacaur -S debtap
                                                                                  

                                                                                  With debtap installed execute the command below to init debtap

                                                                                  sudo debtap -u
                                                                                  

                                                                                  Now is possible to convert .deb

                                                                                  debtap your_package.deb
                                                                                  

                                                                                  And finally use pacman to install the converted pkg

                                                                                  sudo pacman -U your-converted-pakage.pkg.tar.zst
                                                                                  

                                                                                  Or u can try out this another tutorial

                                                                                  Source https://stackoverflow.com/questions/68565756

                                                                                  QUESTION

                                                                                  Fix issue With VS Code: yellow orange border box around characters
                                                                                  Asked 2022-Feb-28 at 16:45

                                                                                  When I type a ا letter in the Arabic language it is surrounded with a colored border box in vscode.

                                                                                  Any solution to this problem?

                                                                                  ANSWER

                                                                                  Answered 2022-Feb-28 at 16:45

                                                                                  Your specific case - a series of Arabic characters - might no longer be highlighted in vscode (even with the following settings enabled) as vscode is getting a little smarter about strings of characters it would otherwise highlight.

                                                                                  Contextual Unicode Highlighting

                                                                                  To report fewer false positives, ambiguous and invisible unicode characters are no longer highlighted if the surrounding characters visually indicate a non-ASCII script.

                                                                                  Thus, in trusted workspaces, only characters that are invisible or can be confused with ASCII characters are highlighted, except those that are contained in a word of non-ASCII characters where at least one character cannot be confused with an ASCII character.

                                                                                  Try disabling one or more of these settings (set to false):

                                                                                  Editor > Unicode Highlight: Non Basic ASCII

                                                                                  Editor > Unicode Highlight: Ambiguous Characters

                                                                                  also see https://stackoverflow.com/a/70293571/836330 for more on the Unicode Highlighting options. And https://stackoverflow.com/a/70297896/836330 and https://github.com/microsoft/vscode/issues/138767.

                                                                                  There is also a way in vscode v1.64 to add another locale to your environment so that its characters will not be highlighted as questionable unicode characters.

                                                                                  New setting: Editor > Unicode Highlight: Allowed Locales

                                                                                  Use this when your display language is something other than the language you are using in your files, like French, Russian, Japanese, etc. that is causing the unwanted unicode warning highlights.

                                                                                  Download the language pack you need:

                                                                                  Search in the Extensions view for "language packs". I believe only the Microsoft language packs are supported in the Allowed Locales at this time. The picture above shows the French Language Pack. Install it.

                                                                                  Add its language code to the Allowed Locales setting.

                                                                                  To find the right "code", the easiest is to open your Command Palette after installing the language pack and search for Configure Display Language. You don't want to change your display language but it will show the available language codes:

                                                                                  We see we need fr as the code.

                                                                                  It will make a setting like this in your settings.json:

                                                                                  "editor.unicodeHighlight.allowedLocales": {
                                                                                    "fr": true
                                                                                  }
                                                                                  

                                                                                  Before these changes:

                                                                                  After: In theory, with the default options for the other unicode highlight setting, the unicode highlighting should be gone.

                                                                                  [It still seems a little rough to me, you may have different results.]

                                                                                  Source https://stackoverflow.com/questions/70336593

                                                                                  QUESTION

                                                                                  Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader - Vue 3
                                                                                  Asked 2022-Jan-02 at 09:38

                                                                                  I get the following error when i want to start my vue 3 typescript project:

                                                                                   ERROR  Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
                                                                                   Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
                                                                                  at new NodeError (node:internal/errors:371:5)
                                                                                  at defaultResolve (node:internal/modules/esm/resolve:1016:11)
                                                                                  at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
                                                                                  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
                                                                                  at ESMLoader.import (node:internal/modules/esm/loader:276:22)
                                                                                  at importModuleDynamically (node:internal/modules/cjs/loader:1041:29)
                                                                                  at importModuleDynamicallyWrapper (node:internal/vm/module:437:21)
                                                                                  at importModuleDynamically (node:vm:381:46)
                                                                                  at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14)
                                                                                  at loadFileConfig (C:\Projects\backify-ui\documentation\node_modules\@vue\cli-service\lib\util\loadFileConfig.js:28:7)
                                                                                  

                                                                                  This error occurs since I renamed my vue.config.js to vue.config.mjs. The funny thing is that this project works via gitpod.io but not in phpstorm and vscode.

                                                                                  My vue.config.mjs:

                                                                                  import rehypeHighlight from "rehype-highlight";
                                                                                  
                                                                                  export default {
                                                                                    chainWebpack: (config) => {
                                                                                      config.module
                                                                                        .rule("mdx")
                                                                                        .test(/\.mdx?$/)
                                                                                        .use("babel-loader")
                                                                                        .loader("babel-loader")
                                                                                        .options({ plugins: ["@vue/babel-plugin-jsx"] /* Other options… */ })
                                                                                        .end()
                                                                                        .use("@mdx-js/loader")
                                                                                        .loader("@mdx-js/loader")
                                                                                        .options({
                                                                                          jsx: true,
                                                                                          rehypePlugins: [rehypeHighlight] /* otherOptions… */,
                                                                                        })
                                                                                        .end();
                                                                                    },
                                                                                  };
                                                                                  

                                                                                  ANSWER

                                                                                  Answered 2021-Nov-21 at 18:01

                                                                                  That actually is a bug.

                                                                                  See, they use import() function on a string, that is the result of path.resolve() call. As you have already noticed, the import() function only works with file:// and data:// URLs, but path.resolve() only returns an absolute path (not a URL), which on Windows environment usually starts with the name of the local disk (e.g., C:).

                                                                                  Source https://stackoverflow.com/questions/69665780

                                                                                  QUESTION

                                                                                  GitHub Codespaces: how to set x86_64, AMD64, ARM64 platform?
                                                                                  Asked 2021-Dec-17 at 21:44

                                                                                  First, the question: is there a way to choose the platform (e.g. x86_64, AMD64, ARM64) for a GitHub Codespace?

                                                                                  Here's what I've found so far:

                                                                                  Attempt 1 (not working):

                                                                                  From within GitHub.com, you can choose the "machine" for a Codespace, but the only options are RAM and disk size.

                                                                                  Attempt 2 (EDIT: not working): devcontainer.json

                                                                                  When you create a Codespace, you can specify options by creating a top-level .devcontainer folder with two files: devcontainer.json and Dockerfile

                                                                                  Here you can customize runtimes, installed packages, etc., but the docs don't say anything about determining architecture...

                                                                                  ...however, the VSCode docs for devcontainer.json has a runArgs option, which "accepts Docker CLI arguments"...

                                                                                  and the Docker CLI docs on --platform say you should be able to pass --platform linux/amd64 or --platform linux/arm64, but...

                                                                                  When I tried this, the Codespace would just hang, never finishing building.

                                                                                  Attempt 3 (in progress): specify in Dockerfile

                                                                                  This route seems the most promising, but it's all new to me (containerization, codespaces, docker). It's possible that Attempts 2 and 3 work in conjunction with one another. At this point, though, there are too many new moving pieces, and I need outside help.

                                                                                  1. Does GitHub Codespaces support this?
                                                                                  2. Would you pass it in the Dockerfile or devcontainer.json? How?
                                                                                  3. How would you verify this, anyway? [Solved: dpkg --print-architecture or uname -a]
                                                                                  4. For Windows, presumably you'd need a license (I didn't see anything on GitHub about pre-licensed codespaces) -- but that might be out of scope for the question.

                                                                                  References:
                                                                                  https://code.visualstudio.com/docs/remote/devcontainerjson-reference
                                                                                  https://docs.docker.com/engine/reference/commandline/run/
                                                                                  https://docs.docker.com/engine/reference/builder/
                                                                                  https://docs.docker.com/desktop/multi-arch/
                                                                                  https://docs.docker.com/buildx/working-with-buildx/

                                                                                  ANSWER

                                                                                  Answered 2021-Dec-17 at 21:44

                                                                                  EDIT: December 2021

                                                                                  I received a response from GitHub support:

                                                                                  The VM hosts for Codespaces are only x86_64 and we do not offer any ARM64 machines.

                                                                                  So for now, setting the platform does nothing, or fails.

                                                                                  But if they end up supporting multiple platforms, you should be able to (in Dockerfile)

                                                                                  RUN --platform=arm64|amd64|x86-64 [image-name],

                                                                                  Which is working for me in the non-cloud version of Docker.

                                                                                  Original answer:

                                                                                  I may have answered my own question

                                                                                  In Dockerfile:

                                                                                  I had RUN alpine

                                                                                  changed to

                                                                                  RUN --platform=linux/amd64 alpine

                                                                                  or

                                                                                  RUN --platform=linux/x86-64 alpine

                                                                                  checked at the command line with

                                                                                  uname -a to print the architecture.

                                                                                  Still verifying, but seems promising. [EDIT: Nope]

                                                                                  So, despite the above, I can only get GitHub codespaces to run x86-64. Nevertheless, the above syntax seems correct.

                                                                                  A clue:

                                                                                  In the logs that appear while the codespace is building, I saw target OS: x86

                                                                                  Maybe GitHub just doesn't support other architectures yet. Still investigating.

                                                                                  Source https://stackoverflow.com/questions/70219806

                                                                                  Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                                                                                  Vulnerabilities

                                                                                  No vulnerabilities reported

                                                                                  Install vscode

                                                                                  You can download it from GitHub.

                                                                                  Support

                                                                                  There are many ways in which you can participate in this project, for example:.
                                                                                  Find more information at:
                                                                                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                  Find more libraries
                                                                                  Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                  Save this library and start creating your kit

                                                                                  Share this Page

                                                                                  share link

                                                                                  Consider Popular Code Editor Libraries

                                                                                  vscode

                                                                                  by microsoft

                                                                                  atom

                                                                                  by atom

                                                                                  coc.nvim

                                                                                  by neoclide

                                                                                  cascadia-code

                                                                                  by microsoft

                                                                                  roslyn

                                                                                  by dotnet

                                                                                  Try Top Libraries by microsoft

                                                                                  TypeScript

                                                                                  by microsoftTypeScript

                                                                                  PowerToys

                                                                                  by microsoftC#

                                                                                  terminal

                                                                                  by microsoftC++

                                                                                  Web-Dev-For-Beginners

                                                                                  by microsoftJavaScript

                                                                                  playwright

                                                                                  by microsoftTypeScript

                                                                                  Compare Code Editor Libraries with Highest Support

                                                                                  vscode

                                                                                  by microsoft

                                                                                  atom

                                                                                  by atom

                                                                                  jersey

                                                                                  by jersey

                                                                                  roslyn

                                                                                  by dotnet

                                                                                  jupyterlab

                                                                                  by jupyterlab

                                                                                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                  Find more libraries
                                                                                  Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                  Save this library and start creating your kit