google / google/clasp

Incorrect instructions when running clasp logs --setup

Open
#804 4 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
5.8k
Forks
510
Avg merge
5h 27m
Merged PRs (30d)
1

Description

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

## Expected Behavior

When running `clasp logs --setup` I'd expect including `project-id` into the input to be correct.

```
$ clasp logs --setup
Open this link:

Go to *Resource > Cloud Platform Project...* and copy your projectId
(including "project-id-")

? What is your GCP projectId? project-id-my-app
```

## Actual Behavior

```
$ clasp logs --setup
Open this link:

Go to *Resource > Cloud Platform Project...* and copy your projectId
(including "project-id-")

? What is your GCP projectId? project-id-my-app

The projectId "project-id-my-app" looks incorrect.
Did you provide the correct projectID?
```

Line: https://github.com/google/clasp/blob/master/src/messages.ts#L128

## Steps to Reproduce the Problem

1. Run `clasp logs --setup` and input the "project-id"

## Specifications

- Node version (`node -v`): v10.10.0
- Version (`clasp -v`): 2.3.0
- OS (Mac/Linux/Windows): Mac

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.