This is a known issue. As a workaround, wait approximately 5 seconds and refresh the page.
If IDX isn't refreshing properly (typically as a result of major
refactors, or changes to the monospace.json
file), perform a Hard Restart,
available in the command
palette (Cmd+Shift+P on Mac or Ctrl+Shift+P on ChromeOS, Windows, or
Linux), under the IDX category.
IDX maintains a warm pool of VMs used to provision workspaces on demand. When the pool runs low, the workspaces are provisioned after a new VM is spun. The process can take time (sometimes up to 5 minutes) but eventually succeeds.
In most cases of internal errors during workspace provisioning, refreshing the page after a minute or so should get you past the error and into the workspace.
IDX has a limit of 1 workspace per user. If you have a Google Developer Profile, you can create up to 5 workspaces. To create a Google Developer Profile directly from IDX once you've hit the workspace limit, click Complete Setup from the notification on the template dashboard.
We're actively improving the reliability of our cloud-based emulators. If a page refresh does not fix the problem, please report the issue.
You can upgrade or downgrade the version of almost all preinstalled software inside a workspace like you would on your local machine (using apt-get or brew). Note that the changes are not preserved when an "idle" workspace hibernates.
We've built IDX on the (incredible!) generally available Cloud Workstations offering from Google Cloud. Cloud Workstations is an infrastructure offering that focuses on developer workstations' reliability, security, and availability. It's the ideal choice for large enterprises that want to manage their development experience. Project IDX is a "batteries included" environment inside these workstations that manages the toolchains, software development stack, and system dependencies required to build different application types.
Project IDX exposes a Debian shell that you can use to install and manage system-level software dependencies of your project. We're soon moving to an OS-agnostic, Nix-based shell that you can use to manage system software dependencies as configurations without understanding the specifics of OS-specific package managers like apt. Stay tuned!
IDX needs 3P cookies enabled since we render an IFRAME from one domain (a
subdomain of cloudworkstations.dev
) on another domain (idx.google.com
), and
3P cookies enable secure cross-origin communication.
You can only share a workspace URL with users that have access to the workspace. Users without permission see an error when trying to visit the URL. Be sure to explicitly share the workspace with them, like sharing a Google Doc!
Users added to your workspace have complete access to the VM's entire filesystem, which may contain sensitive files like private keys and access tokens. Share your workspace only with people you trust. While this approach helps other users view the exact state of your workspace, it means that they see everything on your workspace.
When you use IDX to deploy your applications to Firebase, the workspace is provisioned with only the most basic permissions required to perform the operations. While you, as a user, may be an administrator of your project, the workspace itself doesn't have all the permissions that come with being an owner, operating on the principles of least privilege.
Yes! While we're working on allowing workspaces to be fully customizable, it is entirely possible to import your projects that use an unsupported frontend framework or may not have a UI at all. The simplest way to get past this would be to select Other as the App Type in the Import a repo flow. Once you've set up your workspace, you can install any system-level dependencies your project needs.
At the moment, we support GitHub. If you want us to support more Git hosts, submit a feature request.
In the meantime, you can create a new workspace from an existing template and
run git clone
with any https
or ssh
-based Git host in a terminal, like you
normally would on your local machine.
Choose the build/web
directory. This directory should contain an index.html
and all the static assets needed to render your web app after the app is built
successfully (via flutter build web
).
We plan to simplify this in the near future, but for now, use the following workaround:
- Projects that have an API backend can start their API services either
manually in a terminal, or configure the startup command in the
monospace.json
file. Open the port on which the API service runs to be accessible to your web frontend preview by running the following
bash
script in a terminal:export port=4000 #dont use restricted ports (8000, 9000-9002) export API_SERVICE="https://$port-$WEB_HOST" echo $API_SERVICE
Open the
API_SERVICE URL
above a new tab in your browser. This sets a required cookie through a redirect flow.Your web app frontend can now access the API service at the fully qualified path.
Open the command palette (Cmd+Shift+P on Mac or Ctrl+Shift+P on ChromeOS, Windows, or Linux) and select Project IDX: Show Web Preview.
Code-Open Source Software (Code-OSS) is an open-source project that's the core layer of VS Code. Code-OSS is available on GitHub under the standard MIT License, and is where Microsoft develops the VS Code product.
If you don't want your Gemini chat prompts used as training data to
improve Gemini in IDX, don't use the chat assistant and
turn off code completion
in your workspace Settings. You can also turn off assistance when working with
specific files by adding .aiexclude
file(s) to your
repository.
If you encounter an issue while using Project IDX, file a bug to let us know.
If there's a feature you want to see added to IDX, or an existing feature you want expanded, file a feature request.
IDX uses IssueTracker for bugs and feature requests, to support robust requests with screenshots and video. In the future, IDX will likely track feedback and features through UserVoice. Any feedback or requests already submitted through UserVoice have been preserved and shared with the team.
Gemini in IDX is available in limited regions, with availability expanding regularly. If Gemini in IDX is available in your region, you can add it to your workspace following the steps outlined in Add Gemini to your workspace.
Some of the features in Project IDX are experimental. We value your feedback and actively use it to inform our current and planned feature set, periodically removing features that aren't living up to your expectations or our own. If there are features you'd like to see in your ideal version of Project IDX, send us feedback. We want to hear from you!