i am using idx, not flutter. its a next,js project and i do not want to waste my time posting bugs that wont be fixed
Pleas eexcuse me for being irrationalā¦ I will explain the problem i am facing: i clicked on download as a zip in google idx and then it opened a blank white page, giving me an error 404
ya, that sucks, , but i just tried in a test next.js, download no problem, file no zip, folder zip.
you using a vpn maybe?
no, but there are network restrictions on my laptopā¦ should i try copying he download link and do it on another device?
Sorry to see that you are still having problems. Does this always happen for you? Or does it just happen for this particular project?
That you are not able to use git clone is also surprising. Does your DevTools Console show any errors when you try to download the zip or run git clone?
i am sorry, i did not add a message for commiting changes. but does this even matter? after entering a name, it worked.
you mean version control/syncing?, so you can download now?
no, i cant download using idx but i did copy the project to github and cloned it to my local machine. and yes i mean syncing.
Git does (afaik) require you to specify a message as part of each commit. This does bring up a good point around whether we can do more to make that more obvious.
Regarding the failed download, do file a bug here: issuetracker.google.com/issues/new?component=1379083&template=1836320 Weāll make sure it gets looked at.
I think that my laptopās network restrictions is blocking the link.
Does your laptop prevent downloading of all zip files?
Still have same issue. I have to download files by one by.
Hi, thanks for bringing up the issue. Iām not able to repro it on my end. Can you tell me more about how large is the folder you are downloading?
Just to confirm: can you try the app
folder in the angular template and see if it works? Also you are using the Zip and Download
command, right?
I just did zip -rT app.zip .
from project root, you can pass different options as you see fit (donāt omit -r
though). Then I downloaded the resultant zip file with the GUI. Granted, you get a zip within a zip but at least you get the project!
This stackoverflow answer may also be useful.
How to Fix the File Download Issue in Project IDX on Google Cloud Workstations
If youāre facing an issue where the download button in Project IDX doesnāt work (files donāt download to your PC), itās likely caused by cross-origin restrictions related to how the editor is hosted in an iframe within Google Cloud Workstations.
When you try to download a file from Project IDX, you might see this error in the browser console:
WARN SecurityError: Failed to execute 'showDirectoryPicker' on 'Window': Cross-origin subframes aren't allowed to show a file picker.
at j.i (workbench.web.main.js:2386:161902)
at async j.h (workbench.web.main.js:2386:161621)
This issue occurs because the IDX editor runs inside an iframe, and browser security policies prevent the file picker or download functionality from operating in cross-origin frames.
The Problem
-
IDX Editor Hosted in an iframe:
The IDX editor runs in an iframe in Google Cloud Workstations. The iframe URL is something like:For example, it could be:
https://idx-server-runner-front-1735724573958.cluster-mwrgkbggpvbq6tvtviraw2knqg.cloudworkstations.dev/ide-start?origin=https://idx.google.com
2.Open the url in the iframe and download the file/folder!
Example Video
psst. yes you can see its chatgpt edited
there is an option to download as zip, use that option