Code Monkey home page Code Monkey logo

google-drive-vscode's People

Contributors

gustavoasc avatar gustavosimon avatar jernkuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

google-drive-vscode's Issues

Develop command to remove configured credentials

i did the following steps and ifaced following error:"Cannot destructure property 'client_secret' of 'credentials.installed' as it is undefined." so i tried doing the steps from first but i couldnt change my credentials json file to the fresh one i installed now.

First file upload option not working

Describe the bug
The first option for uploading a file, that is selecting a specific file on workspace/folder in the explorer view, cannot find file.

To Reproduce
As shown in the README

Expected behavior
File uploaded, and a notification of such.

Screenshots
Error shown appears no matter what sort of file is tested, or where it is in the client computer:
image

Please complete the following information:

  • OS: Windows 10 2004
  • VSCode Version 1.51.5
  • Extension version 1.1.0

Additional context
Other 2 methods appear to work fine.

command not found

Hello,
When Trying to configure the extension, I get an error after using the Configure credential command in command palette.
VSCode says " command 'google.drive.configureCredentials' not found ".
I can't (or do not know how to) select the path before executing the command.
Do you happen to know what could be wrong ?
I'm on Linux Ubuntu.

Thanks

Create a notification when port is occupied

Requirement

Create an extension notification to tell user that the port is occupied by another process.
This notification should indicate that the extension can set another authentication port.

Suggestion

I think that we can detect from error message if the port is busy, so in this case we can submit this notification to user set another port to authenticate with Google Drive.

Authorize this app by visiting the external URL and paste in the auth token

Describe the bug
Can't login to Drive, no where to paste the auth token

To Reproduce
Steps to reproduce the behavior:
Following the installation instructions and providing credentials.json, I was redirected to a page to give access to the App and then an auth token that I should paste into app, another pop up in the app says so too

Screenshots
image

Please complete the following information:

  • OS: Win 10 64bit
  • VSCode Version [e.g. 1.51]
  • Extension version [e.g. 1.1.0]

Additional context
Add any other context about the problem here.

Update requirements

Overview

Google has updated the content of this link that is referred by this extension on the README.

Nowadays, there is no button called Enable the Drive API.

Suggestion

Update the README with new steps to configure credentials.

OAuth out-of-band (oob) is deprecated and does not work anymore

Describe the bug
According to Google Developer's blog, OAuth out-of-band (oob) is getting deprecated:

Feb 28, 2022 - new OAuth usage will be blocked for the OOB flow

To Reproduce
Steps to reproduce the behavior:

  1. Download credentials.json from Google Console
  2. Configure credentials on this extension
  3. After selecting the scope, instead of showing a token to copy / paste on the application, an error screen is shown

Expected behavior
The auth should complete.

Screenshots
image

Please complete the following information:

  • OS: Ubuntu 20.04
  • VSCode Version: 1.65.2
  • Extension version 1.3.2

Share uploaded file to public

Overview

I'm an Android developer and sometime need to upload my apk to google drive, but it's time consuming to open google drive and share it manually. Before i use windows and install ShareX
just right click -> upload. The file will uploaded and when it finished it will copy the link to the clipboard. But in mac i didn't found app like thta

Suggestion

It's be better if in future those feature will be added

Unable to edit colab notebooks on google drive with VS Code

Describe the bug
I have setup OAuth credentials using full access. However, for some reason, when I open a Google Colab notebook from a drive folder with VSCode, it is read-only. I cannot even view the code cells.

To Reproduce
Steps to reproduce the behavior:

  1. Setup credentials as described in the docs. Allow allow Google Drive scopes. I tried with the ".drive" scope on or off. Get the same behavior.
  2. Connect to google drive from VSCode. Authenticate and allow access through browser
  3. Navigate to a directory with Colab notebooks (.ipynb) files
  4. Open a notebook. The code cells are not visible. Only markdown and output can be seen. A readonly icon is seen next to the filename

Expected behavior
I should be able to view the code cells and edit / run the notebook

Screenshots
Attaching screenshots

Please complete the following information:

  • OS: MacOS 11.6.8
  • VSCode Version [e.g. 1.49] 1.74.0
  • Extension version [e.g. 1.0.1] 1.3.5

Additional context
Add any other context about the problem here.
image

can't find files

hey,

this extension looks really nice, thanks for putting the work into it! unfortunately it doesn't find any of my files when i set up credentials. ideally i would like to see both my drive files and shared drives (if possible on the extension). i can view all of this in python using the same credentials using googleapiclient.

i'm about to look around in the source for this extension when i have time, but just wondering if this is a common issue?

thanks,
steven

Allow extension to see files and folders which already exist on Drive

Overview

The extension currently uses drive.file scope, so it can only access files and folders uploaded to Google Drive through this extension itself. Some people are willing to manage other files through this extension but it's not currently possible.

The files manually uploaded to Google Drive through the Drive website, for example, do not appear on this extension.

Suggestion

Use Google Picker API, so we can provide access to specific files which have been manually uploaded through Drive website or uploaded through other applications;

Google Picker API would show a dialog like the one below, so after selecting files/folders with Google Picker API, they would appear on the extension Tree View (at least I believe this would be the behavior of Picker API).

image

Overwrite file when it already exists on Google Drive

Is your feature request related to a problem? Please describe.
When one tries to upload a file which already exists on Google Drive, a new file is created with the exact same name on Google Drive. It does not make much sense to have multiple files with the same name.

Describe the solution you'd like
When the file already exists on Google Drive the file should be overwritten.

Additional context
image

Pull Requests are accepted for this 😃

Cannot open file

Describe the bug
If I wanna open a file, for example a .docs:

Screen Shot 2022-02-13 at 2 28 43 PM

I experience this issue:
(Ethereum is just the .docs which I try to open)
Screen Shot 2022-02-13 at 2 31 32 PM

Expected behavior
The file opens in VSC

Please complete the following information:

  • VSCode Version [1.61]
  • Extension version [1.3.2]

Additional context
VSC has full access (the three checkboxes were checked)

Extension issue

  • Issue Type: Bug
  • Extension Name: google-drive-vscode
  • Extension Version: 1.3.4
  • OS Version: Windows_NT x64 10.0.19044
  • VS Code version: 1.71.0

⚠️ We have written the needed data into your clipboard. Please paste! ⚠️

Does not appear to work

Using MACos Latest version of vscode.

Unable to open '2019-02-23-Meeting with the President.gdoc': Unable to read file '/Volumes/GoogleDrive/My Drive/mydata/The Fairways/jims-Community-Fairways/2019-02-23-Meeting with the President.gdoc' (Unknown (FileSystemError): Error: ENOTSUP: operation not supported on socket, open '/Volumes/GoogleDrive/My Drive/mydata/The Fairways/jims-Community-Fairways/2019-02-23-Meeting with the President.gdoc').

Show a proper notification when incorrect credentials.json file is used

Introduction

In order to use the extension, user needs to download a credentials.json file configured for Desktop app on Google Console.
Here are the suggested steps to download the credentials:

  1. Access this link to turn on the Drive API
  2. Click on Enable the Drive API button
  3. On the modal pop-up, make sure you have Desktop app selected, like this:
    image
  4. Click Create
  5. Click Download client configuration

Problem

Sometimes people download a wrong credentials file or select Web App instead of Desktop app.

It causes unexpected behavior on the extension, which throws errors like "Cannot destructure property 'client_secret' of 'credentials.installed' while running the command Google Drive: Configure credentials.

Suggestion

This issue is meant to show a proper notification when the incorrect credentials.json file is used, instead of throwing errors related to "undefined" objects.

Pull Requests are welcome 😃

Google shared drives

Hello Gustavo and thank you for your amazing VS extension !

Overview

I would like to have access to a Shared Drive with your Extension. It would allow different persons of my teams to modify files and folders in the same place...

Suggestion

Maybe it could be interesting to add a command >Google Drive : Access to Google Drive Shared by id, which will require the id of the shared drive. Then it will display it on the outliner. What do you think ?

Best regards,
Kevin

Replace keytar with SecretStorage API

I have just installed the Extension but although it says that it is globally enabled underneath the installation button it doesn't respond to any commands like Google Drive: Configure credentials.

And in the runtime tab I get the Information "not activated yet".

Can anyone help with that?

Not able to configure credentials

Hello,

I have installed the Google-Drive extension, and I believe I have created the credentials.json file.

When I run Google Drive: Create credentials, a window opens I select the credentials.json file but nothing seems to happen.

I try to display files on my google drive, and keep getting the "credentials need to be configured" error.

Thoughts?

Tom

Allow viewing of files shared with you

I just realized you can't even edit files with this extension. I might look for another extension, sorry.

Overview

This feature is important to me because I am making an HTML game, and it is on a Google account I made for my Chromebook. Chromebooks can edit Google Drive files straight from the Files app. But I use a different account for my main computer, and Windows can't edit Drive files from the Explorer app. I like VS Code, so I looked for a VS Code extension that can edit Google Drive files, and I found this. But then I found out that you can't even see files created by other people that you are an editor on.

Suggestion

So I want to be able to see files that I am an editor on, and also be able to edit them.

Upload on Save

is posible add command to Upload on Save to desired/selectable/default directory?

Example: 

  1. Write to files.
  2. CTRL+S (save changes to local) trigger event:
       2.1 Google Drive: Upload selected file to Drive.
       2.2 Upload to Current folder 'root' //need to change it to custom directory like 'Annotation'.

vscode.dev support

If we could port this extension into the (browser app) the possibilities would be endless!

VSCode supplies this page regarding web extensions. I'll be looking into it when I've got a chance.

Show better notification when port 3000 is in use

Overview

When the port 3000 is already in use on the computer, the following notification is presented:
HTTP server http://127.0.0.1:3000/: Error: listen EADDRINUSE: address already in use :::3000

It is not user-friendly.

Suggestion

Show a proper message asking to configure a different port with the new google.drive.authPort setting.

"Authorize this app by visiting the external URL" error

Describe the bug
"Authorize this app by visiting the external URL" when I clicked the "gdrive" icon on the left column of the vscode screen.
I opened my google accoun.

But I got the following error:

image

Did I do something wrong when I defined my Google Service Account in Console.drive.google.com?

Show additional file information on hover

Overview

Sometimes we need additional information about the files on Google Drive. E.g.: file size, last modified date, created date.
However, only the file name is shown on Tree View while hovering.

image

Suggestion

Show additional file information when hovering over the file on Tree View.

SSH: Google Colab Unable to connect

Everything works fine when I set it up with my local machine, but when I SSH into my Google Colab GPU it almost works, but then after I select my Google Account to sign in and give it permissions, I get this error:

Firefox can’t establish a connection to the server at 127.0.0.1:3000.

I am on Ubuntu 20.04, and using the 'Remote - SSH' extension to connect to my Colab runtime. I have to reinstall the 'Google Drive' Extension in the SSH window because it says:

This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in 'SSH: installing-hybrid-cleaning-roommate.trycloudflare.com' to enable.

Is this something that other people have done?

Port 3000 occupied

Is there a way to change the default server running port? Because I don't have the permission to either check or kill the program running on port 3000. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.