-
Notifications
You must be signed in to change notification settings - Fork 438
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 [functionName] --params doesn't work #742
Comments
Silly question but what happens if you use double quotes:?
|
I had Now, I cannot find the proper JSON format. I read here to use "...space-separated array of values such...". So I don't know what could have gone wrong? Here is what I tried:
Node v8.11.1 UpdateThe JSON format that works for me: Additionally, I needed to run node LTS, and I was behind. |
Just to be sure the issue still exist, can you try replacing npm uninstall -g @google/clasp
npm install -g forked-clasp |
I noticed that there's not a single test case in https://github.com/google/clasp/blob/master/test/commands/run.ts |
I had the same problem. I use windows cmd, so the parameter was "splited" because of the double quotes The correct code was something like this: |
@Claudiney-Santos |
Expected Behavior
My function :
function setProperties(properties) {
PropertiesService.getScriptProperties.setProperties(properties, false);
}
Actual Behavior
response : Input params not Valid JSON string. Please fix and try again.
A try other basic JSON format ... but same message.
Specifications
node -v
): v10.16.3clasp -v
): 2.3.0The text was updated successfully, but these errors were encountered: