Questions tagged [codespaces]

Directed to be used only when the question is related to Visual Studio Codespaces (a Cloud IDE).

Visual Studio Codespaces is a web-based IDE service to manage projects from the Cloud system. This service is powered by Microsoft Corporation.

137 questions
27
votes
2 answers

"No view is registered with id: codespaces.explorerDetails" and "No view is registered with id: codespaces.explorer"

I am new to Visual Studio Code. I have configured my environment for C/C++ development and everything is working. However, when starting VS Code, I receive these notifications in the bottom right corner. "No view is registered with id:…
14
votes
2 answers

Can I run a web server in a GitHub Codespace?

Part of my development process involves using Mocha and Chai tests. I have a page in my test folder that loads all the code and tests, and I can start up a local node script that runs a simple local server, visit that page on…
Nathan
  • 1,451
  • 1
  • 15
  • 28
11
votes
2 answers

GitHub Codespaces: how to set x86_64, AMD64, ARM64 platform?

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…
7
votes
2 answers

How to power down GitHub Codespaces?

I'm probably missing something really obvious but I don't see a way to shutdown GitHub Codespaces to avoid extra costs. Right now it's free but soon won't be.... I also hunted through the docs and found nothing. Maybe it's as simple as just closing…
imcdnzl
  • 1,011
  • 7
  • 13
6
votes
1 answer

Github codespaces project live preview not working

I am running a simple project of Docusaurus with npm start which runs successfully. Using Github Codespaces to run the project but the forwarded route doesn't seem to be working. Attached the screenshots of environment.
kazmi066
  • 573
  • 5
  • 15
6
votes
2 answers

how to enable gui app in github codespaces?

Some opencv code needs to show a GUI window when executing. Instead it shows Gtk-WARNING **: xxx: cannot open display:. It happened both on the web and in the desktop app. Is it possible to use something like x11 forwarding to enable this feature?…
smdbh
  • 71
  • 3
6
votes
2 answers

GitHub Codespaces Error loading webview: Error: Could not register service workers: NotSupportedError: Failed to register a ServiceWorker for scope

When I open a README.md Markdown Preview view in GitHub Codespaces on Google Chrome (as well as e.g. on Chromium-based Brave) I am getting: Error loading webview: Error: Could not register service workers: NotSupportedError: Failed to register a…
6
votes
0 answers

git submodule on github codespaces

I have problem with submodule on github codespace. When i use command git submodule update --init terminal show me Warning: Permanently added 'github.com,xxxxx' (ECDSA) to the list of known hosts. git@github.com: Permission denied (publickey). …
Magda Bo
  • 61
  • 1
6
votes
5 answers

Can't keep postgres data persistent using Github CodeSpaces with Docker-Compose

I set up a Github codespaces environment using devcontainer.json and docker-compose.yaml. Everything works fine, but the postgres database defined in docker-compose.yml loses its data every time the container needs to be re-built. Here's the bottom…
JasonGenX
  • 4,952
  • 27
  • 106
  • 198
6
votes
1 answer

How to connect to Postgres from Github Codespaces

I am experimenting with GitHub Codespaces, trying to spin up an app using Node and Postgres. I selected the following option: which produced the following devcontainer.json: // Update the VARIANT arg in docker-compose.yml to pick a Node.js version:…
5
votes
1 answer

Github Codespaces - Could not detect the platform/language from repo

I'm trying to open this repository using Github Codespaces. Note that this repository is correctly configured for local devcontainer development. However, when I try to open it in CodeSpaces, it seems to build the container correctly, but fails…
Ani
  • 10,826
  • 3
  • 27
  • 46
4
votes
0 answers

How to run Puppetter (Chromium) visibly in a github codespaces?

I have a problem when trying to run Puppeteer in visible mode in a GitHub Codespaces. I guess because GitHub doesn't have a renderer as well as a local machine. Is there any way to run Puppeteer, connect it to a port to make it visible or other…
4
votes
2 answers

Debug HTML file with inline Javascript in GitHub Codespaces

I have created a *.html file with some inline javascript, like the following below: // noprotect function setup() { createCanvas(windowWidth, windowHeight); for (let y = 0; y < height; y++) { for (let x = 0; x < width; x++) { …
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
4
votes
1 answer

"Preflight response is not successful" in Apollo Server running on GitHub Codespaces

I followed the Apollo Getting Started example in a Github Codespace. Upon starting the server, I see the error: { "error": "Preflight response is not successful" } Sample repo to reproduce is here: https://github.com/anishkny/codespaces-test I…
anishkny
  • 421
  • 1
  • 3
  • 8
4
votes
1 answer

How to install PHP on Visual Studio Online / Codespaces

Constant error for any and all versions of PHP - no installation candidate. I've ran apt-get update and upgrade / dist-upgrade and added the sury repo on a new codespace. vsonline:~/workspace$ sudo apt-get install php Reading package lists...…
Mike Thrussell
  • 4,175
  • 8
  • 43
  • 59
1
2 3
9 10