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 commands occasionally hang the prompt #257

Closed
OleksandrRakovets opened this issue Jul 11, 2018 · 8 comments
Closed

clasp commands occasionally hang the prompt #257

OleksandrRakovets opened this issue Jul 11, 2018 · 8 comments
Labels
forked-clasp fixed in forked-clasp
Milestone

Comments

@OleksandrRakovets
Copy link

Expected Behavior

clasp push, version, deploy, versions, deployments finish execution correctly and let me enter next command.

Actual Behavior

Commands execute correctly, but prompt hangs, so I have to hit Ctrl+C to enter next command.

Steps to Reproduce the Problem

I have not noticed any particular circumstances leading to the issue. They hang randomly.
On clasp 1.3 experienced this a couple of times, but on 1.4 it appears more frequently.

I tried to write a shell script to automate version submission and redeployment for test/prod URLs in order to stop copy/pasting long ids, but had to drop it for the time being because of hangs.

Specifications

  • Node version (node -v): 10.6.0
  • Version (clasp -v): 1.4.0
  • OS (Mac/Linux/Windows): macOS 10.13.5
@aume27
Copy link

aume27 commented Jul 13, 2018

I have the same kind of issue using
clasp version crCp_build_v3.01
clasp version description trying to save/snapshot actual version a new one.
the prompt hang on - Creating a new version...

Node version (node -v): 10.6.0
Version (clasp -v): 1.4.0
Windows 10

@grant
Copy link
Contributor

grant commented Jul 25, 2018

Strange. My initial instinct is that the API is not responding for some reason.

Would a forced ~10 second cutoff in clasp with an error message solve the problem?

It may be because checkIfOnline which uses is-online hangs, but the default timeout is 5 seconds.

campionfellin added a commit that referenced this issue Aug 1, 2018
Related to: #257

Signed-off-by: campionfellin <[email protected]>
@grant grant added this to the Clasp V2 milestone Oct 29, 2018
@grant
Copy link
Contributor

grant commented Jan 17, 2019

Feel free to re-open this issue or upvote it if it's still an issue.
Closing due to lack of activity.

@grant grant closed this as completed Jan 17, 2019
@tofutim
Copy link

tofutim commented May 26, 2020

hi, I am using clasp 2.3.0 on mac and I have the situation where clasp commands hang at the prompt; after a while I give up and press Ctrl-C

@PopGoesTheWza
Copy link
Collaborator

@tofutim can you try by building from PR #778 if there is any improvement?

@imthenachoman
Copy link

There seem to be multiple issues for the same thing. I am sure there are more but I can't find all of them. Not sure which one we want to be primary so I am posting this in all of them. Any resolution or idea what is wrong?

@PopGoesTheWza
Copy link
Collaborator

Try replacing @google/clasp 2.3.0 with forked-clasp which is more advanced. This should fix the issue.

npm uninstall -g @google/clasp
npm install -g forked-clasp

@PopGoesTheWza PopGoesTheWza added the forked-clasp fixed in forked-clasp label Mar 19, 2021
@robquinn
Copy link

@PopGoesTheWza gave me this idea, but just re-installing @google/clasp globally worked for me:

npm un -g @google/clasp
npm i -g @google/clasp

My prompt now finally closes. It drove me crazy, when it would hang lol

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

No branches or pull requests

7 participants