Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clasp run instructions for authentication could use reworking #798

Open
leeyspaul opened this issue Jul 23, 2020 · 3 comments
Open

clasp run instructions for authentication could use reworking #798

leeyspaul opened this issue Jul 23, 2020 · 3 comments

Comments

@leeyspaul
Copy link

leeyspaul commented Jul 23, 2020

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

When running clasp run without the proper scopes we need to set the scopes required. I would expect the instructions to either link to documentation in setting the scopes explicitly.

Actual Behavior

Currently in the output when scopes are not set correctly we get the following (after running a clasp helloWorld:

$ clasp run helloWorld
(node:61428) ExperimentalWarning: The fs.promises API is experimental
Running in dev mode.
Hey! It looks like you aren't authenticated for the scopes required by this script.
Please enter the scopes by doing the following:
1. Open Your Script: ...
2. File > Project Properties > Scopes
3. Copy/Paste the list of scopes here:
            ~ Example ~
https://mail.google.com/
https://www.googleapis.com/auth/presentations
----(When you're done, press <Enter> 2x)----

This led me to going to File > Project Properties > Scopes expecting me to set them there but instead we actually need to explicitly set them in the manifest file in appsscript.json. As mentioned in the docs here.

Screen Shot 2020-07-22 at 5 03 17 PM

Steps to Reproduce the Problem

  1. Run a script function without proper scopes set (any new project) e.g. clasp helloWorld

Specifications

  • Node version (node -v): v10.13.0
  • Version (clasp -v): 2.3.0
  • OS (Mac/Linux/Windows): Mac
@leeyspaul leeyspaul changed the title clasp run instructions for authentication are vague clasp run instructions for authentication could use reworking Jul 23, 2020
@PopGoesTheWza
Copy link
Collaborator

Is this strictly a documentation issue? Can anyone volunteer for a PR?

@e-dong
Copy link

e-dong commented Jan 1, 2022

I'm noticing the same behavior

@adamcee
Copy link

adamcee commented Jun 3, 2023

Bump. Same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants